Unable to test app after upgrading to Lollipop

前端 未结 11 794
执笔经年
执笔经年 2020-12-13 12:11

I am using Android Studio to develop my apps.

Since I upgraded my HTC One M8 to Lollipop, I can not use it to test my apps by \"Run app\" in Android Studio. I get

11条回答
  •  佛祖请我去吃肉
    2020-12-13 13:15

    I've had a reasonable amount of success with the workaround below.

    After each debugging session with your app, go to the Android Studio terminal:

    > adb shell am force-stop com.your.app.package
    

    I still occasionally get the java.lang.UnsatisfiedLinkError but only following the above command rather than in between the build/push apk/install process and attempting a debugging session.

    To me, this saves a lot of wasted time building only to get the error. If the command above doesn't work, just up-arrow and re-run the command until it works without an error.

提交回复
热议问题