# Android emulator

**URL:** https://discourse.processing.org/t/android-emulator/29362
**Category:** Processing for Android
**Created:** [April 14, 2021, 8:30pm UTC](https://discourse.processing.org/t/android-emulator/29362 "2021-04-14T20:30:12Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Th3cG](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/th3cg/32/12780_2.png) [@Th3cG](https://discourse.processing.org/u/Th3cG)
#### Post date: [April 14, 2021, 8:30pm UTC](https://discourse.processing.org/t/android-emulator/29362/1 "2021-04-14T20:30:12Z")

</div>

Hello,  
I tried to Run in Emulator this super- simple code in Processing’s Android mode:

```auto
void setup() {
  size(640, 360);
  background(0);
}

void draw() {
  noStroke();
  fill(255);
  circle(width/2, height/2, 32);
}

```

Howewer, the console shows these two messages:

```auto
EmulatorController: Emulator is not available.
Error while starting the Emulator. (NOT_RUNNING)

```

I regularly installed Android Studio and its Emulators with all the possible SDKs I was able to think to, without success. I also noted that while installing the Android mode on Processing i was not asked to download the system image needed by the emulator to work as written in [Processing for Android](https://android.processing.org/tutorials/getting_started/index.html).

I also googled the error messages but found nothing interesting - can you please point me to any procedure that could help?

---

<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: [April 14, 2021, 10:11pm UTC](https://discourse.processing.org/t/android-emulator/29362/2 "2021-04-14T22:11:33Z")

</div>

read this

> [@List of flaws with android mode build process and how to resolve them](https://discourse.processing.org/t/list-of-flaws-with-android-mode-build-process-and-how-to-resolve-them/27947/9):
>
> @paulgoux hi activate android mode with out android studio download it extract it in any path C or D etc… run processing android mode chose where your path that extracted sdk folder then its done

---

<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: [April 14, 2021, 10:12pm UTC](https://discourse.processing.org/t/android-emulator/29362/3 "2021-04-14T22:12:30Z")

</div>

and this

> [@Setting up Android Mode in Processing](https://discourse.processing.org/t/setting-up-android-mode-in-processing/27462/13):
>
> i used just the folder without any thing from android studio maybe from your many trying you made conflicts cussed not finding the path first time i tried more than 14 days at last i install the folder on other pc that i have not run any sdk stuff or processing before it works fast without any issue then i re-installed windows on the pc that i tried also worked fine without any wrongs do not add any text just chose the path

---

<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: [April 14, 2021, 10:17pm UTC](https://discourse.processing.org/t/android-emulator/29362/4 "2021-04-14T22:17:38Z")

</div>

you can use your android it self as emulator with out the

Android Studio emulator and with out installing Android Studio

if you want to run Android Studio then enable the emulator for processing android mode you have to setup HAXM first and it is too slow when you emulate sketch

avoid Android Studio install the sdk direct you got faster results

---

<div class="post-metadata">

### Author: ![Th3cG](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/th3cg/32/12780_2.png) [@Th3cG](https://discourse.processing.org/u/Th3cG)
#### Post date: [April 18, 2021, 8:24am UTC](https://discourse.processing.org/t/android-emulator/29362/5 "2021-04-18T08:24:35Z")

</div>

Hello jafal,  
unfortunately I was not able to make your stuff run.  
Would you be so kind to post a step-by-step guide?  
Thank you.

---

<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: [April 18, 2021, 8:43am UTC](https://discourse.processing.org/t/android-emulator/29362/6 "2021-04-18T08:43:46Z")

</div>

@[Th3cG](https://discourse.processing.org/u/Th3cG)

hi  
1 / uninstall every thing clean your temp folder  
i mean remove processing from your pc

2/ make restart to your pc before the new installation  
install processing once again

3/ download this file

> **[android.zip](https://drive.google.com/file/d/1JIMtod4Qxo8_ciJmZyfPKydyu0Xd6kDa/view)**
>
> Google Drive file.

4/ unzipped it to any path and folder lets say :

D:\android\android\sdk

then select this path when you start processing android mode  
D:\android\android\sdk when processing ask for sdk destination  
that is all

---

<div class="post-metadata">

### Author: ![Th3cG](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/th3cg/32/12780_2.png) [@Th3cG](https://discourse.processing.org/u/Th3cG)
#### Post date: [April 18, 2021, 8:51am UTC](https://discourse.processing.org/t/android-emulator/29362/7 "2021-04-18T08:51:28Z")

</div>

Hi jafal,  
I’ll give it a try.  
What’s the difference between the file you point to and the Android SDK installed from Processing?

---

<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: [April 18, 2021, 8:56am UTC](https://discourse.processing.org/t/android-emulator/29362/8 "2021-04-18T08:56:40Z")

</div>

> [@Th3cG](#):
>
> What’s the difference between the file you point to and the Android SDK installed from Processing?

the difference is that the file i pointed to is that it has the correct version of sdk tools which works with Processing

---

<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: [April 18, 2021, 9:07am UTC](https://discourse.processing.org/t/android-emulator/29362/9 "2021-04-18T09:07:59Z")

</div>

@[Th3cG](https://discourse.processing.org/u/Th3cG)

Android Studio may not has the correct version then processing android mode wont work, but if you install sdk tools for Android Studio which is same version to the i file i told you about for sure it is going to work

even with out or with the Android Studio emulator

---

<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: [April 18, 2021, 11:19pm UTC](https://discourse.processing.org/t/android-emulator/29362/10 "2021-04-18T23:19:56Z")

</div>

[PR #639](https://github.com/processing/processing-android/pull/639) by @AdityaRana can resolve the issue.  
Probably, the issue will be fixed in the next release of the Processing for Android.

---

<div class="post-metadata">

### Author: ![Mattyjak](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mattyjak/32/16777_2.png) [@Mattyjak](https://discourse.processing.org/u/Mattyjak)
#### Post date: [May 15, 2021, 6:06am UTC](https://discourse.processing.org/t/android-emulator/29362/11 "2021-05-15T06:06:31Z")

</div>

I’m a little late to the party, but this doesn’t seem to work for me. Instead, I get an error:

```auto
The Android SDK could not be loaded.
The Android Mode will be disabled.

```

I reinstalled everything and parsed in my folder path at: `C:\Users\mattz\Documents\Processing\android\sdk`.  
Still no dice. If you have any other solutions please give me them!  
-Matty

---

<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: [May 15, 2021, 6:15am UTC](https://discourse.processing.org/t/android-emulator/29362/12 "2021-05-15T06:15:49Z")

</div>

@Mattyjak check if this versions match your folder

`C:\Users\mattz\Documents\Processing\android\sdk`

 ![Untitled 180](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/b1a6e839f1553b361a9bbb76c2059940db61985c.jpeg)  
.  
here is my folder location  
D:\android\android\sdk

---

<div class="post-metadata">

### Author: ![Mattyjak](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mattyjak/32/16777_2.png) [@Mattyjak](https://discourse.processing.org/u/Mattyjak)
#### Post date: [May 15, 2021, 6:20am UTC](https://discourse.processing.org/t/android-emulator/29362/13 "2021-05-15T06:20:54Z")

</div>

The thing is processing will not even ‘boot’ off of the SDK file path I give it.  
I’m using the .zip file you provided but I’m not sure if that’s really the issue.

---

<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: [May 15, 2021, 6:24am UTC](https://discourse.processing.org/t/android-emulator/29362/14 "2021-05-15T06:24:22Z")

</div>

@Mattyjak  
i am using the same file it is working try to move the folder to D drive i am using win7 64 bit

---

<div class="post-metadata">

### Author: ![Mattyjak](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mattyjak/32/16777_2.png) [@Mattyjak](https://discourse.processing.org/u/Mattyjak)
#### Post date: [May 15, 2021, 6:26am UTC](https://discourse.processing.org/t/android-emulator/29362/15 "2021-05-15T06:26:41Z")

</div>

Update:  
I realized processing was throwing another error:  
`Processing found an Android SDK, but is not valid. It could be missing some files, or might not be including the required platform for API 29. If a valid SDK is available in a different location, click "Locate SDK path" to select it, or "Download SDK" to let Processing download the SDK automatically.`  
It could be that I either downloaded the wrong file or it lost certain files due to the unzipping process. I’m not too sure, but I’ll still try to move it to the D drive.

> **Summary**
>
> I’m also using win10 64bit

---

<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: [May 15, 2021, 6:32am UTC](https://discourse.processing.org/t/android-emulator/29362/16 "2021-05-15T06:32:39Z")

</div>

> [@Mattyjak](#):
>
> It could be that I either downloaded the wrong file or it lost certain files due to the unzipping process. I’m not too sure, but I’ll still try to move it to the D drive.
> 
> Summary

re-download the file once again and disable the antivirus application while downloading and while unzip

---

<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: [May 17, 2021, 1:10am UTC](https://discourse.processing.org/t/android-emulator/29362/17 "2021-05-17T01:10:50Z")

</div>

@Th3cG

Have you been able to get your Processing emulator to work? Using a Mac I got the same error message that you posted but now have the emulator working and have successfully run your demo code. The first step was to be certain that the emulator is listed in Android Studio at the top of the IDE under the Devices menu. If the emulator that you want to use is not listed then use AndroidStudio/Tools/AVD Manager to create the corresponding Virtual Device. Then I went into AndroidStudio/Tools/SDK Manager/SDK Tools and made certain that the latest update for the Android Emulator was installed (30.6.5). Click on the minus sign at the left to change it to a check mark to install it. You may have to reinstall Processing/Tools/Add Tool/Modes/Android Mode after updating. From there it worked as expected. There are also Terminal commands that you can use to run the emulator, but that is more complicated and I won’t list it here unless you want to try it.

---

<div class="post-metadata">

### Author: ![Th3cG](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/th3cg/32/12780_2.png) [@Th3cG](https://discourse.processing.org/u/Th3cG)
#### Post date: [May 17, 2021, 10:34am UTC](https://discourse.processing.org/t/android-emulator/29362/18 "2021-05-17T10:34:33Z")

</div>

Hi @svan,  
unfortunately Android Studio is stuck on “Loading Devices…”  
I’m using 4.2 version

---

<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: [May 17, 2021, 12:13pm UTC](https://discourse.processing.org/t/android-emulator/29362/19 "2021-05-17T12:13:18Z")

</div>

> unfortunately Android Studio is stuck on “Loading Devices…”

Go to Tools/AVD Manager and see if you have any Virtual Devices listed there. You should have at least one called ‘processing-phone’.

---

<div class="post-metadata">

### Author: ![Th3cG](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/th3cg/32/12780_2.png) [@Th3cG](https://discourse.processing.org/u/Th3cG)
#### Post date: [May 17, 2021, 5:39pm UTC](https://discourse.processing.org/t/android-emulator/29362/20 "2021-05-17T17:39:49Z")

</div>

![Schermata 2021-05-17 alle 19.29.32](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/e/e89f567d73768a58beac927b0941655d69eefdd5.png)

Well, there isn’t.  
Seems strange, doesn’t it?

I was able to get to the AVD Manager but maybe I was on Windows or it was a previous version. I can’t find it anymore.

I also tried enabling “Launch in a tool window” in Android Studio \> Preferences \> Emulator with no success

[Next page](https://discourse.processing.org/t/android-emulator/29362.md?page=2)
