【问题标题】:Why is running android app so slow on windows 7, pentium n3540?为什么在 Windows 7 奔腾 n3540 上运行 android 应用程序这么慢?
【发布时间】:2017-07-17 22:30:40
【问题描述】:

我安装了 android studio 2.2 并创建了模拟器 nexus 4。

我的模拟器的详细信息是:

Name: Nexus_4_API_23

CPU/ABI: Google APIs Intel Atom (x86_64)

Path: D:\Programs\Android\.android\avd\Nexus_4_API_23.avd

Target: google_apis [Google APIs] (API level 23)

Skin: nexus_4

SD Card: D:\Programs\Android\.android\avd\Nexus_4_API_23.avd\sdcard.img

hw.dPad: no

runtime.network.speed: full

hw.accelerometer: yes

hw.device.name: Nexus 4

vm.heapSize: 64

skin.dynamic: yes

hw.device.manufacturer: Google

hw.gps: yes

hw.initialOrientation: Portrait

image.androidVersion.api: 23

hw.audioInput: yes

image.sysdir.1: system-images\android-23\google_apis\x86_64\

tag.id: google_apis

showDeviceFrame: yes

hw.camera.back: emulated

hw.mainKeys: no

AvdId: Nexus_4_API_23

hw.camera.front: emulated

hw.lcd.density: 320

avd.ini.displayname: Nexus 4 API 23

hw.gpu.mode: auto

hw.device.hash2: MD5:6930e145748b87e87d3f40cabd140a41

hw.ramSize: 512

hw.trackBall: no

hw.battery: yes

hw.cpu.ncore: 2

hw.sdCard: yes

tag.display: Google APIs

runtime.network.latency: none

hw.keyboard: yes

hw.sensors.proximity: yes

disk.dataPartition.size: 800M

hw.sensors.orientation: yes

avd.ini.encoding: UTF-8

hw.gpu.enabled: yes

当我运行简单的应用程序时,它会进行 gradle 重建并在模拟器上启动它。即使在模拟器开启的情况下,每次运行它也需要将近 2 分钟。

在控制台中,运行以以下消息结束:

D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
I/OpenGLRenderer: Initialized EGL, version 1.4
D/gralloc_ranchu: Emulator without host-side GPU emulation detected.

Haxm 已安装并正在运行。英特尔虚拟化技术已在 bios 中启用。

我的模拟器选项有什么问题? 为什么我的 android studio 这么慢?

【问题讨论】:

    标签: performance android-studio android-emulator


    【解决方案1】:

    解决了。在 android studio 中转到Tools>Android>AVD Manager

    点击你的虚拟设备的edit按钮

    接下来找到Graphics选项并选择Hardware - GLES 2.0

    现在在模拟器打开时运行应用程序非常快。

    并且在控制台中没有消息:Emulator without host-side GPU emulation detected.

    我找到的最好的 android 教程位于 https://www.udacity.com/course/new-android-fundamentals--ud851 https://www.udacity.com/courses/android有更多免费的安卓教程

    【讨论】:

      【解决方案2】:

      关于最佳性能的两条建议:

      1. 安装英特尔 HAXM:

        https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager

      2. 启用主机 GPU:

      【讨论】:

      • 谢谢,但 Haxm 已安装并正常工作,android studio 中没有仿真选项,只有仿真性能。我尝试了自动和软件图形,但它们没有任何意义
      猜你喜欢
      • 2013-07-26
      • 1970-01-01
      • 2023-03-22
      • 2010-10-29
      • 2010-11-12
      • 2011-12-06
      • 1970-01-01
      • 2012-01-28
      • 2016-04-19
      相关资源
      最近更新 更多