If you use Cordova you need to update those files, maybe from terminal, then on android studio select the gradle version under project settings, after doing that, locate the option “sync files with gradle”
Also check if the android version is compatible
Been trying all of that. Still get errors doing the updates. I even tried removing the Android Environment and re-adding it. No luck. I think I have to face it, my project is dead. At least for Android.
Gradle updates are a total pain in the arse Brad. There are so many references in the build to the Gradle version you have to seek them all out and replace them (Wapplers search and replace can help there, of course always BACKUP first). Have you tried updating Gradle via Android Studio and then importing your Project and trying to build it with Android Studio? You’ll have to locate all those references and change them though. Also Wappler now being Capacitor focused over Cordova may have an impact on Wappler builds, although can not confirm that side personally as have not built a mobile application using Wappler for a fair few months now…
Also you can specify the path to Gradle in your Wappler settings under mobile options, maybe point this to the new Gradle version if you have not done so?
I wish there was more information on PWAs on here. It may be a better option for our use case. A project that very rarely needs updating, but when it does it is so out of date it cannot be updated and sent to app stores.
They are well documented on here and elsewhere really not that much to them. We carried out some tracking of installs and found that less than 3% of our Users actually install them (we have quite a large user base of over 20k regular/frequent/loyal registered Users). So we quit offering PWAs.
Thank franse, I have created a new blank app and it builds fine but using capicitor. I will try building a new cordova app but not sure how that will help me with my 4 year old app. I have tried everything even on Android studio it comes up with errors.
Bummer Ken, I don’t want a hosted service (or what exactly is hosted, the whole project? Or just the services?), I want to build my project in Wappler and host on our service provider that is required to be in Canada.
bradlawryk@Brads-MBP-16 android % java -v
Unrecognized option: -v
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
bradlawryk@Brads-MBP-16 android %
java version "20.0.2" 2023-07-18
Java(TM) SE Runtime Environment (build 20.0.2+9-78)
Java HotSpot(TM) 64-Bit Server VM (build 20.0.2+9-78, mixed mode, sharing)