GoogleCloudPlatform / android-docs-samples

Apache License 2.0
375 stars 596 forks source link

The project cannot build after Android Studio upgraded to 3.0 #54

Open cywang16 opened 6 years ago

cywang16 commented 6 years ago

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

szuzul commented 6 years ago

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.

yangceng commented 6 years ago

update the protobuf plugin to 0.8.2

ra2637 commented 6 years ago

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'
    }
}