所以我的项目的库为ffmpeg相机,但是当我加载库时我遇到了一些错误。
我收到类似“java.lang.UnsatisfiedLinkError:android”的错误。
我的.so文件目录是src-main-jniLibs-armeabi - 所以文件。当我加载so文件gettting错误时,我无法加载so文件。我已经尝试了很多答案,但仍然会出现此错误。
如果你想要其他配置文件我可以在这里加载。
错误日志也在这里
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'com.github.triplet.play'
apply plugin: 'project-report'
def buildVersionCode = new Date().format("yyMMddHHmm",
TimeZone.getTimeZone("Europe/Istanbul")).toInteger()
def buildVersionName = "1.1.2"
def SupportVersion = '25.3.1'
def OkHttpVersion = '3.2.0'
def RetrofitVersion = '2.0.2'
def FacebookVersion = '4.+'
def GSonVersion = '2.6.2'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
playAccountConfigs {
defaultAccountConfig {
...
}
}
defaultConfig {
applicationId "...."
resValue "string", "app_name", "..."
resValue "string", "face_app_id", "...."
minSdkVersion 16
playAccountConfig = playAccountConfigs.defaultAccountConfig
//noinspection OldTargetApi
targetSdkVersion 25
versionCode buildVersionCode
versionName buildVersionName
multiDexEnabled true
renderscriptTargetApi 19
renderscriptSupportModeEnabled true
}
signingConfigs {
....
}
lintOptions {
abortOnError false // true by default
checkAllWarnings false
checkReleaseBuilds false
ignoreWarnings true // false by default
quiet true // false by default
}
sourceSets {
main.jni.srcDirs = []
main.jniLibs.srcDirs = ['libs']
}
buildTypes {
release {
minifyEnabled true
debuggable false
signingConfig signingConfigs.release
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
applicationVariants.all { variant ->
variant.outputs.each { output ->
output.outputFile = new File(output.outputFile.parent,
output.outputFile.name.replace("-release", "-release-" + buildVersionName + "-" + buildVersionCode)
)
}
}
}
debug {
debuggable true
zipAlignEnabled true
applicationIdSuffix ".debug"
}
productFlavors {
arm7 {
// in the future, ndk.abiFilter might also work
ndk {
abiFilter 'armeabi-v7a'
}
}
arm8 {
ndk {
abiFilters 'arm64-v8a'
}
}
arm {
ndk {
abiFilter 'armeabi'
}
}
x86 {
ndk {
abiFilter 'x86'
}
}
x86_64 {
ndk {
abiFilter 'x86_64'
}
}
mips {
ndk {
abiFilters 'mips', 'mips64'
}
}
universal {
ndk {
abiFilters 'mips', 'mips64', 'x86', 'x86_64'
}
}
}
}
lintOptions {
abortOnError false
checkReleaseBuilds false
checkAllWarnings true
htmlReport true
htmlOutput file("lint-report.html")
checkReleaseBuilds true
disable 'MissingTranslation'
disable 'UnusedResources'
disable 'IconLauncherShape'
disable 'GoogleAppIndexingApiWarning'
disable 'SelectableText'
error 'CommitTransaction'
error 'InconsistentArrays'
error 'Registered'
error 'ManifestOrder'
}
}
play {
track = 'alpha'
}
dependencies {
compile fileTree(dir: 'libs', include: ['.jar', '.so'])
compile files('libs/javacpp.jar')
compile files('libs/javacv.jar')
compile project(':camera')
compile project(':VideoRecorder')
compile("com.android.support:appcompat-v7:$SupportVersion") {
exclude group: 'com.android.support', module: 'support-v4'
exclude group: 'com.android.support', module: 'support-annotations'
}
compile("com.android.support:cardview-v7:$SupportVersion") {
exclude group: 'com.android.support', module: 'support-annotations'
}
compile("com.android.support:design:$SupportVersion") {
exclude group: 'com.android.support', module: 'support-core-ui'
exclude group: 'com.android.support', module: 'appcompat-v7'
exclude group: 'com.android.support', module: 'support-v4'
}
compile("com.android.support:support-v4:$SupportVersion") {
exclude group: 'com.android.support', module: 'support-media-compat'
exclude group: 'com.android.support', module: 'support-compat'
}
compile('com.android.support:multidex:1.0.1') {
exclude group: 'com.android.support', module: 'support-vector-drawable'
}
compile(group: 'org.bytedeco', name: 'javacv-platform', version: '1.3') {
exclude group: 'org.bytedeco.javacpp-presets'
}
compile group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '3.2.1-1.3'
compile group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '3.2.1-1.3', classifier: 'android-arm'
compile "com.google.code.gson:gson:$GSonVersion"
compile "com.squareup.okhttp3:okhttp:$OkHttpVersion"
compile "com.squareup.retrofit2:retrofit:$RetrofitVersion"
compile "com.facebook.android:facebook-android-sdk:$FacebookVersion"
compile('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
transitive = true;
}
compile('com.twitter.sdk.android:twitter:2.3.0@aar') {
transitive = true;
}
compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.5.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'de.hdodenhof:circleimageview:2.0.0'
compile 'com.wdullaer:materialdatetimepicker:2.3.0'
compile 'com.github.zhaokaiqiang.klog:library:1.4.0'
compile 'com.github.filippudak.progresspieview:library:1.0.4'
compile 'com.daimajia.swipelayout:library:1.2.0@aar'
compile 'com.amazonaws:aws-android-sdk-s3:2.4.7'
compile 'io.paperdb:paperdb:1.5'
compile 'org.greenrobot:eventbus:3.0.0'
compile 'com.jakewharton:butterknife:8.4.0'
compile 'com.flipboard:bottomsheet-core:1.5.0'
compile 'com.flipboard:bottomsheet-commons:1.5.0'
compile 'com.yqritc:android-scalablevideoview:1.0.4'
compile 'com.github.bumptech.glide:okhttp3-integration:1.4.0@aar'
compile 'com.google.android.gms:play-services-gcm:11.0.4'
compile 'me.relex:circleindicator:1.1.8@aar'
compile 'com.github.ihsanbal:scissors:1.1.3'
compile 'org.zakariya.stickyheaders:stickyheaders:0.7.5'
compile 'com.parse.bolts:bolts-android:1.4.0'
compile 'com.parse:parse-android:1.15.8'
compile 'com.getbase:floatingactionbutton:1.10.1'
compile 'com.github.wooplr:Spotlight:1.2.3'
compile 'com.adjust.sdk:adjust-android:4.7.0'
compile 'com.google.android.gms:play-services-analytics:11.0.4'
compile 'com.makeramen:roundedimageview:2.3.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.3.1'
compile 'com.github.castorflex.verticalviewpager:library:19.0.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
compile 'jp.wasabeef:blurry:2.1.1'
compile 'com.writingminds:FFmpegAndroid:0.3.2'
}
我的gradle是
{{1}}