- Notifications
You must be signed in to change notification settings - Fork5
How to create a native Android command-line application that loads and uses ART virtual machine
License
NotificationsYou must be signed in to change notification settings
gershnik/android-cmdline-jni
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repository contains minimal code to create a native Android command-line application that loads and uses ART virtual machine.
More details can be found athttps://gershnik.github.io/2021/03/26/load-art-from-native.html
To build and run:
Make sure you have an emulator running or device connected.
Run the following, substituting
- your NDK location for
$ANDROID_NDK_PATH ReleaseorDebugetc. for$BUILD_TYPEx86_64,x86,armeabi-v7aorarm64-v8afor$NDK_ARCH- If desired change
ANDROID_PLATFORMvalue to something bigger than 19
- your NDK location for
mkdir -p buildcd buildcmake .. \ -DCMAKE_BUILD_TYPE:STRING=$BUILD_TYPE \ -DCMAKE_TOOLCHAIN_FILE:FILEPATH=$ANDROID_NDK_PATH/build/cmake/android.toolchain.cmake \ -DANDROID_ABI:STRING=$NDK_ARCH \ -DANDROID_PLATFORM:STRING=19 \ -DANDROID_STL:STRING=c++_staticcmake --build. --config$BUILD_TYPE --target run
About
How to create a native Android command-line application that loads and uses ART virtual machine
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.