Min Duck Nguxyn
Min Duck Nguxyn

Reputation: 1

Error: Android studio emulator has a black screen when starting up

enter image description here I have tried everything like using cold boot, wiping data but it still shows a black screen.

I want to run the emulator successfully

Upvotes: 0

Views: 366

Answers (4)

Ankit Kumar Sen
Ankit Kumar Sen

Reputation: 26

Just created the AVD with 768 MB RAM and it did run fine!

Enable checkbox "Enable device frame" in avd config.

Go to Android Studio -> Preferences -> Tools -> Emulator -> Uncheck “Launch in a tool window

you can try these above.It will might work

Upvotes: 0

Brendan
Brendan

Reputation: 36

try to press the power on button

enter image description here

Upvotes: 0

Ankit Kumar Sen
Ankit Kumar Sen

Reputation: 26

apply plugin: 'com.android.application'

android {
compileSdkVersion 32
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.android.miwok"
minSdkVersion 15
targetSdkVersion 32
versionCode 1
versionName "1.0"
}
buildTypes {
release {
    minifyEnabled false
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:support-v4:23.3.0'
compile 'com.android.support:design:23.3.0'
}

Like This Try

Upvotes: 0

Ankit Kumar Sen
Ankit Kumar Sen

Reputation: 26

Just remove all warning by changing/updating all version(compile/build etc) in build.gradle to make everything same(pointing to same version). Or just simply update everything to latest version. Mouse-Hover over the things will show you the latest version recommended.

Make sure your your app->bulid.gradle file have same verison with compileSdkVersion, buildToolsVersion, targetSdkVersion and support libraries notice the support libraries verison which in this example 32. If I have 32.0.2 buildToolsVersion I will change my support libraries version 32 too.

Upvotes: 0

Related Questions