# Android mode hangs on Android SDK notification

**URL:** <https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716>\
**Category:** Processing for Android\
**Created:** [March 16, 2020, 9:39pm UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716 "2020-03-16T21:39:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![UnaLuz](https://avatars.discourse-cdn.com/v4/letter/u/ecd19e/32.png) [@UnaLuz](https://discourse.processing.org/u/UnaLuz)\
**Post date:** [March 16, 2020, 9:39pm UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/1 "2020-03-16T21:39:38Z")

</div>

Well, I tried following the Get started tutorial on the Processing for Android page but after downloading the Android mode, I tried to switch to it and all I got was a “Cannot find an Android SDK…” message box with nothing on it

 ![Captura de pantalla de 2020-03-16 18-22-35](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/1/126a8fe5858248887755a6621a6dd44ec8244f13.png)

I can’t close it or open Processing again cause it’s actually still open.

[Post](https://discourse.processing.org/t/fixed-mysteriously-processing-ide-hangs-on-switching-to-android-mode/4761)

In that post they say that they had the same problem but they had to kill the process every time to make it work. I don’t know how to do that because I’m really new to programming and all this. Also I really don’t wanna do that every time I wanna use the Android mode

I’m using an Ubuntu 18.04.4 64bits OS. If there is more info that you need to help me please let me know

---

<div class="post-metadata">

**Author:** ![dinoelectro](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@dinoelectro](https://discourse.processing.org/u/dinoelectro)\
**Post date:** [April 4, 2020, 1:56pm UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/2 "2020-04-04T13:56:53Z")

</div>

![Captura](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/8/880b722b57ee49602ae2138c87f83b2d5b1be957.png)

I appreciate your help, now that you have just started programming for android.  
I ran into problems as android mode suddenly stops working  
I have tried to reinstall it in every possible way and I cannot  
windows 10 64 bits

I have tried dowload sdk manually, also automatically but it does not work

again download processing 3.5.4 but it doesn’t work either …

---

<div class="post-metadata">

**Author:** ![UnaLuz](https://avatars.discourse-cdn.com/v4/letter/u/ecd19e/32.png) [@UnaLuz](https://discourse.processing.org/u/UnaLuz)\
**Post date:** [April 4, 2020, 2:21pm UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/3 "2020-04-04T14:21:49Z")

</div>

Same here, I tried to download the sdk manually but I don’t know if I did it incorrectly or it just doesn’t find it.  
It just wouldn’t work so I had to give up on that, at least for now 😞  
Still, if there is someone that may know how to solve this, it’ll be really appreciated

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [April 4, 2020, 2:44pm UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/4 "2020-04-04T14:44:08Z")

</div>

Hi @dinoelectro @UnaLuz  
Could you check the location in the preference file?  
You can do so by clicking Open File \> preferences and then click on the link on the bottom preferences.txt. There you can see and also modify the path like “android.sdk.path=D:\android\sdk”

---

<div class="post-metadata">

**Author:** ![UnaLuz](https://avatars.discourse-cdn.com/v4/letter/u/ecd19e/32.png) [@UnaLuz](https://discourse.processing.org/u/UnaLuz)\
**Post date:** [April 4, 2020, 5:07pm UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/5 "2020-04-04T17:07:15Z")

</div>

Well…I just checked and I don’t have that line, should I just add it?

The only lines I have that say something about android are:

android.sdk.ar=1.12.0  
android.sdk.gvr=1.180.0  
android.sdk.play\_services=16.0.1  
android.sdk.support=28.0.0  
android.sdk.target=28  
android.adk.wear=2.4.0

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [April 4, 2020, 5:20pm UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/6 "2020-04-04T17:20:48Z")

</div>

Yes, it’s necessary. I think that’s why Processing can´t find it.

---

<div class="post-metadata">

**Author:** ![dinoelectro](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@dinoelectro](https://discourse.processing.org/u/dinoelectro)\
**Post date:** [April 4, 2020, 6:13pm UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/7 "2020-04-04T18:13:55Z")

</div>

in the preferences.txt file it does not indicate the path of the sdk.

Now it’s working, thanks Noel

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [April 4, 2020, 6:22pm UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/8 "2020-04-04T18:22:48Z")

</div>

I’m glad for you that it’s working.  
BTW. If you have time at some moment I would be grateful, if you could test some codes on GitHub [here](https://github.com/EmmanuelPil/Android-java-code-utilities-widgets-for-Processing-for-Android). It’s to verify if they work on other devices and Android versions as well.  
Just post an issue there if it’s working or not.

---

<div class="post-metadata">

**Author:** ![dinoelectro](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@dinoelectro](https://discourse.processing.org/u/dinoelectro)\
**Post date:** [April 4, 2020, 6:43pm UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/9 "2020-04-04T18:43:43Z")

</div>

ok I am going to review them … greetings

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [April 4, 2020, 6:53pm UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/10 "2020-04-04T18:53:42Z")

</div>

You do know that the fastest way to test them is with the app APDE?  
It compiles in seconds. But you have to use the “App mode” for some codes, depending on their ‘permissions’.

---

<div class="post-metadata">

**Author:** ![UnaLuz](https://avatars.discourse-cdn.com/v4/letter/u/ecd19e/32.png) [@UnaLuz](https://discourse.processing.org/u/UnaLuz)\
**Post date:** [April 4, 2020, 8:02pm UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/11 "2020-04-04T20:02:05Z")

</div>

Hi again, I tried it but it still doesn’t find the SDK, I’ll try to reinstall the SDK again but I don’t think that’ll do it

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [April 4, 2020, 8:07pm UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/12 "2020-04-04T20:07:52Z")

</div>

Sometimes it’s good to deinstall Processing as well by removing the whole directory in the program files directory and reinstall everything.

---

<div class="post-metadata">

**Author:** ![dinoelectro](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@dinoelectro](https://discourse.processing.org/u/dinoelectro)\
**Post date:** [April 4, 2020, 9:14pm UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/13 "2020-04-04T21:14:05Z")

</div>

hello i am testing the example codes, they all work fine in APDE except “flashlight” and “LED notification”

I found the example of “speech recogniton” very useful, I am just a beginner in programming Android devices but I am very excited about everything I have learned

I tell you again I have problems with the adroid mode this error appears in the console:

 ![erro](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/a4aa59f46966481fef8ebb037f6a892b9875031c.png)

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [April 4, 2020, 10:25pm UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/14 "2020-04-04T22:25:48Z")

</div>

A strange error. Verify the existence of the build-tools folder within the SDK folder. I uploaded this folder on Google Drive. If you want you can download it [here](https://drive.google.com/open?id=16Eq3XgFBvToklGqIWWHZTHvdU4w1iZaa). Just unzip it and place it in the SDK folder. Also, it says that the SDK folder has to be writable. Just right-click this folder choose properties and then disable “only read”.

---

<div class="post-metadata">

**Author:** ![aabueno](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/aabueno/32/8650_2.png) [@aabueno](https://discourse.processing.org/u/aabueno)\
**Post date:** [April 5, 2020, 1:42am UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/15 "2020-04-05T01:42:10Z")

</div>

I am having the same message here: “The Android SDK could not be loaded…”  
I am on Windows 10, Processing 3.5.3 and Android SDKs 29,28,27,26. I noticed on my preferences.txt it didn’t have the path, so I added it, but, when I open the IDE again, it seems to change the file deleting the path.  
I put the path as  
android.sdk.path=C:\Users\<username\>\AppData\Local\Android\Sdk\platforms\android-28

---

<div class="post-metadata">

**Author:** ![dinoelectro](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@dinoelectro](https://discourse.processing.org/u/dinoelectro)\
**Post date:** [April 5, 2020, 3:48am UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/16 "2020-04-05T03:48:28Z")

</div>

I already solved it, android mode, suddenly stopped working on my computer, the reason I do not know

the solution was as follows:

Install android studio, then with sdk manager update sdk tool,

in processing change the path of the sdk (C: \ Users \ PERSONAL \ AppData \ Local \ Android \ Sdk) and voila

 ![sdkupte](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/e/e6b30142fa6357fb99acd66b95139397eac8bca6.png)

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [April 5, 2020, 4:31am UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/17 "2020-04-05T04:31:40Z")

</div>

Hi @aabueno welcome to the forum.  
It seems that there is a problem with the proper SDK file.  
But as @dinoelectro said, that the SDK manager can be used to properly update the file; you don’t need to download the whole Android Studio packet. You can download the manager separately [here](https://developer.android.com/studio#downloads), almost on the bottom of the page under the title “Command line tools only”.

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [April 5, 2020, 4:40am UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/18 "2020-04-05T04:40:42Z")

</div>

> [@dinoelectro](#):
>
> except “flashlight” and “LED notification”

Thank you very much for testing. The Flashlight will be fixed. @akenaton already pointed out that it could not work for versions above Lollipop. What is the device and version you used to test?  
And what exactly went wrong with the Led notification?

---

<div class="post-metadata">

**Author:** ![dinoelectro](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@dinoelectro](https://discourse.processing.org/u/dinoelectro)\
**Post date:** [April 5, 2020, 1:38pm UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/19 "2020-04-05T13:38:57Z")

</div>

Hello, I am testing the example codes with HUAWEI Y9 with android Android version: 8.1 Oreo  
The code compiles and installs correctly, but immediately the app closes, despite having given it the necessary permissions

the warning message on the console says camera deprecated

---

<div class="post-metadata">

**Author:** ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)\
**Post date:** [April 5, 2020, 3:02pm UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716/20 "2020-04-05T15:02:33Z")

</div>

@dinoelectro ===  
how have you given the permissions???  
(camera deprecated is only a warning)

[Next page](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716.md?page=2)
