Meteor运行android设备错误

时间:2015-12-31 17:08:52

标签: android maven meteor gradle

我试图在我的Android设备上运行我的流星应用程序并遇到一些麻烦。在我添加raix:push包之前,它工作正常。添加后我收到此错误

root@sbhnmhmd-BB-83208B:~/Documents/whsapp# meteor run android-device --mobile-server http://192.168.0.2
[[[[[ ~/Documents/whsapp ]]]]]                

=> Started proxy.                             
=> Started MongoDB.                           

WARNING: You are testing your app on a remote device. For the mobile app to be
         able to connect to the local server, make sure your device is on the
         same network, and that the network configuration allows clients to
         talk to each other (no client isolation).
=> Started your app.                          

=> App running at: http://localhost:3000/     
=> Errors executing Cordova commands:         

   While running Cordova app for platform Android with options --device:
   Error: Command failed:                     
   /home/sbhnmhmd/Documents/whsapp/.meteor/local/cordova-build/platforms/android/cordova/run
   --device
   FAILURE: Build failed with an exception.

   * What went wrong:
   A problem occurred configuring root project 'android'.
   > Could not resolve all dependencies for configuration ':_debugCompile'.
   > Could not find any version that matches
   com.android.support:support-v13:23+.
   Searched in the following locations:

   https://repo1.maven.org/maven2/com/android/support/support-v13/maven-metadata.xml
   https://repo1.maven.org/maven2/com/android/support/support-v13/
   Required by:
   :android:unspecified

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


   /home/sbhnmhmd/Documents/whsapp/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:126
   throw e;
   ^
   Error code 1 for command:
   /home/sbhnmhmd/Documents/whsapp/.meteor/local/cordova-build/platforms/android/gradlew
   with args:
   cdvBuildDebug,-b,/home/sbhnmhmd/Documents/whsapp/.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)

ExitWithCode:1

Android SDK是最新的,我在Ubuntu 14.0.4上。

任何帮助都将不胜感激。

感谢。

1 个答案:

答案 0 :(得分:0)

请确保您使用SDK Manager

更新/安装了Android支持存储库和Android支持库

此后应该可以使用。

请阅读此github问题以获取更多信息。