Android Studio after deploying app not launching on Phone

故事扮演 提交于 2020-01-06 05:27:06

问题


Got a new computer installed android studio. Created a test app (default) - No coding. I compiled and clicked the run and installed the app to the device (1+6). The app is installed but doesn't launch automatically.

I checked the configuration shows launch default activity.

What could be wrong?

Also another strange thing: I get emulator-5556 [OFFLINE] - blinking always in select deployment target.

Can someone help me fix this?

Thanks!


回答1:


I had the same problem and was able to solve it. The problem seems to be the result of another program using the same port 5556. In my case it was Videostream.Videostream tasks

After ending the tasks related to Videostream the blinking stopped and apps were deployed normally.




回答2:


You need to select an emulator under Deployment Target Options -> Target:.




回答3:


In such a case, you can do as follows

adb kill-server
adb reconnect

You should see online after above command & select this emulator from

- Run > Edit Configurations > Target 
In General Tabarea choose 
- Target: Emulator 
- Android Virtual Device: <your emulator>


来源:https://stackoverflow.com/questions/54394330/android-studio-after-deploying-app-not-launching-on-phone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!