manojprasad
manojprasad

Reputation: 158

Android Studio Error fail to establish apply plugin com.android.application

Error:(1, 1) A problem occurred evaluating project ':app'.

Failed to apply plugin [id 'com.android.application'] Could not create plugin of type 'AppPlugin'.

Can anyone help me to solve this issue

Upvotes: 8

Views: 9276

Answers (1)

mtrakal
mtrakal

Reputation: 6407

Google releases a new build tool and old makes deprecated I think.

We used: classpath 'com.android.tools.build:gradle:2.0.0-alpha1'

but new version was released and this error occured.

Just replace previous with new version: classpath 'com.android.tools.build:gradle:2.1.0-alpha5'

So check latest build tool from: http://tools.android.com/tech-docs/new-build-system

Stable build tool last version is (I think): classpath 'com.android.tools.build:gradle:1.5.0'

Upvotes: 12

Related Questions