2015-09-25 108 views
1

我升級到流星1.2,但這可能是無關的。流星跑Android設備停止工作

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) 

回答

1

使用android sdk我刪除了現有的SDK爲Android 22並重新安裝它。之後,事情再次起作用。

+0

嗯。正確的。只是想知道如果你有這個答案:http://stackoverflow.com/questions/31815688/meteorjs-cant-manage-to-deploy-meteor-app-on-android-emulator-device?s=2|0.9892 –