# Android SDK not valid

**URL:** https://discourse.processing.org/t/android-sdk-not-valid/47964
**Category:** Processing for Android
**Created:** [February 24, 2026, 10:06pm UTC](https://discourse.processing.org/t/android-sdk-not-valid/47964 "2026-02-24T22:06:06Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![PLloyd](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@PLloyd](https://discourse.processing.org/u/PLloyd)
#### Post date: [February 24, 2026, 10:06pm UTC](https://discourse.processing.org/t/android-sdk-not-valid/47964/1 "2026-02-24T22:06:06Z")

</div>

When I switch from Java mode to Android mode a pop-up window appears stating that the Android SDK is not valid. Both automatic and manual loading methods fail.  
However the requested API (API 33) is installed as shown in the SDK manager (see below). The processing version is 4.5.2.  
Does anyone have an idea?

![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/4/f/4f86a5e8f43e9b301e12ca5bbf0a78fd69cc8e86.png)

---

<div class="post-metadata">

### Author: ![sableraph](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sableraph/32/251_2.png) [@sableraph](https://discourse.processing.org/u/sableraph)
#### Post date: [February 25, 2026, 8:03am UTC](https://discourse.processing.org/t/android-sdk-not-valid/47964/2 "2026-02-25T08:03:52Z")

</div>

Hi @PLloyd and welcome to the forum!

Could you share the exact wording of the “Android SDK is not valid” popup? A screenshot would be great too.

There’s a similar issue discussed here:

> [@Android Mode crashing on my Linux](https://discourse.processing.org/t/android-mode-crashing-on-my-linux/47953/):
>
> I get this “Nasty Error” dialog: Processing 4.5.2 Android Mode for Processing 4 v4.6.1 I tried to re-install everything, but it didn’t help. Any suggestions?

Could you take a look and let us know if your error matches that one? That’ll help figure out whether it’s the same problem or something different.

Also could you tell us what operating system you’re using? Windows, Linux, macOS?

---

<div class="post-metadata">

### Author: ![PLloyd](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@PLloyd](https://discourse.processing.org/u/PLloyd)
#### Post date: [February 25, 2026, 11:30am UTC](https://discourse.processing.org/t/android-sdk-not-valid/47964/3 "2026-02-25T11:30:58Z")

</div>

Hi, and thank you for your support.

I work on Windows 10

The pop-up window is this one:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/5/0/507111205f6d5791c0af0ca86b1940c5858d55eb.png)

Also, I don’t find the preference.txt file where I should find the andoid SDK path

---

<div class="post-metadata">

### Author: ![sableraph](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sableraph/32/251_2.png) [@sableraph](https://discourse.processing.org/u/sableraph)
#### Post date: [February 25, 2026, 12:52pm UTC](https://discourse.processing.org/t/android-sdk-not-valid/47964/4 "2026-02-25T12:52:44Z")

</div>

Thanks for the screenshot.

In Processing 4.5.2, experimental preferences can be edited directly from the Preferences window. No need to manually open `preferences.txt`.

Open **Processing → Settings… → Advanced** , and enable **Show experimental settings**.

Look for `ANDROID_SDK`, which shows the current Android SDK location. You can edit the path there if needed.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/2/a/2a5f02234d51552d810ba5316e022d90850654c6.jpeg)

However, under normal circumstances this should not be necessary and Processing should download and locate the correct SDK, so I’m not sure what is happening.

What is the value of ANDROID\_SDK for your system?

---

<div class="post-metadata">

### Author: ![Sal](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@Sal](https://discourse.processing.org/u/Sal)
#### Post date: [March 2, 2026, 12:54pm UTC](https://discourse.processing.org/t/android-sdk-not-valid/47964/5 "2026-03-02T12:54:31Z")

</div>

If I might add on to this, when I was working on the previous issue pertaining to the crash specific to the Linux platform.

I noticed that I had to reassign my path to android SDK every time I switched into android mode, it seems the path is never saved onto preferences even after the download.

I wonder if this behavior is reproducible.

---

<div class="post-metadata">

### Author: ![PLloyd](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@PLloyd](https://discourse.processing.org/u/PLloyd)
#### Post date: [April 4, 2026, 12:56pm UTC](https://discourse.processing.org/t/android-sdk-not-valid/47964/6 "2026-04-04T12:56:55Z")

</div>

In fact I suspect a problem due to a former installation of an old Processing 3 version that I don’t succeed to uninstall correctly. I succeed to install Processing 4 on a new PC using the procedure. Unfortunately I failed to build the sketch (see [Processing with Android, problems with Android compiling - #4 by PLloyd](https://discourse.processing.org/t/processing-with-android-problems-with-android-compiling/48290/4) ) 🤔
