![]() ![]() Or on your system to install the gradle wrapper. I installed the SDK, (I think I installed the necessary ones) and when I returned to a Cordova project, and I ran cordova requirements to see if everything was OK, the result was the following: Android Studio project detectedĪvdmanager: Command failed with exit code 1 Error output:Įxception in thread "main" : javax/xml/bind/annotation/XmlSchemaĪt .SchemaModule$SchemaModuleVersion.(SchemaModule.java:156)Īt .SchemaModule.(SchemaModule.java:75)Īt .AndroidSdkHandler.(AndroidSdkHandler.java:81)Īt .n(AvdManagerCli.java:213)Īt .AvdManagerCli.main(AvdManagerCli.java:200)Ĭaused by: : .XmlSchemaĪt java.base/.loadClass(BuiltinClassLoader.java:583)Īt java.base/$AppClassLoader.loadClass(ClassLoaders.java:178)Īt java.base/(ClassLoader.java:521)Ĭould not find an installed version of Gradle either in Android Studio, The owner of /home/miguel/.config/ibus/bus is not root! I accepted all the defaults when installing Android Studio and let it install whatever software it needed. When you start Android Studio with the following command, sudo -E /opt/google/android-studio/bin/studio.sh this shows the first error: Gtk-Message: 09:07:14.283: Failed to load module "canberra-gtk-module" I followed the instructions exactly, but even so I have several errors. This is related to gradle wrapper and the reason is something related to gradle wrapper is broken or deleted from the project. It has a library dependency (Android-Bootstrap), when I try to sync gradle, it gives me an error: Configuration with name ‘default’ not found. ![]() Finally, use the 'Sync Project with Gradle Files' button in the top right of Android Studio (the icon looks like an elephant). ![]() First of all, make sure the plugin is installed and appears in the package.json. Platform SDK does not point to valid SDK ( /usr/lib/jvm/jdk1.8.040 ). This issue might appear on an Android project as well. On Android, this can happen if Capacitor doesnt find the plugins or cant inject its code into the WebView. After downloading, extract all the files to an accessible folder. Gradle error: Could not find or load main class : I faced this issue on a react native project. I have installed Android Studio with the idea of developing applications with Cordova and Phonegap thanks to the help of my partner who showed me this question: Download the latest version of Gradle from the official Gradle Release Website.
0 Comments
Leave a Reply. |