I\'m trying use JavaCV with Android Studio and Gradle. I wrote such code fragment:
repositories {
mavenCentral()
maven {
url \"http://maven2.j
Unfortunately, I had some problems with user2645214's solution (still getting java.lang.UnsatisfiedLinkError), but I found another one, so I decided to share it with those who would have the same problem.
Since release 0.7.3 there is another way to include your *.so files - you can just put them in /src/main/jniLibs (just create jniLibs directory if you don't have it) and it should work.
Also my build.gradle file looks like:
apply plugin: 'android'
repositories {
mavenCentral()
maven { url 'http://maven2.javacv.googlecode.com/git/' }
}
dependencies {
compile 'com.android.support:appcompat-v7:20.+'
compile 'com.googlecode.javacpp:javacpp:0.7'
compile 'com.googlecode.javacv:javacv:0.7'
}
android {
compileSdkVersion 20
buildToolsVersion '20.0.0'
defaultConfig {
applicationId "com.example.agp.testapplication2"
minSdkVersion 15
targetSdkVersion 20
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}