I'm using Linux Pop!OS 19.04 and have tried installing the Android Emulator. It does start but it closes within about 30seconds every time.
I have Java 8 installed through 'OpenJDK-8-JDK' and I can successfully build Android packages and side load them onto my phone without a problem.
After installing the Android SDK into the /usr/local/android here is what I did;
-
Change into the tools bin dir
: cd /usr/local/android/sdk/tools/bin : sudo chmod +x
-
Install system images (must be done as root)
: sudo ./sdkmanager "system-images;android-25;google_apis;x86" : sudo ./sdkmanager --licenses Say 'y' to all : sudo touch ~/.android/repositories.cfg
-
List available Android Virtual Devices to install (done as user)
: ./avdmanager list
-
Create a test Android Virtual Device (AVD)
: ./avdmanager create avd -n test -k "system-images;android-25;google_apis;x86" custom hardware profile: no
-
List AVDs
Now I get the following when I list through avdmanager
: ./avdmanager list avd : Available Android Virtual Devices: : Name: test : Path: /root/.android/avd/test.avd : Target: Google APIs (Google Inc.) : Based on: Android 7.1.1 (Nougat) Tag/ABI: google_apis/x86
-
Start emulator
: cd /usr/local/android/sdk/emulator : ./emulator -avd test
It then loads the emulator and I can start applications and browse around until it just crashes/closes the program.
I tried installing Android studio and setting up the AVD through there, same thing happened. I've tried different models and android versions for my AVD, same thing.
from Android emulator closes after
No comments:
Post a Comment