# The GT-P5100 impediment

**URL:** <https://discourse.processing.org/t/the-gt-p5100-impediment/6398>\
**Category:** Processing for Android\
**Created:** [December 7, 2018, 4:16pm UTC](https://discourse.processing.org/t/the-gt-p5100-impediment/6398 "2018-12-07T16:16:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![samolet4e](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@samolet4e](https://discourse.processing.org/u/samolet4e)\
**Post date:** [December 7, 2018, 4:16pm UTC](https://discourse.processing.org/t/the-gt-p5100-impediment/6398/1 "2018-12-07T16:16:19Z")

</div>

Hello! I am trying to build the simple sketch available in tutorial page:

[https://android.processing.org/tutorials/getting\_started/index.html](https://android.processing.org/tutorials/getting_started/index.html)

on my Samsung GT-P5100 Galaxy TAB 2, Android version 4.0.4. The Processing version is 3.4.  
Instead of relishing my personal moment of glory by watching application on the screen, I have got following response:

(on the red ribbon)  
Lost connection with device while installing. Try again.  
(in the console)  
BUILD SUCCESSFUL in 1m 46s  
28 actionable tasks: 28 executed  
Failure [INSTALL\_FAILED\_OLDER\_SDK]  
Shutting down any existing adb server… Done.

I have modified a line in the AndroidManifest.xml file as follows:

The error however persists.  
Frankly, I am running out of ideas. Can you help me? Thanks in advance.

---

<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:** [December 7, 2018, 5:14pm UTC](https://discourse.processing.org/t/the-gt-p5100-impediment/6398/2 "2018-12-07T17:14:32Z")

</div>

@samolet4e===  
your phone uses IceCream API 15: your error means it s supposed to be too old by P5.  
You said that you have modified the Manifest but you dont explain what you have done. Try to change the API minSdk to 15, but i am not sure that P5 will be ok though it s uses appcompat.

---

<div class="post-metadata">

**Author:** ![samolet4e](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@samolet4e](https://discourse.processing.org/u/samolet4e)\
**Post date:** [December 8, 2018, 11:22am UTC](https://discourse.processing.org/t/the-gt-p5100-impediment/6398/3 "2018-12-08T11:22:59Z")

</div>

Hello! Thanks for reply. I have changed the API version to android:minSdkVersion=“15” (file AndroidManifest.xml) in order to succeed in uploading my sketch to my old device. It is obvious, I think. This move did not resolve the issue, though. Nevertheless, I ran across a workaround here:

[![](https://img.youtube.com/vi/ELRxqLbiFZE/maxresdefault.jpg "How to open a Processing Sketch in Android Studio") ](https://www.youtube.com/watch?v=ELRxqLbiFZE)

It is also necessary to edit build.gradle in addition so as to change minSdkVersion accordingly.  
The problem however still persists. I can change the API version in Android Studio. I can not do so in Processing IDE.

Regards!

---

<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:** [December 8, 2018, 11:26am UTC](https://discourse.processing.org/t/the-gt-p5100-impediment/6398/4 "2018-12-08T11:26:08Z")

</div>

yes, i was afraid about that…Somewhere (in the P5 Manifest template i think) the minSDK is probably hardcoded…
