Android Studio Build Error : This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Run -


i upgraded android studio version 1.5 2.0 today , has gone wrong.
first got gradle version error, updated gradle version 2.10 2.12.

# previous # distributionurl=https\://services.gradle.org/distributions/gradle-2.10-all.zip # current distributionurl=https\://services.gradle.org/distributions/gradle-2.12-all.zip 

gradle version error has disappeared.
have error when try run project:

error running app: version of android studio incompatible gradle plugin used. try disabling instant run (or updating either ide or gradle plugin latest version) 


project gradle.build:

// top-level build file can add configuration options common sub-projects/modules.  buildscript {     repositories {         jcenter()     }     dependencies {         classpath 'com.android.tools.build:gradle:2.0.0'         classpath 'com.google.gms:google-services:2.1.0-alpha1'         classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'          // note: not place application dependencies here; belong         // in individual module build.gradle files     } }  allprojects {     repositories {         jcenter()     } }  task clean(type: delete) {     delete rootproject.builddir } 


, module:app gradle.build file.

apply plugin: 'com.android.application' apply plugin: 'io.fabric' apply plugin: 'android-apt'  android {     compilesdkversion 23     buildtoolsversion "23.0.2"      defaultconfig {         applicationid "com.example.test"         minsdkversion 19         targetsdkversion 23         versioncode 1         versionname "1.0"          multidexenabled true     }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     }     compileoptions {         sourcecompatibility javaversion.version_1_7         targetcompatibility javaversion.version_1_7     }     dexoptions {         maxprocesscount = 4 // default value         javamaxheapsize "4g"         predexlibraries = false     } }  buildscript {     repositories {         maven { url 'https://maven.fabric.io/public' }         mavencentral()     }      dependencies {         classpath 'io.fabric.tools:gradle:1.+'     } }  repositories {     jcenter()     maven { url 'https://maven.fabric.io/public' }     mavencentral() }   dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     testcompile 'junit:junit:4.12'      compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') { transitive = true; }     compile('com.twitter.sdk.android:twitter:1.12.1@aar') { transitive = true; }      apt 'com.github.hotchemi:permissionsdispatcher-processor:2.1.2'     compile 'com.android.support:appcompat-v7:23.3.0'     compile 'com.android.support:design:23.3.0'     compile 'com.android.support:cardview-v7:23.3.0'     compile 'com.android.support:palette-v7:23.3.0'     compile 'com.android.support:recyclerview-v7:23.3.0'     compile 'com.android.support:support-v13:23.3.0'     compile 'com.android.support:support-v4:23.3.0'     compile 'com.android.support:multidex:1.0.0'     compile 'com.google.android.gms:play-services-analytics:8.4.0'     compile 'com.google.android.gms:play-services-gcm:8.4.0'     compile 'com.google.android.gms:play-services-maps:8.4.0'     compile 'com.google.android.gms:play-services-location:8.4.0'     compile 'com.squareup.retrofit2:retrofit:2.0.0-beta4'     compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'     compile 'com.facebook.android:facebook-android-sdk:4.6.0'     compile 'com.paypal.sdk:paypal-android-sdk:2.13.3'     compile 'com.squareup.picasso:picasso:2.5.2'     compile 'com.github.hotchemi:permissionsdispatcher:2.1.2' }  apply plugin: 'com.google.gms.google-services' 


disabled instant run preferences nothing changed.
how can resolve error?
i'm struggling half days.

i deleted build folder after cleaning project, , working fine now. :d
don't know why happen, maybe pre-built setting conflicted new build setting.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -