小编Ali*_*adi的帖子

无法使用jcenter解析Android Studio中的依赖项

为什么我的程序挂起来解决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()
}
}
Run Code Online (Sandbox Code Playgroud)

这是我的应用程序gradle:

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', …
Run Code Online (Sandbox Code Playgroud)

android build-tools android-studio android-gradle-plugin

6
推荐指数
1
解决办法
4471
查看次数