简体   繁体   English

流星运行android设备停止工作

[英]meteor run android-device stopped working

I upgraded to Meteor 1.2, but this may be unrelated. 我升级到Meteor 1.2,但这可能无关。

I'm getting the following error when doing meteor run android-device meteor run android-device时出现以下错误

It seems it is searching for an android.jar file. 似乎正在搜索android.jar文件。 I checked the path and the file exists. 我检查了路径,并且文件存在。 I even ran this command with sudo . 我什至用sudo运行了此命令。

Errors executing Cordova commands:         

   While running Cordova app for platform Android with options --device:
   Error: Command failed: /c/Users/Uri/Code/afl-meteor/.meteor/local/cordova-build/platforms/android/cordova/run --device
   W/zipro   (14534): Error opening archive /c/Users/Uri/Downloads/android-sdk-linux/platforms/android-22/android.jar: Invalid file
   ERROR: Asset package include '/c/Users/Uri/Downloads/android-sdk-linux/platforms/android-22/android.jar' not found.

   FAILURE: Build failed with an exception.

   * What went wrong:
   Execution failed for task ':CordovaLib:processDebugResources'.
   > com.android.ide.common.internal.LoggedErrorException: Failed to run command:
   /c/Users/Uri/Downloads/android-sdk-linux/build-tools/22.0.1/aapt package -f --no-crunch -I
   /c/Users/Uri/Downloads/android-sdk-linux/platforms/android-22/android.jar -M
   /c/Users/Uri/Code/afl-meteor/.meteor/local/cordova-build/platforms/android/CordovaLib/build/intermediates/bundles/debug/AndroidManifest.xml
   -S /c/Users/Uri/Code/afl-meteor/.meteor/local/cordova-build/platforms/android/CordovaLib/build/intermediates/bundles/debug/res -A
   /c/Users/Uri/Code/afl-meteor/.meteor/local/cordova-build/platforms/android/CordovaLib/build/intermediates/bundles/debug/assets -m -J
   /c/Users/Uri/Code/afl-meteor/.meteor/local/cordova-build/platforms/android/CordovaLib/build/generated/source/r/debug --debug-mode
   --custom-package org.apache.cordova --non-constant-id -0 apk --output-text-symbols
   /c/Users/Uri/Code/afl-meteor/.meteor/local/cordova-build/platforms/android/CordovaLib/build/intermediates/bundles/debug
   Error Code:
   1
   Output:
   W/zipro   (14534): Error opening archive /c/Users/Uri/Downloads/android-sdk-linux/platforms/android-22/android.jar: Invalid file
   ERROR: Asset package include '/c/Users/Uri/Downloads/android-sdk-linux/platforms/android-22/android.jar' not found.


   * Try:
   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

   /c/Users/Uri/Code/afl-meteor/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:126
   throw e;
   ^
   Error code 1 for command: /c/Users/Uri/Code/afl-meteor/.meteor/local/cordova-build/platforms/android/gradlew with args:
   cdvBuildDebug,-b,/c/Users/Uri/Code/afl-meteor/.meteor/local/cordova-build/platforms/android/build.gradle,-PcdvBuildArch=arm,-Dorg.gradle.daemon=true
   at ChildProcess.exitCallback (/tools/utils/processes.js:137:23)
   at ChildProcess.emit (events.js:98:17)
   at Process.ChildProcess._handle.onexit (child_process.js:820:12)

Using android sdk I removed the existing sdk for android 22 and reinstalled it. 使用android sdk我删除了适用于android 22的现有sdk,然后重新安装了它。 After that things were working again. 之后,一切又恢复了。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM