-
Notifications
You must be signed in to change notification settings - Fork 12
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
Duplicate package files causing build to fail in Android Studio #378
Comments
I don't believe we support Android on 1.11.0 (see #253). Some of the work to split out dependencies that don't exist on Android (like BufferedImage) is on the 2.x branch. However this looks like a different issue, possibly a transitive dependency on javacpp. I'm not very familiar with Android. Realistically, we're looking for help on this. Can you look at the dependency tree and try excluding javacpp to see if that makes a difference? |
Looks like a similar issue to bytedeco/javacv#1514 Does that work for you? |
I managed to get it to build by following the advice from the other linked issues. However, it crashes on startup due to not being able to find the BufferedImage class. I also tried excluding javacpp and ffmpeg individually, but it wouldn't build due to missing dependencies caused by their removal. |
OK - looks like we're back to #253. If you have a chance, try the 2.x branch. That would at least give you KLV decoding, then you could work out the replacement for the BufferedImage and anything else in AWT. |
Per the readme for version 2.x, I tried adding
I cloned the repository and switched to the 2.x branch, so I can try manually adding the files too |
Yes, 2.x is in development, not released yet. Getting Android working is one of the goals for the 2.0.0 release. Any assistance (especially pull requests for code or documentation) would be much appreciated. If you have a public example repo, we could link to that too. |
@mlparadiso540 - on the And as @bradh mentioned, we would really appreciate any help you can provide on Android support. |
Please try to use a javacppExtract task as shown here: |
Describe the bug
I am trying to build an Android app to receive video metadata. I add the following to build.gradle dependencies:
When I try to build, I get the following error:
In the Android Studio package explorer, I go to /META-INF/native-image/android-arm64/jnijavacpp/
There are duplicates of the following two files:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Adding jmisb dependency should not prevent app from building
Screenshots
n/a
Configuration (please complete the following information):
Additional Context
Project is currently an empty activity, no code has been added yet. It builds fine when I remove the jmisb dependency from build.gradle
The text was updated successfully, but these errors were encountered: