问题
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