# Android Emulator Not Working

**URL:** <https://discourse.processing.org/t/android-emulator-not-working/38227>\
**Category:** Processing for Android\
**Created:** [August 4, 2022, 4:26pm UTC](https://discourse.processing.org/t/android-emulator-not-working/38227 "2022-08-04T16:26:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhsa](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jhsa](https://discourse.processing.org/u/jhsa)\
**Post date:** [August 4, 2022, 4:26pm UTC](https://discourse.processing.org/t/android-emulator-not-working/38227/1 "2022-08-04T16:26:10Z")

</div>

Hi, beginner here, please be gentle.  
I want to start playing with creating simple apps for android.  
Processing version is 4.0b8 on windows 10.  
Installed the SDK files , by downloading them automatically from Processing. android Mode seems to run. still didn’t try to connect a device though. I am trying to run the emulator, it downloads and installs the emulator files, but when I try to run a simple sketch it shows an error that says:

```auto
The default Android could not be set up. make sure that the android SDK is installed properly, and the system images are installed for level 30.
 (Between you and me, occasionally, this error is a red herring, and your sketch may be launching shortly.)

```

and here is the last part of the error:

```auto
BUILD SUCCESSFUL in 31s
27 actionable tasks: 27 executed
Loading local repository...                                                     
[=========] 25% Loading local repository...       
[=========] 25% Fetch remote repository...        
[=======================================] 100% Fetch remote repository...       
Auto-selecting single ABI armeabi-v7a
Error: "emulator" package must be installed!
null

```

It seems to say that the emulator didn’t install, but I did see the progress bar when the processing app was downloading it, and it created a “Temp” folder in the Documents/Android directory, which is where the SDK folder is. It disappeared after the download and installation finished.  
thank you in advance for your help.

---

<div class="post-metadata">

**Author:** ![noahbuddy](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@noahbuddy](https://discourse.processing.org/u/noahbuddy)\
**Post date:** [August 7, 2022, 6:37pm UTC](https://discourse.processing.org/t/android-emulator-not-working/38227/2 "2022-08-07T18:37:05Z")

</div>

I had the same issue in Linux.  
The fix for me was using the command from a [Stack-Exchange post](https://stackoverflow.com/questions/53167466/android-avd-emulator-package-must-be-installed)

The command I used (on Linux):  
“cd /home/me/sketchbook/android/sdk/cmdline-tools/latest/bin”  
“./sdkmanager --channel=3 emulator”

I expect the Windows equivalent would be:  
“c:\path\to\your\sketchbook\android\sdk\cmdline-tools\latest\bin\sdkmanager --channel=3 emulator”  
(do not include quotes)

Unfortunately, I do not have access to a Windows machine to try this on.

Restart Processing after running the command if you had not already closed it.

Edit: I also had to add Processing’s Java path before it would run. Not sure if that will be required on Windows. Your mileage may vary. Linux call with path: “JAVA\_HOME=/home/me/path/to/processing/java ./sdkmanager --channel=3 emulator”

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [August 7, 2022, 9:20pm UTC](https://discourse.processing.org/t/android-emulator-not-working/38227/3 "2022-08-07T21:20:41Z")

</div>

Hi  
You don’t have to install and use emulator your android device replace the emulator

Half hour or more to run simple sketch with emulator on my core I3 PC with 4GB RAM

Direct run on Android take less than 2 minutes

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [August 7, 2022, 9:31pm UTC](https://discourse.processing.org/t/android-emulator-not-working/38227/4 "2022-08-07T21:31:35Z")

</div>

On my Mac system, the emulator seems to be a little faster than running on the device. My only problem is that the emulator is a processing-phone and I’m not sure how to switch it to a tablet emulator.

---

<div class="post-metadata">

**Author:** ![jhsa](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jhsa](https://discourse.processing.org/u/jhsa)\
**Post date:** [August 8, 2022, 11:14am UTC](https://discourse.processing.org/t/android-emulator-not-working/38227/5 "2022-08-08T11:14:49Z")

</div>

Thanks guys, I didn’t reply earlier because I am full of work at the moment.  
I am using my device connected to Processing 4 to test the sketches. I guess you are right, this is much better than the emulator. I just have to remember uninstalling all sketches from my device when i am testing different examples 🙂

---

<div class="post-metadata">

**Author:** ![Rupesh\_Kumar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/rupesh_kumar/32/12638_2.png) [@Rupesh\_Kumar](https://discourse.processing.org/u/Rupesh_Kumar)\
**Post date:** [September 8, 2022, 2:48pm UTC](https://discourse.processing.org/t/android-emulator-not-working/38227/6 "2022-09-08T14:48:30Z")

</div>

The issues related to the emulator have been fixed in the release **4.5.0beta1** of the Processing for Android

---

<div class="post-metadata">

**Author:** ![jhsa](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jhsa](https://discourse.processing.org/u/jhsa)\
**Post date:** [September 8, 2022, 3:08pm UTC](https://discourse.processing.org/t/android-emulator-not-working/38227/7 "2022-09-08T15:08:28Z")

</div>

Thanks, will update as soon as possible.

---

<div class="post-metadata">

**Author:** ![Rupesh\_Kumar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/rupesh_kumar/32/12638_2.png) [@Rupesh\_Kumar](https://discourse.processing.org/u/Rupesh_Kumar)\
**Post date:** [September 8, 2022, 4:08pm UTC](https://discourse.processing.org/t/android-emulator-not-working/38227/8 "2022-09-08T16:08:56Z")

</div>

@svan I’m considering your comment as a suggestion, it seems a good idea to provide a custom emulator creator option in Android Mode. I’ll see if it can be feasible to provide such option.

Thanks,  
Rupesh

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [September 8, 2022, 6:38pm UTC](https://discourse.processing.org/t/android-emulator-not-working/38227/9 "2022-09-08T18:38:16Z")

</div>

Thank you. I did find a work around but without revisiting it, I can’t recall all the details. It involved replacing processing-phone with a larger skin some how. I don’t always trust the emulator behavior to be the same as the actual device.
