User Tools

Site Tools


en:tutorials:android:setup_android

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:orx:tutorials:setup_android [2014/08/21 03:18 (10 years ago)] sausageen:tutorials:android:setup_android [2023/03/26 21:39 (12 months ago)] (current) sausage
Line 1: Line 1:
-====== Compiling orx and the Android demo ======+<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 the [[en:tutorials:android:getting_android_tools_and_orx|Getting Android Studio and Orx]] step first.</WRAP>
  
-To follow this guide, you must first ensure you have completed the [[:getting_android_tools_and_orx|Getting android tools and orx]] step. 
  
 +===== Compiling the Orx Library and the Android Demo Project =====
  
-**1. Compile orx**+**1. Compiling the Orx library for Android**
  
-   cd <MY_LIBS>/orx/code/build/android +   cd orx/code/build/android 
-   ndk-build +   build.bat
-   ./install.sh +
-    +
-   For windows, use install.bat instead.+
  
-**2Compile orxTest sample**+For Linux or Mac use ''build.sh'' instead
  
-   cd <MY_LIBS>/orx/code/demo/android +The compiled libraries will be located under ''orx\code\build\android\orx\build\outputs\aar''
-   export NDK_MODULE_PATH=<MY_LIBS>/orx/code +
-   ndk-build +
-    +
-   For windows, substitute the export command above as: +
-   set NDK_MODULE_PATH=<MY_LIBS>\orx\code+
  
-**3Import Orx Java framework in Eclipse**+  - orx-debug.aar 
 +  - orx-profile.aar 
 +  - orx-release.aar
  
-   Import an existing project into Workspace +**2Compiling the Android Demo**
-   browse to <MY_LIBS>/orx/extern/android +
-    +
-**4Import demo project in Eclipse**+
  
-   Import an existing project into Workspace +Compile the Demo which links in the static Orx library that we prepared in step 1:
-   browse to <MY_LIBS>/orx/code/demo/android +
-   let eclipse build the project and deploy on your device +
-    +
-<hidden  Tips for stage 4>+
  
 +   cd <DEV_FOLDER>/orx/code/demo/android
 +   build.bat
  
-   When importing the demo project after importing orxLib, you may get an error of: +For Linux or Mac use ''build.sh'' instead
-     * Build path contains duplicate entry: 'srcfor project 'orxTest' +
-    +
-   Ignore this error. It causes no problems and you can still continue to build.+
  
 +An APK file (one each for debug, profile and release) be created are available at: ''orx\code\demo\android\app\build\outputs\apk''
  
 +You can copy this to your Android device to test.
  
-   If you receive the following error: 
-     * [OrxTest] Unable to resolve target 'android-19' 
-    
-   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. 
  
-</hidden>+===== 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 [[:using_the_android_demo_as_a_template_for_your_own_projects|Using the Android demo as a template for your own projects]].+ 
 +If you have completed this tutorial and would like to try it with your own project, continue to [[en:tutorials:android:using_the_android_demo_as_a_template_for_your_own_projects|Using the Android demo as a template for your own projects]].
        
en/tutorials/android/setup_android.1408616332.txt.gz · Last modified: 2017/05/30 00:50 (7 years ago) (external edit)