JetBrains / lets-plot-compose-demos

MIT License
11 stars 0 forks source link

Need libskiko-android-arm64 library to compile this, but where to get it? #1

Closed klaaslusterbroodvan closed 7 months ago

klaaslusterbroodvan commented 7 months ago

I am relatively new to programming with Android Compose. I managed to compile the demo, but the app crashes on my Android phone with the message that it cannot find the message that "libskiko-android-arm64.so" was not found. I assume this native Android library is somewhere, but how can I get it?

alshan commented 7 months ago

If you built with gradle you should be able to see "libskiko-android-arm64.so" in the project "src" dir:

image

Do you have it?

klaaslusterbroodvan commented 7 months ago

Thank you for that.

I don't have a jniLibs folder there. I must be doing something wrong with the build.gradle.kts file. I assume the jniLibs file gets automatically created by the Intellij builder/compiler?

I have the following relevant lines in my gradle file:

dependencies{
  ...
  implementation("org.jetbrains.skiko:skiko-android-runtime-arm64:0.7.86")
  implementation("org.jetbrains.lets-plot:lets-plot-kotlin-kernel:4.5.0")
  implementation("org.jetbrains.lets-plot:lets-plot-common:4.1.0")
  implementation("org.jetbrains.lets-plot:lets-plot-compose:1.0.1")
}

What do I need to add to make sure the libskiko-android-arm64.so file gets added to the jnilib.

alshan commented 7 months ago

I would guess you need to add everything missing in your gradle file in comparison to the demo build.gradle.kts.

klaaslusterbroodvan commented 7 months ago

@alshan Thank you so much for your explanation, it now works. This is a superior plotting library and fantastic for plots of statistical analyses. Thank you for all your work on this.