2016-09-30 196 views
3

因此,我打算在一段時間後重新開始編碼。我在我的新筆記本電腦上下載了Android Studio,並創建了Google地圖活動。無法啓動AVD仿真器

我對代碼做的唯一更改是插入我的api密鑰谷歌地圖。當我嘗試啓動我的應用程序在模擬器中,我收到這樣的:

Cannot launch AVD in emulator. 
Output: 
Creating filesystem with parameters: 
ERROR: resizing partition e2fsck failed with exit code 1 
    Size: 69206016 
    Block size: 4096 
    Blocks per group: 32768 
    Inodes per group: 4224 
    Inode size: 256 
    Journal blocks: 1024 
    Label: 
    Blocks: 16896 
    Block groups: 1 
    Reserved block group size: 7 
Created filesystem with 11/4224 inodes and 1302/16896 blocks 
Hax is enabled 
Hax ram_size 0x60000000 
HAX is working and emulator runs in fast virt mode. 
emulator: Listening for console connections on port: 5554 
emulator: Serial number of this emulator (for ADB): emulator-5554 
[3900]:WARNING:./android/base/files/IniFile.cpp:158:Failed to process .ini file C:\Users\Mike Jones\.android\emu-update-last-check.ini for reading. 
[17164]:WARNING:./android/base/files/IniFile.cpp:158:Failed to process .ini file C:\Users\Mike Jones\.android\emu-update-last-check.ini for reading. 

回答

-1

您在Android SDK中 如果不這樣做HAE英特爾x86仿真加速器(HAXM安裝程序),你玩{ANDROID_SDK_HOME} \演員\英特爾\ Hardware_Accelerated_Excecution_Manager \ intelhaxm-android.exe通過管理員的權限

0

我使用的是ubuntu 16 64位版本。在android-studio 2.2中,我設置了我的ANDROID_HOME路徑,沒有更多的錯誤。設置路徑是這樣的:

打開.bashrc文件

`sudo gedit ~/.bashrc` 

然後執行:

`export ANDROID_HOME=$HOME/Android/Sdk` 
`export PATH=$PATH:$ANDROID_HOME/tools` 
+0

這並不能解決問題被問的問題。如果未設置ANDROID_HOME,則無法編譯 –