Giter Site home page Giter Site logo

Comments (5)

saudet avatar saudet commented on May 18, 2024

Apparently Android Studio doesn't work with JAR files for JNI libraries anymore. We'd need to build an AAR file for that:
http://tools.android.com/tech-docs/new-build-system/aar-format
If this is something you'd like to work on, please let me know. It would be something useful for many people I'm sure. For now, it looks like we need to do it the manual way by copying the native files to a subdirectory of the the jniLibs project folder, a procedure that doesn't seem to be documented officially anywhere...

from javacv.

cmosboss avatar cmosboss commented on May 18, 2024

I wish I knew how to do that or I would love to help out!

from javacv.

saudet avatar saudet commented on May 18, 2024

Manually installing the JAR files in Android Studio work fine though. I've updated the instructions for that here:
https://github.com/bytedeco/javacpp-presets/tree/develop#manual-installation

from javacv.

MkrMkr avatar MkrMkr commented on May 18, 2024

Looks like the way with copying native files to jniLibs... doesn't work anymore. My project suddenly starts crashes today and I get error (one of my favorite): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load opencv_core: findLibrary returned null.
Please tell me that I'm wrong.
Edit. I tried also with new projects

from javacv.

saudet avatar saudet commented on May 18, 2024

Extracting all the native libraries to app/src/main/jniLibs should still work, but it's easier to just copy the JAR files themselves to the app/libs directory. I've confirmed that Android Studio's Gradle still does the extracting of JAR files for us:
https://github.com/bytedeco/javacv#manual-installation
So I guess I'll close this issue :)

from javacv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.