Issue while Android App Configuration


#1

Hi Folks,

I am new in this community and I want to develop some great stuff using meteor specifically for mobile devices but while adding platforms I got errors,

meteor add-platform android
Subproject Path: CordovaLib -
android: added platform

Status of the individual requirements:
✓ Java JDK
✓ Android SDK
✗ Android target: avdmanager: Command failed with exit code 1 Error output:
Exception in thread “main” java.lang.NoSuchMethodError:
com.android.prefs.AndroidLocation.getAvdFolder()Ljava/lang/String;
at com.android.sdklib.tool.AvdManagerCli.init(AvdManagerCli.java:278)
at com.android.sdklib.tool.AvdManagerCli.run(AvdManagerCli.java:210)
at com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:200)
✓ Gradle

I got the solition as start emulator first but that didn’t help.
Any help would be greatly appreciated, Thanks


#2

Problem in android SDK 25+, change that to SDK 24.

Detailed solution: Download android sdk 24.3.4 and replaces it with the already existing in tools folder


#3

I have Nougat/24 but still give me issues, any idea pls?

Your system does not yet seem to fulfill all requirements to build apps for
Android.
                                              
Please follow the installation instructions in the mobile guide:
http://guide.meteor.com/mobile.html#installing-prerequisites
                                              
Status of the individual requirements:        
✓ Java JDK                                    
✓ Android SDK                                 
✗ Android target: avdmanager: Command failed with exit code 1 Error output:
  Exception in thread "main" java.lang.NoClassDefFoundError:
  javax/xml/bind/annotation/XmlSchema
  at
  com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
  at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
  at
  com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
  at com.android.sdklib.tool.AvdManagerCli.run(AvdManagerCli.java:213)
  at com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:200)
  Caused by: java.lang.ClassNotFoundException:
  javax.xml.bind.annotation.XmlSchema
  at
  java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
  at
  java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
  ... 5 more
✓ Gradle                  

#4

Hi @adamginsburg I would suggest to go with lower sdk like I said in answer, I checked and found that there is some issues with the updated sdk. I read it on github.


#5

I’m getting the exact same issue. Using an SDK of 24 or lower didn’t fix my problem either. Did you manage to sort this out?


#6

For me android sdk 24.3.4 worked and it also working fine.


#7

Apologies, I’m new to this, I’ve just realized there’s actually a difference in the error message (full message shown below). I get success on all items except for ✗ Android target: cmd. Any idea what could be causing this problem?

Status of the individual requirements:
SUCCESS Java JDK
SUCCESS Android SDK
✗ Android target: cmd: Command failed with exit code 1 Error output:
Exception in thread “main” java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.(AndroidSdkHandler.java:81)
at com.android.sdklib.tool.AvdManagerCli.run(AvdManagerCli.java:213)
at com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:200)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
… 5 more
SUCCESS Gradle


#8

Check with

  • meteor platform remove android
  • meteor platform update android@latest

#9

It says these aren’t meteor commands


#10

Try these …
meteor add-platform android
meteor remove platform android


#11

I cant get the android build, changed the tools folder, created ANDROID_HOME, ANDROID_SDK_ROOT…but still cant get it.

However, when I changed the tools folder, this is the output,

✓ Java JDK
✓ Android SDK
✗ Android target: android: Command failed with exit code ENOENT
✓ Gradle

Any help appreciated!!


#12

Use Java 8 only. dont use Java 9 or later. Android Studio doesn’t support Java 9.