Movatterモバイル変換


[0]ホーム

URL:


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 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

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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
    • Release orDebug etc. for$BUILD_TYPE
    • x86_64,x86,armeabi-v7a orarm64-v8a for$NDK_ARCH
    • If desired changeANDROID_PLATFORM value to something bigger than 19
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

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp