App won't run under Android Studio 2.0, after upgrading from 1.5

不羁岁月 提交于 2019-12-01 16:04:53

Try to disable the Instant Run option in Android Studio 2.0

This is helped me.

try to uncheck the instant run on settings.. search instant on the settings and youll see it. or maybe you havemt changed the path of your gradle to the new one?

Anoop M

Have you ever seen a message box like below when you build your project with Android Studio 2.0 ?

If not , watch out for this window which will possibly appear when you build your project with studio 2.0 then update it. that will change your Gradle-plugin version to 'com.android.tools.build:gradle:2.0.0' and Gradle-wrapper to distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip or you can do it yourself .

Visit this to know more .

Delete build dir

Don't disable Instant Run! It is useful. Instead, try deleting the contents of your build directory, and then rebuilding.

appName/build and/or appName/app/build

Alternatively, clean build

A less brute force option to try is to clean the build.

Build -> Clean Project or Build -> Rebuild Project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!