Rom*_*ome 8 ssl android android-studio android-gradle-plugin gradle-plugin
当我尝试创建空活动项目时,我在Android Studio 2.3.2中遇到以下错误.当我尝试导入项目时,我也得到了这个.
Error:Cause: unable to find valid certification path to requested target
Run Code Online (Sandbox Code Playgroud)
在这里,我的gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Run Code Online (Sandbox Code Playgroud)
和
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.example.myapplication"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
}
Run Code Online (Sandbox Code Playgroud)
我也曾尝试更换jcenter()与
jcenter {
url "http://jcenter.bintray.com/"
}
Run Code Online (Sandbox Code Playgroud)
要么
maven {
url "http://repo1.maven.org/maven2"
}
Run Code Online (Sandbox Code Playgroud)
我的gradle分发网址是最新的
distributionUrl=https://services.gradle.org/distributions/gradle-3.3-all.zip
Run Code Online (Sandbox Code Playgroud)
我已经检查了不同论坛中的许多主题,但无法解决我的问题.
编辑:由于Android社区似乎非常不活跃,我现在该怎么办?有人请在评论部分至少作为我.
在我的另一台机器上,此错误显示为URL.我通过手动下载后将jar放入libs文件夹解决了这个问题.但对于这个问题,我找不到解决方案!
| 归档时间: |
|
| 查看次数: |
8643 次 |
| 最近记录: |