JavaCV configuration in Android Studio

前端 未结 2 2089
温柔的废话
温柔的废话 2021-02-09 20:25

I know there is a lot of similiar questions to this, but a lot of them seem to be out of date because of the development of libraries such JavaCV.

I used the code from

相关标签:
2条回答
  • 2021-02-09 21:05

    Update! I've also found out that if you have have an armeabi-v7a folder in the jniLibs, or are using anything other than an armeabi folder, you will have issues with the .so files not being added.

    Looks like ffmpeg is not being imported. I had the same problem. Here is what I did. Let me know if this helps you!

    compile group: 'org.bytedeco', name: 'javacv', version: '0.9'
    compile group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '2.4.9-0.9', classifier:    'android-arm'
    compile group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '2.3-0.9', classifier: 'android-arm'
    
    0 讨论(0)
  • 2021-02-09 21:07

    Check the placement of jniLibs folder

    I have just changed the placement of my jniLibs (before it was outside main folder) and this worked for me, please check the image! hope this will help

    0 讨论(0)
提交回复
热议问题