Android NativeActivity示例:错误未知主机';jcenter.bintray.com';通过使用gradle实验插件
我曾尝试从Android Studio 1.5.1中的示例构建nativeActivity代码,但出现以下错误:Android NativeActivity示例:错误未知主机';jcenter.bintray.com';通过使用gradle实验插件,android,android-studio,java-native-interface,android-gradle-plugin,gradle-experimental,Android,Android Studio,Java Native Interface,Android Gradle Plugin,Gradle Experimental,我曾尝试从Android Studio 1.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<
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>
f您无法打开此路径 请使用代理重试
- 像freegate一样运行代理
- cmd type
gradlew-Dhttps.proxyHost=127.0.0.1-Dhttps.proxyPort=8580中的根路径项目
- 像freegate一样运行代理
- cmd type
gradlew-Dhttps.proxyHost=127.0.0.1-Dhttps.proxyPort=8580中的根路径项目
gradlew-Dhttps.proxyHost=127.0.0.1-Dhttps.proxyPort=8580中的根路径项目。你能告诉我你执行这个命令想做什么吗?我可以打开这个路径。但问题仍然存在!试试这个1。运行一个像freegate 2这样的代理。cmd typegradlew-Dhttps.proxyHost=127.0.0.1-Dhttps.proxyPort=8580中的根路径项目可以通过执行此命令来告诉您要做什么吗?
// 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()
}
}