Android Studio 2.3更新后,Android App无法在模拟器中加载 [英] Android App not loading in Emulator after Android Studio 2.3 Update

查看:169
本文介绍了Android Studio 2.3更新后,Android App无法在模拟器中加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将Android Studio版本上传到2.3,现在在模拟器中测试我的应用时遇到了问题.它是一个Nexus 5X模拟器,上面装有Android 7.0牛轧糖(API 24),带有ABI:armeabi-v7a(我有AMD处理器,因此,据我所知,我只能使用它).以前,它有点慢,有时会出现"Not Responding"错误,但是单击"Wait"总是可以解决问题的.

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更新后,当我按运行"时,它会打开&启动模拟器.但是,一旦启动,它就会卡在启动应用程序-安装APK"过程中.它可能表明在停止之前,它正在执行此操作约2分钟.然后显示启动即时运行服务"几秒钟.然后,绿色的运行"箭头再次变为活动状态,就像没有打开仿真器一样.模拟器已打开,但是没有应用程序.如果在模拟器已打开的情况下单击绿色的运行"箭头,则会执行gradle构建同步&.然后甚至都不会尝试启动应用程序/安装APK-即使什么都没发生,它只会说启动Instant Run Service"几秒钟.

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设备监视器的同时,Android Studio无法绑定到本地86xx以进行调试器.从那时起,在关闭ADM的情况下,我遇到了上述问题,并且错误日志中未显示任何错误消息.

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的最新版本,我只有一个弹出窗口要求安装. build.gradle中的构建工具版本也已从24.0.2更新到25.0.0.

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 -> SDK管理器
选择选项卡SDK Tools,标记Android Emulator(当前版本为27.0.5)并应用

Open Tools -> Android -> SDK Manager
Select tab SDK Tools, flag Android Emulator (version 27.0.5 at the moment) and Apply

此解决方案对我有用,希望能对您有所帮助

This solution worked for me, hope this can help

这篇关于Android Studio 2.3更新后,Android App无法在模拟器中加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆