Trying to get the Android emulator to work with Android studio and Wappler. Get an error whenever I compile either just in Wappler or in AS. Errors depend on who you follow in the post but never works. I have gone through previous posts on how to solve this. Have started over several times with a simple 1 page app. Works fine on web, and iOS. I see there are many issues with this. Is there a solution to fix this that I am missing something? I am back to using the most recent Android studio (Giraffe).
this is one. I tried adding the namespace to build.gradle, but then get several errors.
Namespace not specified. Please specify a namespace in the module’s build.gradle file like so:
android {
namespace ‘com.example.namespace’
}
If the package attribute is specified in the source AndroidManifest.xml, it can be migrated automatically to the namespace value in the build.gradle file using the AGP Upgrade Assistant; please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.
Hi!
Had the same issue, what works for me was changing on android studio some values as wappler don’t change it from the settings tab.
(I guess it’s not solved: App name/version, capacitor/wappler bug, or FR?)
Check the project options tab on android studio.
Will post you a screenshot later.
Use the build button on wappler, and remember sync the project on A.S.:
PS: Tested on beta 8 as I’m not with my main computer, so I’m running this on a notebook.
Will try these days on the latest wappler beta version and check if something is broken.
Hoping I didn’t get worse. I installed a clean version go AS. got the namespace error again. then added the namespace and still errors. here is the build.gradle
It appears that this is a problem with Mac. Not sure if it is just Mac m2 chip or Mac in general. Can build on a windows machine ok. Not preferred to run Wappler on 2 different platforms, but until it is resolved I guess that is the only solution.
Wappler gets an error on build.
Note that creating a mobile app directly in android studio works correctly.