运行应用程序时出现Android错误

问题描述:

当我尝试运行应用程序时出现以下错误。我早先更新了Android Studio.Gradle也发布在下面。 错误:运行应用程序时出现Android错误

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

摇篮:

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' 

} 
+1

安置自己的gradle这个 –

+0

请立即检查gradle这个已经发布 – jobin

+0

升级版本的Gradle我 – 2016-06-01 05:36:56

检查你的品位文件和更新的classpath版本在这里:

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

} 
} 

试图改变你的classpath的版本,然后更新。 确保您已连接到互联网进行gradle同步。

希望它对你有帮助。

感谢,

Bhuvnesh