@ -68,4 +68,190 @@ Again, Notepad++ comes with an already prepared script to do that. Just open `ra
**If you have any doubt, [just let me know][raysan5].**
**If you have any doubt, [just let me know][raysan5].**
[raysan5]: mailto:raysan5@gmail.com "Ramon Santamaria - Ray San"
[raysan5]: mailto:raysan5@gmail.com "Ramon Santamaria - Ray San"
# Simple Process for Building for Android on MAC OSX
It's helpful to know step by step what each part of the process is doing. For this, let's create a simple bash script, where each line can be run manually and the results can be seen. This should be useful for understanding the process on Linux as well.
## Folder Setup
> Note: project.c is copied from raylib/templates/simple_game/simple_game.c
/toolchain_arm_api22 put android_toolchain_arm_api22 here
/raylib put raylib here
/project1/lib
/project1/obj
/project1/src
/project1/dex
/project1/res/values/strings.xml
/project1/assets
/project1/project.c
/project1/AndroidManifest.xml
### /res/values/strings.xml
> Note: This is likely not necessary.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<stringname="app_name">My App</string>
</resources>
### /src/com/seth/project/NativeLoader.java
> Note: My project is named "project" and the namespace is named "seth"
package com.seth.project;
public class NativeLoader extends android.app.NativeActivity {
static {
System.loadLibrary("project"); // must match name of shared library (in this case libproject.so)
You'll get this if your shared library's name does not match across the build. In my case, I was referencing projectlibrary in the java file where it should have just been "project"
## Error: INSTALL_FAILED_NO_MATCHING_ABIS
This one was tricky! Make sure the platform of the standalone toolchain you build matches the platform you are using on your system.
This one was easier. The Apk generated must contain classes/classes.dex. If it doesn't, check aapt package -f -M to make sure you are including the folder dex is in at the end of it.