Android Studio 2.3 更新后,Android 应用程序未在模拟器中加载 [英] Android App not loading in Emulator after Android Studio 2.3 Update

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

问题描述

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

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

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 无法绑定到本地 86xx 以进行调试,同时打开了 Android 设备监视器.从那时起,随着 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 应用程序未在模拟器中加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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