2017-02-27 98 views
0

我安装的Android 2.2的工作室,创造仿真的Nexus 4为什么在windows 7,pentium n3540上运行android应用程序太慢?

我的仿真器的细节是:

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很慢?

回答

1

解决了它。在android工作室去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 还有更多免费的Android的教程在https://www.udacity.com/courses/android

相关问题