Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to add native library in Android Studio? #678

Answered by dkimitsa
rexguo asked this question in Q&A
Discussion options

Hi, I used gdxsetup.jar to create a test application for Android Studio. I then added a new module which contains some Java and C++ code, which I was able to compile and run on Android with CMakeLists.txt, build.gradle and System.loadLibrary(). For IOS/Robovm, how do I set it up so that it compiles and links to the iOS app?

You must be logged in to vote

hi, just create a static library/framework with your JNI code. Reference you <lib> in robovm.ini as specified in doc. No need to call loadLibrary just use jni

Replies: 1 comment

Comment options

hi, just create a static library/framework with your JNI code. Reference you <lib> in robovm.ini as specified in doc. No need to call loadLibrary just use jni

You must be logged in to vote
0 replies
Answer selected by Tom-Ski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /