Closed leasses closed 2 years ago
I added some documentation about Android configurations. Can you try again with 3.0.3-SNAPSHOT
?
repositories {
maven {
url 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
}
}
ext {
lua = 'luajit'
luaJavaVersion = '3.0.3-SNAPSHOT'
}
Are you using version 3.0.3-SNAPSHOT
or 3.0.2
? Indeed, native binaries for version 3.0.2
lead to segment fault due to misconfigured build scripts, which hopefully has been fixed by 3.0.3-SNAPSHOT
.
Thanks so much for helping. It works!
And I give you an advice, you can use the .aar
file to package it so that the Gradle can package the .so
files to the APK instead of using the gradle scripts, and the configuration for Android can be shorter.
Of coures you can continue using .jar
file, and its size is smaller than .aar
file.
By the way, sorry for my poor English because I am Chinese. If you can understand Chinese, please tell me.
Thanks for the suggestion! With #16, you can now include the native binaries with:
implementation 'party.iroiro.luajava:luajit:3.0.3-SNAPSHOT'
runtimeOnly "party.iroiro.luajava:android:3.0.3-SNAPSHOT:luajit@aar"
Thank you!
It was a bit complicated. I add the dependencies to my
build.gradle
file, just like this:But the Gradle didn't add the
.so
files to my APK. So when I run the app on my phone, It exits and throws an Expection:So I try to move the
.so
files tojniLibs\<target API>\
directory, but it still can't work and throws the Expection.What should I do?