2

I've recently updated to Android Studio 2.2 and changed Gradle plugin version to 2.2.0 com.android.tools.build:gradle:2.2.0.

Now I'm getting the following error when trying to sync Gradle files:

Gradle sync failed: Unable to load class 'com.android.builder.profile.Recorder$Property'.

If I change Gradle plugin version to 2.1.3, the problem disappears. How I can use the latest version 2.2.0?

P.S. I'm also using gradle-experimental for NDK support - com.android.tools.build:gradle-experimental:0.7.3

2
  • post build.gradle code. Commented Sep 20, 2016 at 7:43
  • There are several gradle files in the project, but there is no com.android.builder.profile.Recorder in any of them. Commented Sep 20, 2016 at 8:29

1 Answer 1

8

I solved the problem by updating gradle-experimental to version 0.8.0 :)

classpath 'com.android.tools.build:gradle:2.2.0'
classpath "com.android.tools.build:gradle-experimental:0.8.0"

hope this will fix it for you too and will not generate new errors!

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.