我在项目中修改并添加了一些依赖项,然后出现此错误:
https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.3/gradle-3.1.3.pom 90ms的元数据
以及与此类似的一些其他错误
对于事件日志:
org.gradle.internal.resource.transport.http.HttpRequestException:无法HEAD'https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.3/gradle-3.1.3.pom'。
我的gradle文件:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
google()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
和模块依赖性:
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.example.hasee.seetravel"
multiDexEnabled true
minSdkVersion 24
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
// jniLibs.srcDirs = ['libs']
res.srcDirs = [
'src/main/res/layout/home',
'src/main/res/layout/explore',
'src/main/res/layout/camera',
'src/main/res/layout/schedule',
'src/main/res/layout/me',
'src/main/res/layout/video',
'src/main/res/layout/drop_menu',
'src/main/res/layout',
'src/main/res'
]
}
}
productFlavors {
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.github.bumptech.glide:glide:4.5.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.5.0'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.mcxiaoke.volley:library:1.0.19'
implementation 'com.github.danylovolokh:video-player-manager:0.2.0'
implementation 'com.jcodecraeer:xrecyclerview:1.5.9'
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.shuyu:GSYVideoPlayer:4.0.0-beat1'
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation 'cn.jzvd:jiaozivideoplayer:6.2.7'
implementation 'com.white.countdownbutton:countdownbtn:1.0.4'
implementation 'com.github.dongjunkun:DropDownMenu:1.0.4'
implementation 'cn.yipianfengye.android:ad-library:1.0'
implementation 'cn.yc:YCDialogLib:3.5'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.sackcentury:shinebutton:0.2.0'
implementation 'me.shaohui:bottomdialog:1.1.9'
implementation 'com.mcxiaoke.volley:library:1.0.19'
implementation 'com.miguelcatalan:materialsearchview:1.4.0'
implementation files('libs/Android_Map3D_SDK_V6.0.0_20180211.jar')
}
我是中国用户,但是打开VPN时也会发生故障。 其他设定: HTTP代理: enter image description here
已安装的SDK平台:Android API 28和Android 8.1(Oreo)
成绩设置: enter image description here
请帮助