简体   繁体   English

在Android设备上运行im时出现meteorjs错误

[英]meteorjs when running on android-device im getting this error

I am trying to develop an app from meteor.js. 我正在尝试从meteor.js开发一个应用程序。 I am able to compile and run on Apple devices. 我可以编译并在Apple设备上运行。 But when I try to run on android (meteor run android-device) I get the below error message from terminal. 但是,当我尝试在android上运行(流星运行android-device)时,我从终端收到以下错误消息。 I have tried googling the issue but still could not get a fix!. 我已尝试使用Google搜索该问题,但仍无法解决!

 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:190) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499) ... 5 more ✓ Gradle 

This is what I did: 这是我所做的:

meteor remove-platform android

As mentioned by @SamaahRasheed I then went to Android Studio and updated it: 如@SamaahRasheed所述,然后我去了Android Studio并对其进行了更新:

Android Studio > Check for updates Android Studio>检查更新

and then also updated everything else Android Studio then recommended I update as well. 然后还更新了其他所有内容,然后Android Studio建议我也进行更新。

Then I made sure JAVA_HOME was at least java 8 然后我确保JAVA_HOME至少是Java 8

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home

Then I re-added android platform: 然后我重新添加了android平台:

meteor add-platform android

It may be that one of these was more important than the others, but this worked. 也许其中一个比其他的更重要,但这确实有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 对于以下代码,即使即时消息提供了正确的输入,我也会收到错误的InputMismatch异常 - For the Following code,im getting a error InputMismatch exception,even when im providing correct input 运行时在我的设备上出现dexPathList错误,但在其他设备上正常吗? 已经将multidex添加到gradle中 - Getting dexPathList error on my device when running but fine on other devices? Already added multidex to gradle 在 Android 设备上运行时出现 OkHttp 致命异常 - OkHttp Fatal Exception when running on Android device 在硬件设备上运行时Android Studio错误 - Android Studio errors when running on a hardware device 在真实设备上运行时的 Android IndexOutOfBoundsException - Android IndexOutOfBoundsException when running on real device 运行程序时出现错误 - Getting error when running the program 即时通讯在结果集行出现错误 - im getting an error at resultset line 开启设备后,运行DialogFragment时报错 - After turning the device, when running DialogFragment error 为什么对于某些值我会出错,而对于另一些值我却没有? - Why for some values im getting an error but for others im not? 在eclipse android real设备上运行我的程序时,我在LogCat中遇到许多错误,这些错误以及如何解决? - When running my program on eclipse android real device i'm getting many errors in the LogCat what all this errors and how to fix them?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM