Download the androidlua library from here
Complete sample project
As an embedded scripting language, Lua can be embedded into various environments. Next we will demonstrate how to embed Lua into Android.
Lua: the latest version 5.2.1
Http://www.lua.org/
The latest version of luajava, 1.1
Http://www.keplerproject.org/luajava/
I downloaded lua5.2.1, and luajava1.1 compilation failed. Luajava1.1 does not support lua5.2.1 and supports up to lua5.1. We can only use lua5.1
You can directly synchronize the androlua project.
Https://github.com/mkottman/AndroLua
$ Git clone https://github.com/mkottman/AndroLua
1. Use ndk-build to compile JNI,
$ CD JNI
$ Ndk-build
After compilation, the so file is generated. Here, androlua/libs/armeabi/libluajava. So
2. Export the. jar file from luajava for use in the project.
If you do not want to compile, you can directly use the files that have been compiled.