实施项目Android Studio 3.0

时间:2017-11-12 03:11:08

标签: android-studio-3.0

android studio多个模块项目 问题出在哪里?
错误消息打印屏幕 - Enter image description here.

项目build.gradle

    buildscript { repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

app build.gradle

...

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
    implementation project(':t2')

}

设置gradle

include ':app', ':t2'

1 个答案:

答案 0 :(得分:1)

此问题已通过新版本的Gradle(v3.3.0)和AndroidStudio(v3.3)修复。