Android Studio从2.3升级到3.0后,出现了这个错误
Unable to load class 'org.gradle.api.internal.component.Usage'.
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.
如图:
后来发现是升级Android Studio 3.0后,gradle需要用4.1以上的版本,如图:
而4.1以上的gradle需要novoda:bintray的版本至少0.5.0以上,所以,把novoda:bintray版本如图改为0.5.0以上就好:
碎碎念:如果有用,给个喜欢
更多问题加群:584275290