【问题标题】:Implementation project Android Studio 3.0实现项目Android Studio 3.0
【发布时间】:2017-11-12 03:11:07
【问题描述】:

android studio 多模块项目 问题可能出在哪里?
错误消息打印屏幕 -

项目 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')

}

设置分级

include ':app', ':t2'

【问题讨论】:

  • 您的问题可以通过 thislink 解决,感谢@Duy Phan。

标签: android-studio-3.0


【解决方案1】:

这个问题已经在 Gradle(v3.3.0) 和 AndroidStudio(v3.3) 的新版本中得到修复。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-10-17
    • 1970-01-01
    • 1970-01-01
    • 2018-05-01
    • 2018-01-27
    • 2015-12-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多