HMS-Core / hms-drive-clientdemo

This sample code encapsulates APIs of the HUAWEI Drive Kit SDK.You will learn how to use Drive Kit SDK.
https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/drivekit-introduction?ha_source=hms1
Apache License 2.0
12 stars 7 forks source link

Gradle Sync Failed #2

Closed YimingLi-1996 closed 4 years ago

YimingLi-1996 commented 4 years ago

I cannot build the demo app in Android Studio.

Unable to find method 'org.gradle.api.file.ProjectLayout.fileProperty(Lorg/gradle/api/provider/Provider;)Lorg/gradle/api/file/RegularFileProperty;'. Possible causes for this unexpected error include: Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network)

The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. Stop Gradle build processes (requires restart)

Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

Redreaming commented 4 years ago

Try to update Android Gradle plugin to 3.3.1 or higher.