我升级到Meteor 1.2,但这可能是无关的。
我在执行meteor run android-device
它似乎正在搜索android.jar文件。我检查了路径,文件存在。我甚至用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)
答案 0 :(得分:1)
使用android sdk
我删除了现有的sdk for android 22并重新安装了它。之后事情又恢复了。