Android Studio can't run application on device: stuck on “Waiting for process: <project>”

我与影子孤独终老i 提交于 2019-12-01 03:13:32

UDPATE: I think I found your problem. After looking at the Manifest, the one anomaly I found that I have not found anywhere else is the line about the Android launchmode.

    android:launchMode="standard"

This seems to be related to the problem and is the first glaring issue that I see with this. Remove it, if it works, feel happy, accept the answer :). Make sure you rebuild the project to ensure that the changes are incorporated.

OLD: I think that this is a problem with the Activity not being registered correctly in the Android Manifest. I would make sure that it is the launch process.

Just to get more information, I would export it to an APK and then run it directly on the device, bypassing the debugger. If you do this test though, make sure you turn debuggable off. Of course do this if the other solution doesn't work and you just want to collect more information about the problem.

"File" --> "Invalidate Caches / Restart" worked for me like a charm.

I had the same error after upgrading to a new version of the SDK. After updating my build.gradle from 'com.android.tools.build:gradle:1.0.0-rc2' to 'com.android.tools.build:gradle:1.0.0' and invalidating caches/restart, it's working again.

In Android Studio, Run->Edit Configuration choose Launch default Activity.

Otherwise, it doesn't even bother to start the application.

In case , you are importing the project from some folder and android studio shows - " Waiting for process", then this did work for me. I copied the project to C:\Users[your account]\AndroidStudioProjects (this path might be different for different users), and then imported the project from there.

Before doing this, I tried everything like , kill-start server, plugging-unplugging ,reinstalling android, USB tethering mode on in android device etc. etc. , but none of them worked for me.

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