Home › Forums › General Questions › How to Build for Mobile with Cordova?
- This topic has 3 replies, 3 voices, and was last updated 3 years ago by
echokhan.
-
AuthorPosts
-
2022-03-27 at 12:19 am #50667
renderkick
CustomerHi, Verge3D newbie having issues with trying to create a test build for Android with Cordova.
I’ve followed the instructions available here to the letter: https://www.soft8soft.com/docs/manual/en/introduction/Creating-Mobile-Apps.html and despite serveral hours trying to troubleshoot and multiple attempts on both Windows and Ubuntu I have failed miserably.
The command: cordova requirements returns this:
Requirements check results for android: Java JDK: installed 1.8.0 Android SDK: installed true Android target: not installed Command failed with ENOENT: avdmanager list target spawn avdmanager ENOENT Gradle: installed /opt/gradle/gradle-7.4.1/bin/gradle Some of requirements check failedWhilst the following command cordova emulate android returns:
A problem occurred evaluating script. > Ambiguous method overloading for method io.github.g00fy2.versioncompare.Version#isLowerThan. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class io.github.g00fy2.versioncompare.Version] [class java.lang.String]Are the instructions at the link above in need of updating? Or I am doing something wrong? I’ve installed the latest versions of Android Studio, Cordova and Gradle. Perhaps there’s a specific combination of versions for those tools required?
Any help would be much appreciated.
Thanks all
2022-03-29 at 3:36 pm #50710renderkick
CustomerNever mind I figured it out myself. I’d accidentally installed the lastest Java SDK (version 18) instead of the JRE version lower down the page! I also had to rename a couple of files in the Android Studio package for a sucessful build but I got it working eventually.
2022-03-31 at 6:24 am #50738
Yuri KovelenovStaff2023-03-05 at 7:37 pm #60870echokhan
Customer@renderkick was so happy to see you post on this! I have been running into the same snag… are you able to share what specific rename edits you made in Android Studio to get the apk to build? I have the exact same problem with Gradle requirements returning an AVD manager error.
-
AuthorPosts
- You must be logged in to reply to this topic.
