I have just uploaded my Android Studio version to 2.3, and I am now having problems testing my app in my emulator. It is a Nexus 5X emulator with Android 7.0 Nougat loaded on it (API 24), with an ABI: armeabi-v7a (I have an AMD processor, so to the best of my knowledge I can only use this). Before, it was a bit slow and would sometimes come up with a 'Not Responding' error, but clicking 'Wait' would always do the trick.
我刚刚上传了我的Android Studio版本到2.3,现在我在模拟器中测试我的应用有问题。它是一个搭载Android 7.0 Nougat的Nexus 5X模拟器(API 24),带有一个ABI: armeabi-v7a(我有一个AMD处理器,所以就我所知,我只能使用它)。以前,它有点慢,有时会出现“没有响应”错误,但点击“等待”总是有用的。
After the Android Studio update, when I press 'Run', it opens up & boots the emulator. However, once booted, it gets stuck on the "Launching App - Installing APKs" process. It probably shows that it is doing this for about 2 minutes, before stopping. It then shows "Launching Instant Run Service" for a few seconds. The green 'run' arrow then becomes active again, as if there is no emulator open. The emulator is open, but there is no app. If I click the green 'run' arrow with the emulator already open, it does a gradle build sync & then doesn't even attempt to launch the app/install APKs - it only says "Launching Instant Run Service" for a few seconds, even though nothing happens.
在Android Studio更新之后,当我按下“Run”时,它会打开并引导模拟器。然而,一旦启动,它就会被困在“启动应用-安装APKs”过程中。它可能表明,在停止之前,它已经这样做了大约2分钟。然后显示“启动即时运行服务”几秒钟。绿色的“运行”箭头再次变得活跃,就像没有打开模拟器一样。模拟器是开放的,但没有应用程序。如果我点击绿色的“运行”箭头模拟器已经打开,它gradle构建同步&然后甚至不尝试启动app /安装的apk——它只说“启动即时运行服务”几秒钟,即使什么也不会发生。
I have tried removing the emulator & recreating it, and I have also tried fiddling with some of the parameters as suggested in other posts which concern similar (but not identical) issues to this. The first time I tried to run the app on the emulator after the update, I had many messages pop up in the event log, saying Android Studio Can't Bind to Local 86xx for debugger, whilst the Android Device Monitor was opened. Ever since then, with the ADM closed, I have had the problem described above, with no error messages showing in the error log.
我已经尝试删除仿真器并重新创建它,我还尝试修改一些参数,如在其他与此相关(但不是完全相同)的文章中建议的那样。更新后,我第一次尝试在模拟器上运行应用程序时,在事件日志中弹出了很多消息,说Android Studio无法绑定到本地86xx进行调试,同时Android设备监视器也被打开了。从那以后,随着ADM的关闭,我遇到了上面描述的问题,错误日志中没有显示错误消息。
Any help with this issue would be very much appreciated - please note it concerns the very latest version of Android Studio which I have only just had a popup requesting that I install. Build Tools Version in build.gradle has also been updated from 24.0.2 to 25.0.0.
对于这个问题的任何帮助都将非常感谢-请注意它涉及到最新版本的Android Studio,我刚刚有一个弹出窗口请求我安装。构建工具版本。等级也从24.0.2升级到25.0.0。
8 个解决方案
#1
7
If you haven't already done it:
如果你还没有做过
Open Tools -> Android -> SDK Manager
Select tab SDK Tools, flag Android Emulator (version 27.0.5 at the moment) and Apply
打开工具-> Android -> SDK管理器选择tab SDK工具,标记Android模拟器(目前版本27.0.5)并应用
This solution worked for me, hope this can help
这个解决方案对我起了作用,希望这能有所帮助
#2
6
I tried all of the aforementioned and it didn't help. What helped was disabling Instant Run in Settings -> Build, Execution, Deployment -> Instant Run.
我尝试了上面提到的所有方法,但都没有用。在设置中禁用即时运行——>构建、执行、部署——>即时运行。
Relevant issue in AOSP bugtracker: https://code.google.com/p/android/issues/detail?id=235879
AOSP bugtracker中的相关问题:https://code.google.com/p/android/issues/detail?id=235879
#3
1
Updating the Java SDK solved the problem for me.
更新Java SDK为我解决了这个问题。
#4
0
you need to download the Android Emulator for Android Version 2.3 or make sure when you updated your AS from 2.2 to 2.3 all these components got updated and installed. I had the same problem and i just downloaded the Android emulator and it worked fine for me.
你需要下载Android版本2.3的Android仿真器,或者确保从2.2更新到2.3时,所有这些组件都得到了更新和安装。我遇到了同样的问题,我下载了Android模拟器,它对我来说很好用。
#5
0
had the same problem, after two days of trying to solve this, i decided to uninstall android studio, and then install the new virsion 2.3 all over again, now Emulator working just fine! *not much of programming, but it did the job!
遇到了同样的问题,经过两天的尝试,我决定卸载android studio,然后重新安装新的virsion 2.3,现在模拟器运行良好!*不怎么编程,但它确实做到了!
#6
0
Don't worry about updating anything. For some reason upgrading to 2.3 makes the default setting for running your app set to "androidDependencies" which does nothing except give you strange errors. Just go to Run -> Edit Configurations and in the window that pops up try to delete with the minus symbol the selection on the left pane with the task called android dependencies. Then click on "app" under the "Android App" expandable arrow at the top. (see the pic) edit configuration window
不要担心更新任何东西。出于某种原因,升级到2.3将运行应用程序的默认设置设置为“androidDependencies”,它只会产生奇怪的错误。只需运行—>编辑配置,在弹出的窗口中,尝试用负号删除左边窗格中的选择,任务名为android dependencies。然后点击“app”在“Android app”顶部可展开的箭头下。(见图)编辑配置窗口
#7
0
I recently download Android Studio 2.3 and installed default components and some Android OS for emulator. When I use an emulator (version 26.0.0) I have problem with its sound and image (display is very poor).
我最近下载了Android Studio 2.3,安装了默认组件和一些Android OS模拟器。当我使用模拟器(26.0.0版本)时,我对它的声音和图像有问题(显示很差)。
I'm using Ubuntu 16.04.2, Kernel 4.8 and KVM is setup. It's an example of my problem:
我正在使用Ubuntu 16.04.2,内核4.8和KVM是设置好的。这是我问题的一个例子:
#8
0
I think you've not enabled the developer settings in your emulator. Sometimes after update the emulator is reset and all the settings are lost. Enabling it, should solve the problem.
我认为您还没有在模拟器中启用开发人员设置。有时更新后,模拟器会重置,所有的设置都会丢失。启用它应该能解决问题。
#1
7
If you haven't already done it:
如果你还没有做过
Open Tools -> Android -> SDK Manager
Select tab SDK Tools, flag Android Emulator (version 27.0.5 at the moment) and Apply
打开工具-> Android -> SDK管理器选择tab SDK工具,标记Android模拟器(目前版本27.0.5)并应用
This solution worked for me, hope this can help
这个解决方案对我起了作用,希望这能有所帮助
#2
6
I tried all of the aforementioned and it didn't help. What helped was disabling Instant Run in Settings -> Build, Execution, Deployment -> Instant Run.
我尝试了上面提到的所有方法,但都没有用。在设置中禁用即时运行——>构建、执行、部署——>即时运行。
Relevant issue in AOSP bugtracker: https://code.google.com/p/android/issues/detail?id=235879
AOSP bugtracker中的相关问题:https://code.google.com/p/android/issues/detail?id=235879
#3
1
Updating the Java SDK solved the problem for me.
更新Java SDK为我解决了这个问题。
#4
0
you need to download the Android Emulator for Android Version 2.3 or make sure when you updated your AS from 2.2 to 2.3 all these components got updated and installed. I had the same problem and i just downloaded the Android emulator and it worked fine for me.
你需要下载Android版本2.3的Android仿真器,或者确保从2.2更新到2.3时,所有这些组件都得到了更新和安装。我遇到了同样的问题,我下载了Android模拟器,它对我来说很好用。
#5
0
had the same problem, after two days of trying to solve this, i decided to uninstall android studio, and then install the new virsion 2.3 all over again, now Emulator working just fine! *not much of programming, but it did the job!
遇到了同样的问题,经过两天的尝试,我决定卸载android studio,然后重新安装新的virsion 2.3,现在模拟器运行良好!*不怎么编程,但它确实做到了!
#6
0
Don't worry about updating anything. For some reason upgrading to 2.3 makes the default setting for running your app set to "androidDependencies" which does nothing except give you strange errors. Just go to Run -> Edit Configurations and in the window that pops up try to delete with the minus symbol the selection on the left pane with the task called android dependencies. Then click on "app" under the "Android App" expandable arrow at the top. (see the pic) edit configuration window
不要担心更新任何东西。出于某种原因,升级到2.3将运行应用程序的默认设置设置为“androidDependencies”,它只会产生奇怪的错误。只需运行—>编辑配置,在弹出的窗口中,尝试用负号删除左边窗格中的选择,任务名为android dependencies。然后点击“app”在“Android app”顶部可展开的箭头下。(见图)编辑配置窗口
#7
0
I recently download Android Studio 2.3 and installed default components and some Android OS for emulator. When I use an emulator (version 26.0.0) I have problem with its sound and image (display is very poor).
我最近下载了Android Studio 2.3,安装了默认组件和一些Android OS模拟器。当我使用模拟器(26.0.0版本)时,我对它的声音和图像有问题(显示很差)。
I'm using Ubuntu 16.04.2, Kernel 4.8 and KVM is setup. It's an example of my problem:
我正在使用Ubuntu 16.04.2,内核4.8和KVM是设置好的。这是我问题的一个例子:
#8
0
I think you've not enabled the developer settings in your emulator. Sometimes after update the emulator is reset and all the settings are lost. Enabling it, should solve the problem.
我认为您还没有在模拟器中启用开发人员设置。有时更新后,模拟器会重置,所有的设置都会丢失。启用它应该能解决问题。