0

I get the following error while I am trying to run the app.I have earlier updated the Android Studio.Gradle has also been posted below. Error:

Error:(1, 1) A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
   > Could not create plugin of type 'AppPlugin'.

Gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.example.jobinsabu.georgetravels"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        repositories {
            maven { url 'https://oss.sonatype.org/content/repositories/ksoap2-android-releases' }
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])

    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.2.1'
    compile 'com.android.support:cardview-v7:23.1.1'
    compile 'com.android.support:recyclerview-v7:23.1.1'
    compile 'com.google.code.ksoap2-android:ksoap2-android:3.6.0'

}
jobin
  • 1,489
  • 5
  • 27
  • 52

1 Answers1

2

Check your grade file and update classpath version here:

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

}
}

Try to change your classpath version and then update. Make sure you are connected to internet for gradle syncing.

Hope it may helpful to you.

Thanks,

Bhuvnesh

Bhuvnesh
  • 1,055
  • 9
  • 29