This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:orx:tutorials:setup_android [2014/08/21 03:18 (10 years ago)] – sausage | en:tutorials:android:setup_android [2023/03/26 21:39 (12 months ago)] (current) – sausage | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Compiling orx and the Android | + | <WRAP center round box 60%>This guide is based on Android Studio Electric Eel (which ships with SDK 33). If you need to set up a development environment for Android, you must first ensure you have completed |
- | To follow this guide, you must first ensure you have completed the [[: | ||
+ | ===== Compiling the Orx Library and the Android Demo Project ===== | ||
- | **1. Compile orx** | + | **1. Compiling the Orx library for Android** |
- | | + | cd orx/ |
- | ndk-build | + | |
- | | + | |
- | + | ||
- | For windows, use install.bat instead. | + | |
- | **2. Compile orxTest sample** | + | For Linux or Mac use '' |
- | cd < | + | The compiled libraries will be located under '' |
- | | + | |
- | ndk-build | + | |
- | + | ||
- | For windows, substitute the export command above as: | + | |
- | set NDK_MODULE_PATH=< | + | |
- | **3. Import Orx Java framework in Eclipse** | + | - orx-debug.aar |
+ | - orx-profile.aar | ||
+ | - orx-release.aar | ||
- | | + | **2. Compiling the Android Demo** |
- | | + | |
- | + | ||
- | **4. Import demo project in Eclipse** | + | |
- | | + | Compile |
- | | + | |
- | let eclipse build the project and deploy on your device | + | |
- | + | ||
- | < | + | |
+ | cd < | ||
+ | | ||
- | When importing the demo project after importing orxLib, you may get an error of: | + | For Linux or Mac use '' |
- | * Build path contains duplicate entry: | + | |
- | + | ||
- | | + | |
+ | An APK file (one each for debug, profile and release) be created are available at: '' | ||
+ | You can copy this to your Android device to test. | ||
- | If you receive the following error: | ||
- | * [OrxTest] Unable to resolve target ' | ||
- | |||
- | You don't have the required android SDK (API 19) that the orx Demo is set to. Use the SDK Manager to check and download API 19. | ||
- | </ | + | ===== General Troubleshooting ===== |
+ | There are currently no tips here since our new process has been completely streamlined. Please get in touch on Discord if you experience issues so we can add them here. | ||
- | If you have completed this tutorial and would like to try it with your own project, continue to [[: | + | |
+ | If you have completed this tutorial and would like to try it with your own project, continue to [[en: | ||