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

后端 未结 10 837
既然无缘
既然无缘 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:27

    Clean the project and in File option of Android Studio press Invalidate Caches/ Restart. Disable Instant Run and do a gradle sync. This worked for me. I am using Mac, I think this will be similar in Windows and Ubuntu.

    0 讨论(0)
  • 2020-12-30 20:27

    This is session related issue. Restart studio and avoid pulling cable during instant run for future repeat of this problem.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-12-30 20:38

    I updated Android Studio to 2.2.3 and Gradle to 2.14.1 and it worked.

    0 讨论(0)
提交回复
热议问题