我安装了android studio 2.2并创建了模拟器nexus4。
我的模拟器的详细信息如下:
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这么慢?
发布于 2017-02-27 19:40:44
解决了它。在android studio中,转到Tools>Android>AVD Manager。
单击您的虚拟设备的edit按钮
下一步,选择find Graphics选项并选择Hardware - GLES 2.0。
现在,在模拟器打开的情况下运行app是非常快的。
在控制台中没有消息:Emulator without host-side GPU emulation detected.
我找到的最好的安卓教程在https://www.udacity.com/course/new-android-fundamentals--ud851,在https://www.udacity.com/courses/android上有更多免费的安卓教程
发布于 2017-02-27 18:50:02
关于最佳性能的两个建议:
https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager

https://stackoverflow.com/questions/42483575
复制相似问题