Meteor:试图在我的设备中运行我的应用程序会产生依赖性错误

时间:2015-10-20 11:28:07

标签: android meteor

我正在尝试将我的测试流星应用程序运行到我的设备中,但是当我尝试上传它时,控制台会输出以下错误。

~ meteor run android-device --mobile-server mytest.meteor.com
[[[[[ ~/projects/simple-todos ]]]]]           

=> 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/dbugger/projects/simple-todos/.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 ':classpath'.
   > Could not resolve com.android.tools.build:gradle:1.0.0+.
   Required by:
   :android:unspecified
   > Failed to list versions for com.android.tools.build:gradle.
   > Unable to load Maven meta-data from https://repo1.maven.org/maven2/com/android/tools/build/gradle/maven-metadata.xml.
   > Failure initializing default system SSL context

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

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

我不确定我做错了什么。我甚至无法在命令中添加--stacktrace标志,因为输出告诉我。

我错过了什么?

更新:如果重要,我使用 Ubuntu

更新2 :我在我的系统上安装了证书,但现在又出现了其他错误!

   * What went wrong:
   A problem occurred configuring root project 'android'.
   > Could not resolve all dependencies for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:1.0.0+.
   Required by:
   :android:unspecified
   > Failed to list versions for com.android.tools.build:gradle.
   > Unable to load Maven meta-data from https://repo1.maven.org/maven2/com/android/tools/build/gradle/maven-metadata.xml.
   > Could not GET 'https://repo1.maven.org/maven2/com/android/tools/build/gradle/maven-metadata.xml'.
   > peer not authenticated

1 个答案:

答案 0 :(得分:2)

我遇到了同样的问题。我不知道为什么会这样,但确实如此。只需发出以下命令:

sudo update-ca-certificates -f