简体   繁体   中英

Can't get AVD working with Android Studio

I used to use the emulator frequently when I used Eclipse with little problems. Now that I have been using Android Studio for about eight months I just now have need to use the emulator again for the first time with AS.

I can't get it to do anything. It just sits there and does nothing. The same project runs just fine on both of my test phones (LG G4, Samsung Galaxy S3). The emulator displays, black screen with the word "android" showing. it will sit there like that all day and do nothing. I built two other AVDs - same thing.

The monitor window in AS shows the following...

C:\\Users\\Gary\\AppData\\Local\\Android\\sdk\\tools\\emulator.exe -scale 0.25 -netdelay none -netspeed full -avd LG_G4_API_22 emulator: WARNING: Requested RAM size of 2048MB is too large for your environment, and is reduced to 1536MB. emulator: device fd:944 HAXM is working and emulator runs in fast virt mode creating window 0 0 360 640 emulator: UpdateChecker: skipped version check

My AVD specs are as follows... 这里

my build.gradle is as follows... apply plugin: 'com.android.application'

android { compileSdkVersion 15 buildToolsVersion "22.0.1"

defaultConfig {
    applicationId "com.deanblakely.findmykids"
    minSdkVersion 15
    targetSdkVersion 22
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
}

}

dependencies { compile project(':library') compile project(':googleplayservices_lib') compile files('libs/gson-2.2.4.jar') compile 'com.android.support:support-v4:+' } Hope someone has a clue as to what's going on. Thanks, Dean

验证您的SDK是否已安装或更新了Intel x86 Emulator Accelerator(HAXM),这可以带来真正的改变,还请记住,AVD创建的是模拟器而不是模拟器,因此它是在模拟真实设备,因此取决于您的PC处理器和RAM内存会影响在性能方面,Genymotion是一个不错的选择,因为它可以与Virtual Box一起使用

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM