5

when i upgrade AndroidStudio 2.1 to 2.2 and gradle 2.14 to 2.2, there has a gradle compiled error:

Error:Could not initialize class com.android.build.gradle.AppPlugin
2
  • What was the reason that it provided for not being able to initialize the class? Commented Sep 20, 2016 at 7:07
  • Have you fix it. Getting same issue after update Commented Sep 21, 2016 at 7:42

1 Answer 1

2

If there are plugins specified in the project's gradle build files, check that they have been upgraded. I fixed this problem by upgrading com.github.hierynomus.license to the latest version.

Sign up to request clarification or add additional context in comments.

4 Comments

May I ask how to "check my plugin"?
sorry I dont install this plugin!
@songzhw The plugins, at least in my project, are specified in the build.gradle in the root of the project.
Thanks for your replying. Yeah, but we normally just use "apply plugin 'nexus'", for example. We do not specific the version. It's not like "apply plugin 'nexus 1.1.0' ". May I ask how to check if the plugins have been upgraded or not?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.