Unable to test app after upgrading to Lollipop

前端 未结 11 710
执笔经年
执笔经年 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 12:54

    This solution worked for me, you may give it a try.

    Add adb path to System Environment Variables (I'm using windows 8)
    Ex: my path is "C:\Users\xxx\AppData\Local\Android\sdk\platform-tools"
    Dont forget to reboot your system to take the effect!

    About how to set the path and environment variables in Windows >> here

    0 讨论(0)
  • 2020-12-13 12:57

    I met the same problem on ASUS ME176C(Lollipop 5.0),
    but I resolved it by setting "Select debug app" to "No". Then push apk as usual. After that, you can reselect "debug app" to target app.

    0 讨论(0)
  • 2020-12-13 12:58

    I'm not sure what the underlying cause is, but I found I could successfully avoid this issue by closing down all running apps on the phone before trying to Run my code on my M8.

    0 讨论(0)
  • 2020-12-13 12:59

    On my HTC M8, I resolved the issue by disabling "Settings -> Developer options -> Use NuPlayer(experimental)"

    What I have noticed is, when I try to run the application I created long back (few years ago), I have to disable the NuPlayer. However, with new applications, I must keep the option checked.

    Hope this helps....

    0 讨论(0)
  • 2020-12-13 13:04

    Workaround: disable ADB integration in Android Studio.

    Tools > Android > uncheck Enable ADB integration

    0 讨论(0)
  • 2020-12-13 13:10

    Do you use any third-party launcher on device? I have same issue when use Aviate launcher. I switch back to BlinkFeed in Personalize->Main Screen settings and my deploy to device is stable now. Classpath com.htc.customization.HtcCustomizationManager make me thing than this issue related to launcher.

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