我尝试从AndroidStudio1.5.1中的示例构建nativeActivity代码,但是我得到了这个错误:
Error:Unknown host 'jcenter.bintray.com'. You may need to adjust the proxy settings in Gradle.
Enable Gradle 'offline mode' and sync
Learn about configuring HTTP proxies in Gradle</a>我没有发现这个问题,因为这些项目没有使用所有来自android集线器的本地示例所使用的实验性插件(com.android.tools.build:gradle-experimental:0.4.0')。
我的项目:NativeActivity build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle-experimental:0.4.0'
}
}
allprojects {
repositories {
jcenter()
}
}发布于 2016-03-16 06:04:53
如果你不能打开这条路
再次使用代理。
gradlew -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=8580中的根路径项目https://stackoverflow.com/questions/36027664
复制相似问题