【发布时间】:2016-02-06 16:40:21
【问题描述】:
为什么我的程序在解决 andorid studio 中 appDebug 的依赖问题时挂起?我无法解析任何库。
这是我的根 gradle 文件:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
这是我的应用程序:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.alimohammadi.myapplication"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
}
我无法解决junit。而且我无法使用浏览器访问https://jcenter.bintray.com/(它让我连接超时,而其他站点返回真实响应)。
【问题讨论】:
标签: android android-studio android-gradle-plugin build-tools