[英]Android Studio can not run or debug app on emulator
I have a very odd situation here: 我这里的情况很奇怪:
I just want to run and debug my app on the emulator. 我只想在模拟器上运行和调试我的应用程序。
I get 我懂了
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.myapp"
pkg: /data/local/tmp/com.example.myapp
Success
The app is correctly installed on the emulator, but does not start up. 该应用程序已正确安装在模拟器上,但无法启动。
Build finishes with 0 errors and 0 warnings. 构建完成时有0个错误和0个警告。 Eventlog is empty.
事件日志为空。 I cleaned the gradle file and changed the only dependency com.android.support:appcompat-v7:21.+.
我清理了gradle文件并更改了唯一的依赖项com.android.support:appcompat-v7:21.+。
I can start the app normally on the AVD by clicking on it's icon. 我可以通过单击其图标在AVD上正常启动该应用程序。
When I start debugging, app installs, then waits endlessly on: 当我开始调试时,应用会安装,然后无休止地等待着:
Waiting for process: com.example.myapp
I do not even now where to start looking (of course I tried rebuilding, synchronizing and cleaning cache). 我什至没有从哪里开始寻找(当然我尝试过重建,同步和清理缓存)。 I also tried changing the project name.
我也尝试过更改项目名称。
也许尝试创建一个新项目并复制您的代码?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.