androidthings / sample-googleassistant

Google Assistant API sample for Android Things
Apache License 2.0
467 stars 147 forks source link

Gradle features used in incompatible with Gradle 6 #96

Closed Piflyer closed 5 years ago

Piflyer commented 5 years ago

I was trying to run ./gradlew assembleDebug when this keep appearing`

Configure project :grpc The com.google.protobuf plugin was already applied to the project: :grpc and will not be applied again after plugin: android-library

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 2s ` I tried Android studio 2.3, and the warning still persistently show. Is there a way to get rid of it. Thanks.

Fleker commented 5 years ago

You're using Gradle v6? Isn't the latest version v5.x?

Fleker commented 5 years ago

What version of the Android Studio Gradle plugin are you using?

Piflyer commented 5 years ago

I was able to solve this problem by downgrading the Gradle version in Project Structure. When I check back, it still keeps bugging me to update to Gradle 5.1.1, which is weird.