2017-02-27 99 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

相關問題