Android emulator not working?

I mainly develop for the iPhone and started just recently with Android.

I tried the world hello, but when you press start, the emulator just shows a black screen with a blue Android logo.

package com.hyper.tuti; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class TutiActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // setContentView(R.layout.main); TextView tv = new TextView(this); tv.setText("Hello, Android"); setContentView(tv); } } 

Why is my simulator not working?

+6
source share
3 answers

Yes, I had an emulator boot time of 5-10 minutes.

Tip

When you edit your AVD, it is possible to take a snapshot . This happens when you close the AVD, it takes a picture and opens it next time, bypassing the download.

Edit 1/9/2014

I recently returned to Android development, and now I'm using Genymotion to run my emulators. It is based on VirtualBox - it works incredibly fast. I have not tried using the Android emulator for many years, so I can’t say faster or faster. I know that my emulators start almost instantly now and are not slow and do not work as before.

+14
source

give it time ... WHILE is loading to load! (Seriously)

+2
source

Haha, I had the same problem as the first time I used the emulator. But yes, it just takes a long time to download it, especially if you download it for Android 3.0+ Honeycomb (platform 11+), which is essentially a tablet platform.

Use Android 2.3 Gingerbread or Android 2.2 Froyo if you want your emulator to look like an Android phone.

Configure AVD settings to use the platform version 10 or 8.

+1
source

Source: https://habr.com/ru/post/898389/


All Articles