Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/189.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android NativeActivity示例:错误未知主机';jcenter.bintray.com';通过使用gradle实验插件_Android_Android Studio_Java Native Interface_Android Gradle Plugin_Gradle Experimental - Fatal编程技术网

Android NativeActivity示例:错误未知主机';jcenter.bintray.com';通过使用gradle实验插件

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<

我曾尝试从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</a>

f您无法打开此路径

请使用代理重试

  • 像freegate一样运行代理

  • cmd type
    gradlew-Dhttps.proxyHost=127.0.0.1-Dhttps.proxyPort=8580中的根路径项目


f您无法打开此路径

请使用代理重试

  • 像freegate一样运行代理

  • cmd type
    gradlew-Dhttps.proxyHost=127.0.0.1-Dhttps.proxyPort=8580中的根路径项目


你是说build.gradle?你可以打开此url?你是说build.gradle?你可以打开此url?我可以打开此路径。但问题仍然存在!试试这个1。运行一个像freegate 2这样的代理。cmd type
gradlew-Dhttps.proxyHost=127.0.0.1-Dhttps.proxyPort=8580中的根路径项目。你能告诉我你执行这个命令想做什么吗?我可以打开这个路径。但问题仍然存在!试试这个1。运行一个像freegate 2这样的代理。cmd type
gradlew-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()
    }
}