# No serial library Processing for smartphone. Help

**URL:** <https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870>\
**Category:** Processing for Android\
**Created:** [May 5, 2021, 9:34am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870 "2021-05-05T09:34:04Z")\
**Posts on this page:** 1\
**Showing post:** 135

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [May 12, 2021, 9:08am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/135 "2021-05-12T09:08:14Z")

</div>

finally a full guide to install libraries on apde

> **[Installing Contributed Libraries](https://github.com/Calsign/APDE/wiki/Installing-Contributed-Libraries)**
>
> Source code for APDE: Create and run Processing sketches on an Android device. - Calsign/APDE

- Installation Steps
- If the library is in a ZIP or other type of compressed file, then extract it.
- Copy the extracted folder to the libraries folder in the Sketchbook folder and rename it to the desired name of the library., e.g. “path/to/Sketchbook/libraries/Ketai/”.
- Ensure that the library JAR file is located in the “library” folder in the library’s folder with the same name as the enclosing folder, e.g. “Ketai/library/Ketai.jar”. Copy any additional JAR files to this folder.
- Optionally, ensure that the library’s examples are located in the “examples” folder in the library’s folder, e.g. “Ketai/examples/”.
- Optionally, ensure that the “library.properties” file is located at the root of the library’s folder, e.g. “Ketai/library.properties”.
- Create a new folder at the same level as the “library” folder with the name “library-dex”, e.g. “Ketai/library-dex/”.
- Open APDE and navigate to (action overflow) \> Tools \> Import Library \> Manage Libraries \> (action overflow) \> DX Dexer. Note: The library should already appear in the list, but it has not been fully installed yet.
- In the “Input File” text box, enter the path to the library JAR file, e.g. “path/to/Sketchbook/libraries/Ketai/library/Ketai.jar”. You may use the file select button to aid in locating this file.
- In the “Output File” text box, enter the same path as above, but change the “library” folder to “library-dex” and change the library JAR file to “libraryName-dex.jar”, e.g. “path/to/Sketchbook/libraries/Ketai/library-dex/Ketai-dex.jar”.
- Press the “Dex” button. Wait for the dexing process to complete.
- Repeat steps 7 through 10 for any additional library JAR files.
- When the dialog closes, the library has been fully installed. It will now be automatically added to any sketch with the import statements at the top.

I havent tested all of these yet but I have attempted the traditional way and couldnt get them to load.

There have been many problems reported with adding libraries to apde

> [@Can't use libraries](https://discourse.processing.org/t/cant-use-libraries/6735):
>
> Hello, I really want to use libraries on Android. Although if I import them, I get a few errors in the console: name.jar is mentioned in export.txt, but it'sa big fat lie and does not exist. I followed the manual install guide. How do I install it properly and use it correctly? Btw, what’s better: Beads or Minim?

> **[Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/2342/android-pde-create-and-run-sketches-on-an-android-device/p2)**
>
> Processing is an electronic sketchbook, a language and a worldwide community. This is its forum.

> <https://github.com/Calsign/APDE/issues/81>
>
> So, I've read through the relevant wiki pages about libraries and I wanted to te…st the process with the ketai zip.
> 
> I downloaded it, opened up APDE, then went to Tools\>Import Library\>Manage Libraries\>Install Compressed Library, and select the ketai.zip file. Then APDE crashes, displaying "APDE has stopped working."
> 
> Ultimately, I want to add the processing Serial library to APDE so I can communicate between an arduino and my phone. \*\*Does anyone have advice on what to do OR, preferably, a simple step by step guide on how to add the serial library to APDE starting from the github page for processing libraries?\*\* I'm a little new to processing and very new to APDE, so thank you ahead of time! If you need any more info that might help, let me know
> 
> EDIT: I figured a roundabout way to add the ketai library, but I'm still having trouble formatting the serial library from the processing repository into a format that APDe will accept. IF you have any advice, I'd be grateful

So I’ve managed to successfully install the jcomms library after a few failed attempts here are the steps I followed

> **[jSerialComm](https://fazecast.github.io/jSerialComm/)**
>
> jSerialComm : Platform-independent serial port access for Java

- 1 create new sketch.
- 2 change the sketch name  
 ![Screenshot_20210512_100335_com.calsignlabs.apde](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/60ae06ec87593f44b8e361394e1450335b70341c.jpeg)
- 3 change the sketch display name
- 4 change the sketch package name  
 ![Screenshot_20210512_100346_com.calsignlabs.apde](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/1/1a6a9e60882534eb9334e4f9f0eb9bdba52623f1.jpeg)
- 5 make sure apde is not building to internal storage

 ![Screenshot_20210512_085502_com.calsignlabs.apde](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/bfae2d02343c1d2df72dace28bcee7905cd788f8.jpeg)

then

 ![Screenshot_20210512_101515_com.calsignlabs.apde](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/7/729806e735f16b3c14a56868ad325c0fd5584865.jpeg)

and select

 ![Screenshot_20210512_100128_com.calsignlabs.apde](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/8/88cabb836d4954cb74e3cf7d87252d0ec5134ae0.jpeg)

- 6 install the library manually using the following steps

in your `sketchBook` folder create a new `libraries` folder. Here add a new folder with the name of your library (they must match), in that folder create a new folder called library, and in that folder add your jar file.

This will now allow you to be install them using the apde add library process

---

_[View the full topic](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870)._
