Android Studio 2.0 Preview: ':app:transformClassesWithInstantRunForDebug' FAILED

一曲冷凌霜 提交于 2019-11-28 08:08:21

Resolved :

Disable the Instant Run option in Android Studio 2.0 Preview

Something you can try is deleting the build folder. That does not always work but fixes it sometimes.

rm -rf cart/build

If that does not work. Run that command then in Android Studio select invalidate caches and restart.

This problem happen when the used gradle have problem with instant run.
So to solve this you have to either change gradle version or disable instant run.

In my nexus 5 I have get only warrning, but another devices not complied, so I have disabled debug mode if i need it /

buildTypes {
    release {
        debuggable false
        minifyEnabled true
        proguardFiles 'proguard-android.txt', 'proguard-rules.pro'
    }
    debug {
        debuggable false
        minifyEnabled false
        proguardFiles 'proguard-android.txt', 'proguard-rules.pro'
    }
} 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!