流星离线构建错误

时间:2018-06-25 09:16:15

标签: gradle meteor build offline

流星离线构建错误!

  

“未指定compileSdkVersion”

     当没有互联网连接时,我需要在离线情况下进行构建

错误消息是这样的。

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home
Subproject Path: CordovaLib
Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
java.lang.IllegalStateException: compileSdkVersion is not specified.
.
.
.
.

* Where:
Build file '/Users/myFolder/Documents/workspace/myPjt/.meteor/local/cordova-build/platforms/android/build.gradle' line: 96

* What went wrong:
A problem occurred evaluating root project 'android'.
> Could not resolve all dependencies for configuration 'classpath'.
   > Could not resolve com.android.tools.build:gradle:+.
     Required by:
         unspecified:unspecified:unspecified
      > Could not resolve com.android.tools.build:gradle:+.
         > Failed to list versions for com.android.tools.build:gradle.
            > Unable to load Maven meta-data from https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml.
               > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml'.
                  > jcenter.bintray.com: nodename nor servname provided, or not known

但是,如果我再次连接互联网,它将再次起作用。 奇怪的是..它在断开连接并建立后就可以正常工作。但是,也许.. 24小时后,直到重新连接互联网,它才再次起作用。

这怎么可能?是否有任何超时在线检查? 请帮助...

0 个答案:

没有答案