Praval Sharma Praval Sharma - 2 months ago 23
Android Question

Android Studio - Failed to apply plugin [id '']

I am working on an app. In my app there is no error in code but when I try to run my project it gives following errors.

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

Failed to apply plugin [id '']

Could not create plugin of type 'AppPlugin'.

I try this also Gradle is issuing an error "Could not create plugin of type 'AppPlugin'"

and this also Gradle errors in Android Studio

Following is my build.gradle file

apply plugin: ''
apply plugin: ''

android {
compileSdkVersion 23
buildToolsVersion "21.1.2"

defaultConfig {
applicationId "com.praval.healthfreak"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), ''
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'

compile ''
compile ''
compile 'de.hdodenhof:circleimageview:1.3.0'
compile ''
compile files('libs/YouTubeAndroidPlayerApi.jar')

Please help I am stuck due to this problem in Android Studio.


You need to the latest gradle version to solve this issue

Get Latest Gradle here

and then update your with this

buildscript {
repositories {
dependencies {
    classpath ''

and gradle will update build tools which are causing the issue

Hope it helps