1

This is, unfortunately, not a duplicate of Error:(1, 0) Plugin with id 'com.android.application' not found - solutions from there don't help me.

The problem occurred today after updating Android Studio when it said I should update Gradle to 2.14. I clicked "OK" and now my project is somehow broken. The error I get is in the title.

This is my root build.gradle:

 buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.1.3' } } allprojects { repositories { jcenter() } } 

And this is the first line in the project build.gradle:

apply plugin: 'com.android.model.application' 

If I change it to

apply plugin: 'com.android.application' 

I get an error

Error:Cause: buildToolsVersion is not specified. 
8
  • 1
    Post both your project and module build.gradle files Commented Aug 16, 2016 at 8:01
  • @Shaishav: The project-level one is already posted in my question in its entirety. Here's the module build file: gist.github.com/VioletGiraffe/826ba80b7e7d800c20aa067fa9506c11 Commented Aug 16, 2016 at 8:04
  • Not aware of the requirements in the latest gradle version but, the docs say use classpath "com.android.tools.build:gradle-experimental:0.7.0-alpha4" in project build.gradle file Commented Aug 16, 2016 at 8:19
  • @Shaishav: that almost looked as if it was going to work, but... "Error:Could not find com.android.tools.b‌​uild:gradle-experimen‌​tal:0.7.0-alpha4." Commented Aug 16, 2016 at 8:20
  • I took it from here: tools.android.com/tech-docs/new-build-system/… ... it synced properly in mine. Commented Aug 16, 2016 at 8:22

1 Answer 1

1

This was an NDK project which means I couldn't use classpath 'com.android.tools.build:gradle:2.1.3'. I needed classpath "com.android.tools.build:gradle-experimental:0.7.3". Updating from 0.7.0 to 0.7.3 solved all my problems that were caused by updating Gradle to 2.14.

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.