# Cant locate SDK in android mode

**URL:** https://discourse.processing.org/t/cant-locate-sdk-in-android-mode/20152
**Category:** Processing for Android
**Created:** [April 25, 2020, 10:37pm UTC](https://discourse.processing.org/t/cant-locate-sdk-in-android-mode/20152 "2020-04-25T22:37:56Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Java.SourceForger](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/java.sourceforger/32/9831_2.png) [@Java.SourceForger](https://discourse.processing.org/u/Java.SourceForger)
#### Post date: [April 25, 2020, 10:37pm UTC](https://discourse.processing.org/t/cant-locate-sdk-in-android-mode/20152/1 "2020-04-25T22:37:56Z")

</div>

I have installed android mode for processing, but i just cant get past the “Locate SDK” dialog:

![Annotation 2020-04-25 163457](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/9/9ceed5981fc2675e66739450a14b75669955cbab.png)

I have followed processsing’s tutorial on this,  
installed the android studio, android command line tools,  
Done research on this and other sites and nothing has worked.  
Need help. Thanks.

---

<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 25, 2020, 10:42pm UTC](https://discourse.processing.org/t/cant-locate-sdk-in-android-mode/20152/2 "2020-04-25T22:42:59Z")

</div>

Have you read [this](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716) topic?

---

<div class="post-metadata">

### Author: ![Java.SourceForger](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/java.sourceforger/32/9831_2.png) [@Java.SourceForger](https://discourse.processing.org/u/Java.SourceForger)
#### Post date: [May 1, 2020, 11:49pm UTC](https://discourse.processing.org/t/cant-locate-sdk-in-android-mode/20152/3 "2020-05-01T23:49:54Z")

</div>

Ok:

1. So I tried that article as well as this article: [form.processing.org](https://forum.processing.org/two/discussion/12665/android-sdk-could-not-be-loaded)
2. Added the file source and version to the preferences.txt file  
(pretty sure the SDK version I downloaded was 28 but not 100% sure)
3. Looked in the device list and my Kindle Fire was on it! 😁

More problems though:  
I tried to “run on device”…  
initialization and build worked fine (that i am aware of), but when it actually tried to run the sketch on the device it failed:

 ![android error](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/2/21fcb436b76a0ea59052535ce469ffab37f4c34b.jpeg)

Not sure exactly what the problem is but seems to have something to to with debug, and possibly device communication?

---

<div class="post-metadata">

### Author: ![Java.SourceForger](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/java.sourceforger/32/9831_2.png) [@Java.SourceForger](https://discourse.processing.org/u/Java.SourceForger)
#### Post date: [May 2, 2020, 12:05am UTC](https://discourse.processing.org/t/cant-locate-sdk-in-android-mode/20152/4 "2020-05-02T00:05:39Z")

</div>

Similar Issue with trying to run sketch on emulator:

 ![emulator-not-working](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/bfc35e876801ee84396444d5d4e347960b180cc9.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: [May 2, 2020, 12:45am UTC](https://discourse.processing.org/t/cant-locate-sdk-in-android-mode/20152/5 "2020-05-02T00:45:14Z")

</div>

On the second one, I see that you are running the sketch on the emulator(that never booted).  
Is that correct? I was never able to run the emulator on my PC.  
I only manage to run with a USB cable, and only with the correct driver for the device.

---

<div class="post-metadata">

### Author: ![Java.SourceForger](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/java.sourceforger/32/9831_2.png) [@Java.SourceForger](https://discourse.processing.org/u/Java.SourceForger)
#### Post date: [May 2, 2020, 2:05am UTC](https://discourse.processing.org/t/cant-locate-sdk-in-android-mode/20152/6 "2020-05-02T02:05:37Z")

</div>

> [@noel](#):
>
> I see that you are running the sketch on the emulator(that never booted).

OK. 🙂 So what do you mean by “boot”?

---

<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: [May 2, 2020, 6:07am UTC](https://discourse.processing.org/t/cant-locate-sdk-in-android-mode/20152/7 "2020-05-02T06:07:48Z")

</div>

> [@Java.SourceForger](#):
>
> So what do you mean by “boot”?

Like booting the PC, making it available to perform any computing operation.  
That what’s said (in red) in the console. Have you tried using USB?  
As a matter of fact, I only use APDE on my tablet. It compiles as fast as P5.java

---

<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: [May 2, 2020, 8:26am UTC](https://discourse.processing.org/t/cant-locate-sdk-in-android-mode/20152/8 "2020-05-02T08:26:09Z")

</div>

@Java.SourceForger ===

- What OS is running your (real) device? ?
- Can you put your generated Manifest
- Verify what is the SDK version that you have installed  
This error means either that you are targetting (minSdkVersion) a version higher than you device one or are targetting (targetSdkVersion) higher than your installed SDK.

---

<div class="post-metadata">

### Author: ![Java.SourceForger](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/java.sourceforger/32/9831_2.png) [@Java.SourceForger](https://discourse.processing.org/u/Java.SourceForger)
#### Post date: [May 2, 2020, 4:13pm UTC](https://discourse.processing.org/t/cant-locate-sdk-in-android-mode/20152/9 "2020-05-02T16:13:09Z")

</div>

It’s a windows PC. And yes. It’s probably possible that I’m writing down an SDK version that’s higher than one I’ve installed.  
How do I know what sdk version I’ve installed?

---

<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: [May 2, 2020, 6:07pm UTC](https://discourse.processing.org/t/cant-locate-sdk-in-android-mode/20152/10 "2020-05-02T18:07:01Z")

</div>

@Java.SourceForger ===  
i was not talking about your laptop but your phone…  
put your Manifest.

---

<div class="post-metadata">

### Author: ![Java.SourceForger](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/java.sourceforger/32/9831_2.png) [@Java.SourceForger](https://discourse.processing.org/u/Java.SourceForger)
#### Post date: [May 2, 2020, 7:22pm UTC](https://discourse.processing.org/t/cant-locate-sdk-in-android-mode/20152/11 "2020-05-02T19:22:50Z")

</div>

Oh, OK. The android device that I have is a kindle fire.

---

<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: [May 2, 2020, 7:31pm UTC](https://discourse.processing.org/t/cant-locate-sdk-in-android-mode/20152/12 "2020-05-02T19:31:31Z")

</div>

He meant the generated AndroidManifest.xml  
See at the bottom of [this](https://github.com/processing/processing-android/wiki/Old-Wiki#AndroidManifestxml) file.  
Also you have do say what android version you are using on your real phone.  
Like Lollipop (API 21) or Marshmallow(API 23) etc
