Android Studio正在运行的应用程序太慢 [英] Android Studio Running app is too slow

查看:339
本文介绍了Android Studio正在运行的应用程序太慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行我的应用程序时,大约需要10分钟才能在手机上显示.代码中的每个更改也需要10分钟.我该怎么办?我正在使用Android Studio 2.0.

When i run my app, it takes about 10 min to display on my phone. And every change in code also takes 10 min. What should I do? I am using Android Studio 2.0.

推荐答案

在android studio goto中

In android studio goto

  • 文件>设置>构建,执行,部署>构建工具> Gradle ,然后选中离线工作选项.
  • 文件>设置>构建,执行,部署>编译器,并选中所有四个复选框.
  • File > Settings > Build,Execution,Deployment > Build Tools > Gradle and check the Offline Work option.
  • File > Settings > Build,Execution,Deployment > Compiler and check all four checkboxes.

如果您使用的是android 2.0或更高版本,并且已启用即时运行".

If you are using android 2.0 or higher and if you have enabled Instant Run.

  • 文件>设置>构建,执行,部署>即时
    运行
    ,然后取消选中所有四个复选框. ** 有时启用即时运行"会导致应用在运行后启动速度过慢,出现白屏.禁用即时运行将解决此问题.

  • File > Settings > Build,Execution,Deployment > Instant
    Run
    and uncheck all four checkboxes. ** Sometimes enabling Instant run causes app to launch activity too slowly with white screen after running. Disabling instant run will remove the problem.

重新启动Android Studio

Restart Android studio

这篇关于Android Studio正在运行的应用程序太慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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