Pure Data for Android – libPD (pd-for-android) using the jcenter gradle dependecy

Pure Data for Android – 2016 Update

With the beginning of the new year Joe Bowbeer informed me that the pd-for-android project on GitHub got a major update. The library supports Android Studio development using the jCenter Gradle repository now. Altogether we need no more repository clones, no module imports, no custom NDK builds. The project only needs to add a Gradle compile dependency for the pd-for-android library.

Simple Setup and Usage

  1.  Verify that the jCenter repository is included within your project’s build.gradle file.
  2. After that you have to add the detailed pd-for-android artifact to your app build.gradle file. The first version supported within the jCenter repository was 1.0.0. The current version while writing this blogpost was 1.0.1 and  two new pure data objects were added. I would recommend to make sure that you use the newest version in your newly created project. You can check the release history in GitHub easily.
  3. The essential Pure Data classes and functions should be available for development now. As before you have to get sure that your soundpatch was created using the vanilla Pure Data objects. Otherwise the library is not able to generate any sound. Beside this you can get some advanced information by checking out the projects readme file on GitHub.

Updated sample project

In march 2015 I provided a preconfigured example project for a simple start with Android Studio and pd-for-android. To match the new possibilities I updated the project to use the jCenter artifact instead of the explicit import of the modules. Take a look here:  Sample Project for using libpd with Android Studio