bytedeco / javacpp-presets

The missing Java distribution of native C++ libraries
Other
2.63k stars 731 forks source link

javacpp cannot load resources in Android #1369

Open huazai023 opened 1 year ago

huazai023 commented 1 year ago

When relying on javacpp in an Android app, using the javacpp loader findResources method, resources cannot be obtained

huazai023 commented 1 year ago

Now Javacpp and cpython can run on Android. Thank you for your support @saudet

saudet commented 1 year ago

Really? Which change fixed this issue for you?

huazai023 commented 1 year ago

In the JavaCPP project, I created a zip package for Android resources. When running in Android, I unzipped the zip package to obtain the resources; In the CPython project, I added Android compilation scripts. Now, all you need to rely on is a jar package to write Python code in Android