Error while Installing restart patches when launching android app with Android Studio 2.0

后端 未结 10 909
既然无缘
既然无缘 2020-12-30 19:57

Currently I\'m using Android Studio 2.0 and installing my APK into my Samsung device (S6). However, when rebuilding my code and running it again I receive the following erro

10条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-30 20:30

    I found this solution that works for me (AndroidStudio 2.1.3, Android 6.0.1). With the Android app running, without closing it on the connected device (smartphone/tablet), do the following steps:

    1. Re-launch the Android app on AndroidStudio, with "Run" button (through the green right arrow);
    2. After 1 sec, press on "Stop" button (through the red square);
    3. AndroidStudio shows two different running processes: the already running Android app on on the connected device, and the Gradle compiling process;
    4. Stop the first one (the already running Android app on the connected device), and leave the Gradle process to complete the deployment of the new version of the Android app on the connected device.

    For me this solution works.

提交回复
热议问题