Android 6.0上的PhotoEditor SDK崩溃

时间:2018-04-19 07:37:51

标签: android photoeditorsdk

我已将photoeditor SDK集成到我的Android应用程序中,但是当点击photoeditor SDK的导出/保存按钮时,应用程序会崩溃。
以下是崩溃日志。

-15526/com.picedit.app.debug E/Parcel: Reading a NULL string not supported here.
04-19 14:40:58.208 15526-15526/com.picedit.app.debug E/Parcel: Reading a NULL string not supported here.
04-19 14:40:58.217 15526-15526/com.picedit.app.debug E/ANR_LOG: >>> msg's executing time is too long
04-19 14:40:58.217 15526-15526/com.picedit.app.debug E/ANR_LOG: Blocked msg = { when=-1s658ms what=110 target=android.app.ActivityThread$H obj=AppBindData{appInfo=ApplicationInfo{883af87 com.picedit.app.debug}} } , cost  = 1642 ms
04-19 14:40:58.217 15526-15526/com.picedit.app.debug E/ANR_LOG: >>>Current msg List is:
04-19 14:40:58.217 15526-15526/com.picedit.app.debug E/ANR_LOG: Current msg <1>  = { when=-1s657ms what=100 target=android.app.ActivityThread$H obj=ActivityRecord{8f70eb4 token=android.os.BinderProxy@ae44add {com.picedit.app.debug/ly.img.android.ui.activities.CameraPreviewActivity}} }
04-19 14:40:58.217 15526-15526/com.picedit.app.debug E/ANR_LOG: Current msg <2>  = { when=-1s253ms what=149 target=android.app.ActivityThread$H obj=android.os.BinderProxy@ae44add }
04-19 14:40:58.217 15526-15526/com.picedit.app.debug E/ANR_LOG: Current msg <3>  = { when=-3ms what=0 target=android.os.Handler callback=ly.img.android.authorization.a.a$1 }
04-19 14:40:58.217 15526-15526/com.picedit.app.debug E/ANR_LOG: Current msg <4>  = { when=+9s962ms what=132 target=android.app.ActivityThread$H }
04-19 14:40:58.217 15526-15526/com.picedit.app.debug E/ANR_LOG: Current msg <5>  = { when=+59s995ms what=0 target=android.os.Handler callback=com.google.android.gms.internal.zzcfq }
04-19 14:40:58.217 15526-15526/com.picedit.app.debug E/ANR_LOG: >>>CURRENT MSG DUMP OVER<<<
04-19 14:40:58.225 15526-15583/com.picedit.app.debug V/FA: Connecting to remote service
04-19 14:40:58.233 15526-15526/com.picedit.app.debug V/FA: onActivityCreated
04-19 14:40:58.250 15526-15583/com.picedit.app.debug V/FA: Connection attempt already in progress
04-19 14:40:58.337 15526-15526/com.picedit.app.debug E/CheckPermission: camera-code= 1
04-19 14:40:58.337 15526-15526/com.picedit.app.debug V/Camera: current package %scom.picedit.app.debug
04-19 14:40:58.337 15526-15526/com.picedit.app.debug E/Camera-JNI: shield numberOfCameras 2
04-19 14:40:58.487 15526-15526/com.picedit.app.debug V/RenderScript_jni: RS native mode
04-19 14:40:58.500 15526-15526/com.picedit.app.debug V/RenderScript_jni: Unable to load libRSSupportIO.so, USAGE_IO not supported
04-19 14:40:58.501 15526-15526/com.picedit.app.debug V/RenderScript_jni: Unable to load BLAS lib, ONLY BNNM will be supported: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.picedit.app.debug-2/base.apk", zip file "/data/app/com.picedit.app.debug-2/split_lib_dependencies_apk.apk", zip file "/data/app/com.picedit.app.debug-2/split_lib_slice_0_apk.apk", zip file "/data/app/com.picedit.app.debug-2/split_lib_slice_1_apk.apk", zip file "/data/app/com.picedit.app.debug-2/split_lib_slice_2_apk.apk", zip file "/data/app/com.picedit.app.debug-2/split_lib_slice_3_apk.apk", zip file "/data/app/com.picedit.app.debug-2/split_lib_slice_4_apk.apk", zip file "/data/app/com.picedit.app.debug-2/split_lib_slice_5_apk.apk", zip file "/data/app/com.picedit.app.debug-2/split_lib_slice_6_apk.apk", zip file "/data/app/com.picedit.app.debug-2/split_lib_slice_7_apk.apk", zip file "/data/app/com.picedit.app.debug-2/split_lib_slice_8_apk.apk", zip file "/data/app/com.picedit.app.debug-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.picedit.app.debug-2/lib/arm64, /data/app/com.picedit.app.debug-2/base.apk!/lib/arm64-v8a, /data/app/com.picedit.app.debug-2/split_lib_dependencies_apk.apk!/lib/arm64-v8a, /data/app/com.picedit.app.debug-2/split_lib_slice_0_apk.apk!/lib/arm64-v8a, /data/app/com.picedit.app.debug-2/split_lib_slice_1_apk.apk!/lib/arm64-v8a, /data/app/com.picedit.app.debug-2/split_lib_slice_2_apk.apk!/lib/arm64-v8a, /data/app/com.picedit.app.debug-2/split_lib_slice_3_apk.apk!/lib/arm64-v8a, /data/app/com.picedit.app.debug-2/split_lib_slice_4_apk.apk!/lib/arm64-v8a, /data/app/com.picedit.app.debug-2/split_lib_slice_5_apk.apk!/lib/arm64-v8a, /data/app/com.picedit.app.debug-2/split_lib_slice_6_apk.apk!/lib/arm64-v8a, /data/app/com.picedit.app.debug-2/split_lib_slice_7_apk.apk!/lib/arm64-v8a, /data/app/com.picedit.app.debug-2/split_lib_slice_8_apk.apk!/lib/arm64-v8a, /data/app/com.picedit.app.debug-2/split_lib_slice_9_apk.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "libblasV8.so"
04-19 14:40:58.604 15526-15588/com.picedit.app.debug V/RenderScript: 0x7f8622c000 Launching thread(s), CPUs 8
04-19 14:40:58.633 15526-15588/com.picedit.app.debug V/RenderScript: Successfully loaded runtime: libRSDriver_adreno.so
04-19 14:40:58.679 15526-15526/com.picedit.app.debug I/Background: getBackgroundColor [0.0; 0.0; 0.0; 1.0; ]
04-19 14:40:58.681 15526-15526/com.picedit.app.debug E/CheckPermission: camera-code= 3

1 个答案:

答案 0 :(得分:0)

我在此日志中看不到任何有用的信息,因为没有记录崩溃。 但是,请检查您是否在应用程序gradle文件中定义了正确的RenderScript版本。

    renderscriptTargetApi 23
    renderscriptSupportModeEnabled true

请尝试清理构建文件夹,从测试设备中删除应用程序并进行全新安装 某些Android版本中有时会出现一个错误,即在更新已安装的调试版本时不会重新编译RenderScripts。这可能会导致本机崩溃。