应用因渲染脚本而崩溃

时间:2018-07-10 13:29:14

标签: android renderscript

我正在使用Photoeditor SDK过滤器,它使用renderscript渲染预览以应用过滤器。

一切正常,但问题出在Redmi note3手机上。结果是无法渲染过滤器,导致应用崩溃。我可以知道如何解决此问题吗?

Logcat-

07-10 15:27:08.052 19796-20344/com.roadlike.app E/RenderScript_jni: Error loading RS Compat library: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.roadlike.app-1/base.apk"],nativeLibraryDirectories=[/data/app/com.roadlike.app-1/lib/arm64, /data/app/com.roadlike.app-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "libRSSupport.so" Support lib version: 2301
07-10 15:27:08.060 19796-20344/com.roadlike.app E/UncaughtException: android.support.v8.renderscript.RSRuntimeException: Error loading RS Compat library: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.roadlike.app-1/base.apk"],nativeLibraryDirectories=[/data/app/com.roadlike.app-1/lib/arm64, /data/app/com.roadlike.app-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "libRSSupport.so" Support lib version: 2301
    at android.support.v8.renderscript.RenderScript.internalCreate(RenderScript.java:1445)
    at android.support.v8.renderscript.RenderScript.create(RenderScript.java:1587)
    at android.support.v8.renderscript.RenderScript.create(RenderScript.java:1537)
    at android.support.v8.renderscript.RenderScript.create(RenderScript.java:1513)
    at android.support.v8.renderscript.RenderScript.create(RenderScript.java:1500)

等级-

apply plugin: 'com.android.application'
android {
    compileSdkVersion 26
    buildToolsVersion "27.0.3"
    defaultConfig {
        applicationId "com.roadlike.app"
        minSdkVersion 19
        targetSdkVersion 26
        versionCode 1
        versionName "2.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true
        multiDexEnabled true
        renderscriptTargetApi 20
        renderscriptSupportModeEnabled true

    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

0 个答案:

没有答案