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

前端 未结 4 1319
一整个雨季
一整个雨季 2021-01-18 02:57

I recently upgraded my Android Studio from 1.5 to 2.0. My app would build and run nicely on Android 1.5. Now, when I try run the app on my smartphone, it gives me this error

4条回答
  •  广开言路
    2021-01-18 03:36

    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 .

提交回复
热议问题