Setting up OpenFrameworks with Android Studio

I’m in the process of setting up my system to deploy OpenFrameworks apps on Android devices.

I’ve followed the instructions here on macOS 10.12.3:

However, whenever I open one of the OF - Android example projects, I keep getting the following error:

Anything I’m missing or doing wrong?

Configure the NDK

With a text editor, edit the file libs/openFrameworksCompiled/project/android/paths.make and set the NDK path to the correct folder:


Did you do this step?


Here’s a screenshot of my paths.make file:

okey then maybe use this

Hmm, I just pulled from the Master branch of OF to make sure I have those updates; but I’m still having the same issue :confused:

Clearly, I’m misunderstanding something in the instructions, or in the overall process…

I had also lot’s of troubles setting the whole thing up.
The pull request is still not merged so you need to check out the specific pull request.

git fetch origin pull/5461/head:pr-android2
git checkout pr-android2
git fetch origin pull/ID/head:BRANCHNAME

where ID is the pull request id and branchname is the name of the new branch that you want to create. Once you have created the branch, then simply

git checkout BRANCHNAME

Next thing to do is to follow the new docs included in the pull request:

Before you can build any of the examples you have to run the Project Generator on the Example

And back to your issue, the file in the folder is called paths.make and not paths.default.make
You have to open paths.default.make and save it under the new name paths.make.

I see - that makes sense, thank you so much!

Last question (I think) - what directory should I run the
command in?


I would say
cd openFrameworks/scripts/android&&./
If you do that the libs for Macosx/linux/win are replaced. So if you want to compile for mac again you have to run
cd openFrameworks/scripts/osx&&./

Weird - when I do that I get this:

MacBook-Pro-5:android nicholasarner$ cd

-bash: cd: openFrameworks/scripts/android: No such file or directory

This is what the directory looks like:

cd means change directory. you have to change in the directory where your openframeworks lies.
with ls - list directory you can see where you are.

So cd (change directory) to your openframeworks folder, change to scripts/android and then run ./

I don’t have a mac, but maybe you can just click on the

I am currently trying to set up Open Frameworks 0.10.0 for Android Studio, and ended up here trying to figure out what it means that I don’t have a paths.make file at the location indicated in the instructions on the web page at . I gather from this thread that there are new steps and that 0.10.0 doesn’t have such a file to edit, but that the web page has not yet been updated to remove that instruction?

(Is there someone to report suggested web page & doc improvements to?)

you can open an issue in github at or even send a correction of that specific page by opening a PR request with the changes

1 Like

Thanks! I submitted a PR with the main needed changes and a couple suggestions.