Android Build Failed with meteor v1.6.0.1


#1

Hi,
Created a new project t1 using “meteor create t1”, added android platform with “meteor add-platform android”.
Installed all the pre-requisites.
the build fails with the following error!

Status of the individual requirements:
✓ Java JDK
✓ Android SDK
✗ Android target: android: Command failed with exit code ENOENT
✓ Gradle

Meteor version - 1.6.0.1

Someone please point me to, what am I missing?

thanks,
Srikanth


#2

even after updating meteor to 1.6.1, I still get

Please follow the installation instructions in the mobile guide:

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.(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
✓ Gradle

Stuck here… pls help me!!

Unity3d was able to build android apk with same jdk and android studio setup…just gave a try!


#3

Hi, MDG are working on this for next version (1.6.2), you can read this github issue.
You can try to add to your PATH $ANDROID_HOME/tools/bin


#4

thanks for the reply,

I resolved by downgrading Andrdoi SDK to 26 and JAVA to 1.8x. Thanks to MeteorJS tweet!