Hi, I am trying to build custom Cordova plugins into an AEM mobile application and while my build and deployment works perfectly fine on iOS, I am having endless trouble getting it to work on Android at all.
I must clarify, I didn't have this problem in my first build, but shortly after adding the aemm Cordova plugins, my builds on Android ceased working. Further, the build process goes perfectly. I haven't been thrown any errors except for the one listed in the subject.
The error occurs when I attempt to run the app in the emulator for testing purposes, or when I try to upload the APK as a custom shell to rebuild the AEM application.
I haven't been able to find any related information yet, and including custom plugins is crucial to a module we are trying to include at our clients' request.
At first I suspected something may be wrong with my build so I created a fresh project and did not include any plugins and received the same result.
Next, thinking that something may have been corrupted I removed all traces of Android Studio and the AEM tool, all SDK's, and updated Node and NPM to be sure. I then reinstalled and recreated a project, strictly following the instructions in the docs and received the same result.
As a last resort I attempted to do a fresh build on another Mac. The other computer had never had any related tools installed previously, so installed per Adobe's instructions again. And again without, followed by with, the plugins required. Both times failed with the same error.
After running aemm run android I only receive (in terminal):
TL;DR: My Android builds are not working and throwing the error in the subject. I had it working prior to installing the standard bunch of aemm plugins, and it works on iOS without a problem. I need help getting this working as we require a few custom plugins for a module being included in HTML articles.
We just pushed the fix to the git repository, please give it a try and let us know whether it fixed the issue.
I didn't see your new issue posted on 11/18 till today. The issue appears to be related to the AppBuilder. Since the aar(I suggested for the workaround) was quite old, it's likely it is no longer compatible with the latest AppBuilder.
I was wondering -- have there been any updates? Otherwise do you happen to have an updated schedule for your next release so I can forward an approximate date? I've kept an eye on Github but haven't seen anything.
It was after this that I ran the these commands to find it failing:
aemm build android aemm run android
Since those plugins, I tried removing them to no avail. I tried starting fresh projects and adding no plugins to no avail, as such:
aemm project create [project]
aemm platform add android
aemm build android
aemm run android
Each command ran without error, on both systems I tested. It would work prior to adding the standard plugin set (I even used custom plugins in the first build prior to adding the standard set), and would fail afterward. Then no matter what I do I haven't been able to see any change in the result.