- >forum
- >github
- >addons
- >slack
- >blog
- >donations
- Mac Android Studio Ndk Download Earlier Version Folder 64-bit
- Mac Android Studio Ndk Download Earlier Version Folder 32-bit
- Download Ndk Android Studio
Uncompress the NDK download package using tools available on your computer. When uncompressed, the NDK files are contained in a directory called android-ndk-version. You can rename the NDK directory if necessary and you can move it to any location on your computer. This documentation refers to the NDK directory as ndk. The first time you build a project for Android using IL2CPP, you will be asked to locate the folder where you installed the Android NDK. Select the root folder of your NDK installation. If you wish to change the location of the Android NDK, in the Unity Editor, navigate to menu: Unity Preferences to display the Unity Preferences dialog box. Download Android NDK version r13b (64-bit) from the NDK Downloads web page. Extract the android-ndk folder to a directory on your computer and note the location. The first time you build a Project for Android using IL2CPP, you are asked to locate the folder in which you installed the Android NDK. Select the root folder of your NDK installation. The first time you build a project for Android using IL2CPP, you will be asked to locate the folder where you installed the Android NDK. Select the root folder of your NDK installation. If you wish to change the location of the Android NDK, in the Unity Editor, navigate to menu: Unity Preferences to display the Unity Preferences dialog box.
Uncompress the NDK download package using tools available on your computer. When uncompressed, the NDK files are contained in a directory called android-ndk-version. You can rename the NDK directory if necessary and you can move it to any location on your computer. This documentation refers to the NDK directory as ndk.
Summary
Setting up openFrameworks with Android Studio is fairly straightforward. The basic steps are:
- Install Android Studio and the Android SDK
- Install the Android NDK (actually tested version is r15c)
- Download openFrameworks from the download page or from git
- If you got openFrameworks from git:
- Run
scripts/android/download_libs.sh
to download libraries. - Use the Project Generator to generate Android Studio project files for android examples.
- Run
- In Android Studio, use Open an existing Android Studio project and select an openFrameworks example from the
examples/android
folder. - It will ask you for NDK location, either put the path in
local.properties
or click Project Structure and select the NDK location. - Let Android Studio download all other dependencies missing automatically.
- Build and run
Installation
Install Android Studio and the SDK
Download and install Android Studio from https://tools.android.com/download/studio/stable (you need Android Studio 1.0 or higher). It should come with (or automatically install) a recent SDK, though you can customize the SDK version later from within Android Studio using Tools ➞ Android ➞ SDK Manager. Fallout 4 pc free download.
Download java jre 1.7 for mac. In the event that Android Studio does not come with an SDK, you can install it from https://developer.android.com/sdk/index.html (under 'Get the SDK for an existing IDE').
Mac Android Studio Ndk Download Earlier Version Folder 64-bit
Install the Android NDK
This is the C/C++ compiler, headers and libraries for Android. OF 0.10.0 has been tested with the NDK version r15c, newer versions might work but it's not guaranteed.
- OS X: https://dl.google.com/android/repository/android-ndk-r15c-darwin-x86_64.zip
- Linux 64: https://dl.google.com/android/repository/android-ndk-r15c-linux-x86_64.zip
- Windows 32: https://dl.google.com/android/repository/android-ndk-r15c-windows-x86.zip
- Windows 64: https://dl.google.com/android/repository/android-ndk-r15c-windows-x86_64.zip
Download openFrameworks
Download it from the downloads page:
Open the project
At the Android Studio welcome screen select Open an Existing Android Studio Project.
Then browse to any of the android examples in examples/android
.
Mac Android Studio Ndk Download Earlier Version Folder 32-bit
Accept all the prompts and wait for Android Studio to set up the project.
You'll have to wait a bit: the first sync will automatically build openFrameworks. If it doesn't work (Gradle sync still fails), try looking at the Troubleshooting tips. In some cases, clicking on the error in the console window will take you to a solution, such as installing various versions of the Android SDK. In some cases, you may have to do this several times to solve several missing dependencies.
Build and run
Download Ndk Android Studio
Press the Play button next to the androidEmptyExample
shown in the toolbar. With any luck, it should build the app, and momentarily deploy it to your Android device (or prompt you to deploy it on a suitable emulator). If the app runs, congratulations! You have setup openFrameworks.
Creating new projects
To create new projects just use the project generator for your platform that you can find in the root folder. For linux you'll need to run
before being able to run the project generator
Troubleshooting
You may need to adjust the following numbers to match your installed Android Studio and Android SDK. Android Studio should offer to fix these values for you when you open the appropriate build files.
- The Gradle version specified in
/build.gradle
- The
compileSdkVersion
,buildToolsVersion
,minSdkVersion
,targetSdkVersion
values in/addons/ofxAndroid/ofAndroidLib/build.gradle
and/apps/myApps/androidEmptyExample/build.gradle
- The Gradle version specified in
If you get strange linker errors, check that you are using the 15c version of the NDK. Newer NDKs might work but usually there's some always some fixes that need to be done when moving to a new NDK version.
If you get make errors on gradle sync without any details, run
chmod +x gradlew; ./gradlew
from within the project folder to build the project from command line, and get more detailed error messages.If, when syncronizing a project for the first time, clicking on the console messages does not solves the problem regarding a missing dependency of the android API (like for example Android API 25), open the sdk from the console, select the missing API and install it