Martin
Well-known member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
3rd Party Tool Dev
- Joined
- Jun 19, 2017
- Messages
- 344
Windows
Download and install the Java SDK, take the 32bit one, so the x86 target like jdk-8u131-windows-i586.exe:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Download and install Android Studio:
https://developer.android.com/studio/index.html
In your Cerberus folder, open the file bin/config.winnt.txt and change the following variables:
JDK_PATH - path to your Java SDK installation
ANDROID_PATH - path to your Android SDK installation
That's it. You should now be able to build android apps.
You can make more build adjustments in the targets folder config file: targets/android/template/config.cxs
ANDROID_APP_LABEL - the name of your app
ANDROID_APP_PACKAGE - your bundle identifier, usually: com.yourcompany.appname
ANDROID_SCREEN_ORIENTATION - orientation of your game, either portrait, landscape or user (both)
ANDROID_MIN_SDK_VERSION - the min API level which you want to support. For Admob you need at least 14.
ANDROID_TARGET_SDK_VERSION - the current API level you want to build with. Should be always the latest one (currently 26)
ANDROID_BUILD_TOOLS_VERSION - the build tools version, currently 26.0.0
ANDROID_VERSION_CODE - this is kind of a build number and must always be greater than the last one in case you want to upload your app to Google Play Store
ANDROID_VERSION_NAME - your version number
If you experience this error during compilation
and you have accepted all the licenses when Android Studio asked you to do so...
fixing this can be done by copying the licenses folder located at
C:\Users\YourPcUserName\AppData\Local\Android\sdk
to the folder
C:\Program Files\Android\Android Studio
After that it should compile fine.
Mac OS
Download and install Android Studio:
https://developer.android.com/studio/index.html
In your Cerberus folder, open the file bin/config.macos.txt and change the following variables:
ANDROID_PATH - path to your Android SDK installation
That's it. You should now be able to build android apps.
You can make more build adjustments in the targets folder config file: targets/android/template/config.cxs
ANDROID_APP_LABEL - the name of your app
ANDROID_APP_PACKAGE - your bundle identifier, usually: com.yourcompany.appname
ANDROID_SCREEN_ORIENTATION - orientation of your game, either portrait, landscape or user (both)
ANDROID_MIN_SDK_VERSION - the min API level which you want to support. For Admob you need at least 14.
ANDROID_TARGET_SDK_VERSION - the current API level you want to build with. Should be always the latest one (currently 26)
ANDROID_BUILD_TOOLS_VERSION - the build tools version, currently 26.0.0
ANDROID_VERSION_CODE - this is kind of a build number and must always be greater than the last one in case you want to upload your app to Google Play Store
ANDROID_VERSION_NAME - your version number
Download and install the Java SDK, take the 32bit one, so the x86 target like jdk-8u131-windows-i586.exe:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Download and install Android Studio:
https://developer.android.com/studio/index.html
In your Cerberus folder, open the file bin/config.winnt.txt and change the following variables:
JDK_PATH - path to your Java SDK installation
ANDROID_PATH - path to your Android SDK installation
That's it. You should now be able to build android apps.
You can make more build adjustments in the targets folder config file: targets/android/template/config.cxs
ANDROID_APP_LABEL - the name of your app
ANDROID_APP_PACKAGE - your bundle identifier, usually: com.yourcompany.appname
ANDROID_SCREEN_ORIENTATION - orientation of your game, either portrait, landscape or user (both)
ANDROID_MIN_SDK_VERSION - the min API level which you want to support. For Admob you need at least 14.
ANDROID_TARGET_SDK_VERSION - the current API level you want to build with. Should be always the latest one (currently 26)
ANDROID_BUILD_TOOLS_VERSION - the build tools version, currently 26.0.0
ANDROID_VERSION_CODE - this is kind of a build number and must always be greater than the last one in case you want to upload your app to Google Play Store
ANDROID_VERSION_NAME - your version number
If you experience this error during compilation
You have not accepted the license agreements
and you have accepted all the licenses when Android Studio asked you to do so...
fixing this can be done by copying the licenses folder located at
C:\Users\YourPcUserName\AppData\Local\Android\sdk
to the folder
C:\Program Files\Android\Android Studio
After that it should compile fine.
Mac OS
Download and install Android Studio:
https://developer.android.com/studio/index.html
In your Cerberus folder, open the file bin/config.macos.txt and change the following variables:
ANDROID_PATH - path to your Android SDK installation
That's it. You should now be able to build android apps.
You can make more build adjustments in the targets folder config file: targets/android/template/config.cxs
ANDROID_APP_LABEL - the name of your app
ANDROID_APP_PACKAGE - your bundle identifier, usually: com.yourcompany.appname
ANDROID_SCREEN_ORIENTATION - orientation of your game, either portrait, landscape or user (both)
ANDROID_MIN_SDK_VERSION - the min API level which you want to support. For Admob you need at least 14.
ANDROID_TARGET_SDK_VERSION - the current API level you want to build with. Should be always the latest one (currently 26)
ANDROID_BUILD_TOOLS_VERSION - the build tools version, currently 26.0.0
ANDROID_VERSION_CODE - this is kind of a build number and must always be greater than the last one in case you want to upload your app to Google Play Store
ANDROID_VERSION_NAME - your version number
Last edited by a moderator: