我們目前正在開發一個使用MobileFirst Foundation 8.0(20170131)的Cordova應用程序,該應用程序在x86體系結構Android設備和AVD上運行良好。但是當涉及像Note 5和Google Pixel這樣的64位體系結構設備時,我們在初始化JSONStore API時會看到以下錯誤消息,它說資產/ featurelibs中的libcrypto.so.zip文件是32位的的64位。JSONStore初始化失敗,錯誤:-11 msg:OPERATION_FAILED_ON_SPECIFIC_DOCUMENT
錯誤的Android工作室(V2.2.3):
02-11 13:18:43.136 9317-10425/com.mobiInspect E/JSONSTORE: JSONStoreLogger.logError in JSONStoreLogger.java:192 :: error while dispatching action "provision"
java.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/com.mobiInspect/no_backup/libcrypto.so.1.0.0" is 32-bit instead of 64-bit
at java.lang.Runtime.load0(Runtime.java:908)
at java.lang.System.load(System.java:1505)
at com.worklight.jsonstore.util.JSONStoreUtil.loadLib(JSONStoreUtil.java:264)
at com.worklight.jsonstore.api.WLJSONStore.<init>(WLJSONStore.java:71)
at com.worklight.jsonstore.api.WLJSONStore.getInstance(WLJSONStore.java:273)
at com.worklight.androidgap.jsonstore.dispatchers.ProvisionActionDispatcher.initializeCollection(ProvisionActionDispatcher.java:149)
at com.worklight.androidgap.jsonstore.dispatchers.ProvisionActionDispatcher.databaseActionDispatch(ProvisionActionDispatcher.java:139)
at com.worklight.androidgap.jsonstore.dispatchers.BaseDatabaseActionDispatcher.actionDispatch(BaseDatabaseActionDispatcher.java:36)
at com.worklight.androidgap.jsonstore.dispatchers.BaseActionDispatcher.dispatch(BaseActionDispatcher.java:90)
at com.worklight.androidgap.jsonstore.dispatchers.DispatchingPlugin$ActionDispatcherRunnable.run(DispatchingPlugin.java:79)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
02-11 13:18:43.148 9317-10425/com.mobiInspect D/JSONSTORE:JSONStoreLogger.logDebug in JSONStoreLogger.java:177 :: os.arch: x86_64
02-11 13:18:43.152 9317-10425/com.mobiInspect D/JSONSTORE: JSONStoreLogger.logDebug in JSONStoreLogger.java:177 :: Extracting zip file: featurelibs/x86/libcrypto.so.1.0.0
02-11 13:18:43.155 9317-9317/com.mobiInspect W/art: Attempt to remove non-JNI local reference, dumping thread
02-11 13:18:43.264 9317-10425/com.mobiInspect D/JSONSTORE: JSONStoreLogger.logDebug in JSONStoreLogger.java:177 :: Loading library using System.load: /data/user/0/com.mobiInspect/no_backup/libcrypto.so.1.0.0
02-11 13:18:43.269 9317-10425/com.mobiInspect D/JSONSTORE: JSONStoreLogger.logDebug in JSONStoreLogger.java:177 :: com.mobileiron.wrapped is set to false
02-11 13:18:43.281 9317-10425/com.mobiInspect D/JSONSTORE: JSONStoreLogger.logDebug in JSONStoreLogger.java:177 :: Loading library using System.load: /data/user/0/com.mobiInspect/no_backup/libcrypto.so.1.0.0
除了那些MobileFirst Foundation之外,您還在使用任何其他Cordova插件嗎?請使用所有插件列表更新問題。 –
我相信您安裝的一個或多個第三方插件會導致此錯誤。使用cordova-plugin-mfp和cordova-plugin-mfp-jsonstore創建一個新應用程序,您不會看到此錯誤。 –
@Srujan reddy嘗試了MFP JSONStore 8.0提供的示例[這裏](https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/application-development/jsonstore/cordova/),該應用完全適用於一個64位設備。試用Nexus 5X。請分享重新創建問題的示例以進一步調試。 –