Build rcljava for Android.
Modify Dockerfile to change environment.
- NDK: android-ndk-r23b
- ABI: arm64-v8a
- Android API Level: 24
Modify repo to change ROS2 version.
Currently ROS2 Humble is selectd for the building.
git clone https://github.com/nicholaslu/ros2-android-build
cd ros2-android-build/
docker build -t ros2java-android-build ./
python3 run.py ./out/soOut ./out/jarOut
Copy .jar
files to app/libs/rcljava
and .so
files to app/src/main/jniLibs/arm64-v8a
and add implementation fileTree(include: ['*.jar'], dir: 'libs')
to dependencies{}
of app/build.gradle