android-docs-samples icon indicating copy to clipboard operation
android-docs-samples copied to clipboard

The project cannot build after Android Studio upgraded to 3.0

Open cywang16 opened this issue 7 years ago • 3 comments

Greeting,

I use Android Studio on Windows 10. Today I got a prompt upgrading my studio to 3.0. Then I can no longer build this project. I need to edit various gradle files to use lower buildToolsVersion (25.0.3) and to specify distributionUrl=https://services.gradle.org/distributions/gradle-3.3-all.zip for it to build.

Is this a known issue? The error I got includes all flavors should belong to some dimension, and (after fixing that), some gradle build dependencies not resolved.

Thanks,

Chun-Yen

cywang16 avatar Oct 26 '17 22:10 cywang16

Have the same error I think there is an issue with protobuf support in the project it doesn't support build tool version higher than 25. I also didn't solve this.

szuzul avatar Oct 27 '17 13:10 szuzul

update the protobuf plugin to 0.8.2

yangceng avatar Nov 10 '17 10:11 yangceng

Hi, I update the protobuf plugin to 0.8.2, but still get the error msg:

Error:Could not determine the dependencies of task ':app:extractIncludeDevProto'.
> Resolving configuration 'devCompile' directly is not allowed

Following is lines I added into build.gradle. Is there anything wrong? Thanks!

repositories {
    maven { url "https://plugins.gradle.org/m2/" }
}

buildscript {
    repositories {
        maven { url "https://plugins.gradle.org/m2/" }
    }
    dependencies {
        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.3'
    }
}

ra2637 avatar Nov 22 '17 08:11 ra2637