-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do we have to specify the platform property on Android? #687
Comments
No, we don't need to, for example: https://github.com/bytedeco/sample-projects/blob/master/JavaCV-android-example/app/build.gradle |
Great! Then I only used an ndk abifilters block to filter out those unwanted, like this:
There's another question here. How can I package the executables like ffmpeg and ffprobe into the apk? Any other tricks? |
We need to use Android API 28 or less for that to work, see bytedeco/javacv#1127 (comment) |
Hi @saudet , the problem here is ffmpeg didn't get packaged. Even though I changed targetSdkVersion to 26(Android 8.0), I find that the ffmpeg executable is still missing in the final apk. So I am wondering why the executable didn't get packaged. But when I compiled the app using the dependency jar file directly, the executable file is right there in the apk. It seems different. |
The Android plugin won't do that for us, you'll need to add them as resources somehow. Probably copying them in the right subdirectory for Gradle to pick them up should do the trick. |
OK, got it. Thanks! @saudet Then I am posting my workaround code snippet here for somebody else's information:
|
For Android apks, some may only inlcude armeabi-v7a libraries but they want to run on an arm64-v8 device. If we don't set the javacpp.platform, it seems those apps won't run properly.
The text was updated successfully, but these errors were encountered: