android - meteor 运行android设备错误

标签 android maven meteor gradle

我正在尝试在Android设备上运行 meteor 应用程序,但遇到了一些麻烦。直到我添加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问题以获取更多信息。

关于android - meteor 运行android设备错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34549448/

相关文章:

javascript - 如何使用 Grafana API 指定数据源的 ID?

java - 复制的文档文件与原始文档文件的大小和哈希值不同

Android 空线性布局内容

javascript - 从 HTTP.get 访问变量

java - Eclipse + Tomcat + Maven 即使在添加 Maven 库后也找不到类异常

java - Maven 循环依赖

javascript - Google Maps Javascript API v3 不会在 meteor 项目中加载,net::ERR_BLOCKED_BY_CLIENT

android - 使用 Push Sharp 的谷歌云消息传递

android - 刷新 View 分页器 fragment 上的内容

java - Jelly 配置展开元素