【发布时间】:2016-02-28 04:54:03
【问题描述】:
使用 aviary android sdk 使用 android studio 和 gradle build。 生成的应用在所有具有 32 位架构的设备上运行良好。
同一应用程序在 64 位设备中出现以下错误 [例如。索尼C4]
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file
"/data/app/com.myapp/base.apk"],nativeLibraryDirectories=[/data/app/com.myapp/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libaviary_moalite.so"
gredle.build 部分
dependencies {
...
compile 'com.android.support:multidex:1.0.0'
compile 'com.facebook.fresco:fresco:0.8.1+'
compile 'com.facebook.fresco:imagepipeline-okhttp:0.8.1+'
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.adobe.creativesdk:image:4.0.0'
}
参考无效
Can't find ARM64 NDK native lib using Android Studio (1.3 RC)
如果使用所用的任何解决方案,都会出现同样的错误。
How to use 32-bit native libraries on 64-bit Android device
得到类似的错误
Error:(16, 0) Error: NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin. For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental. Set "android.useDeprecatedNdk=true" in gradle.properties to continue using the current NDK integration.
我不确定自己做错了什么,或者根本不支持。
【问题讨论】:
-
您有自己构建的本机库,还是仅从外部源导入的库?
-
从 adobe creativesdk 的外部源导入
标签: android android-ndk aviary adobecreativesdk