我正试图在我的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上。
如有任何帮助,我们将不胜感激。
谢谢。
请确保您已经使用SDK Manager 更新/安装了Android支持库和Android支持库
在这之后它应该可以工作了。
阅读本期github获取更多信息。