简体   繁体   English

Android studio 未连接到虚拟设备

[英]Android studio not connecting to virtual device

When I start my app in Android Studio, as usual, the emulator starts and the app openes.当我在 Android Studio 中启动我的应用程序时,像往常一样,模拟器启动并且应用程序打开。

But:但:

  1. After I start the app, the run-logo doesn't change to the reload-logo.启动应用程序后,运行徽标不会更改为重新加载徽标。
  2. When clicking the non-changed logo again, I can see "Install successfully finished in 1 s 451 ms."再次单击未更改的徽标时,我可以看到“安装成功在 1 s 451 ms 内完成”。 in "Run", but the app doesn't restart.在“运行”中,但应用程序不会重新启动。
  3. System.out and Log.e don't work System.out 和 Log.e 不起作用

I tried:我试过了:

  1. Restarting Android Studio重启Android Studio
  2. Invalidate Caches / Restart使缓存无效/重新启动
  3. Rebuilding gradle重建 gradle
  4. Wiping the emulator data擦除模拟器数据
  5. Reinstalling the app重新安装应用程序
  6. Resetting the Run/Debug configurations重置运行/调试配置

I found a question to another app starting problem, the answer was telling to delete the.AndroidStudio folder, but I could not find it (searched on my whole computer)我发现另一个应用程序启动问题的问题,答案是告诉删除 .AndroidStudio 文件夹,但我找不到它(在我的整个计算机上搜索)

My theory: Android Studio is just starting my emulator and the app, but has no connection to it, as if I would start the app by myself.我的理论:Android Studio 只是启动我的模拟器和应用程序,但与它没有任何联系,就好像我会自己启动应用程序一样。

Any help appreciated!任何帮助表示赞赏!

I can't comment because I don't have 50 reputation yet, so I will ask my questions here.我无法发表评论,因为我还没有 50 声望,所以我会在这里问我的问题。

Did you try to remove your virtual device and install a different virtual device?您是否尝试删除您的虚拟设备并安装不同的虚拟设备?

if that doesn't work, then maybe you should try to create a new project and check if it runs, just to make sure it's not a problem if your current project.如果这不起作用,那么也许您应该尝试创建一个新项目并检查它是否运行,以确保如果您当前的项目没有问题。

if the new project is working then try to move all of your code to the new project and check if it's working there.如果新项目正在运行,那么尝试将所有代码移动到新项目并检查它是否在那里运行。

waiting for your response.等待你的答复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM