问题是在设备上,安装第三方app,老是卡在初始页面,app的so库已经加载完毕,但是据推测并没有访问到。。
设备支持arm64-v8a,armeabi-v7a,armeabi
app支持 arm64-v8a,armeabi-v7a,
app明确没问题,设备端安装其他普通app也没问题
主要报错:
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] JNI DETECTED ERROR IN APPLICATION: JNI GetByteArrayElements called with pending exception java.lang.ClassNotFoundException: com.tuya.smart.security.jni.JNICLibrary
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at java.lang.Object com.tuya.smart.security.jni.SecureNativeApi.doCommandNative(android.content.Context, int, byte[], byte[], boolean, boolean) (SecureNativeApi.java:-2)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at java.lang.Object cq5.b(android.content.Context, int, byte[], byte[], boolean, boolean) (JNICLibrary.java:5)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at void com.tuya.sdk.network.TuyaNetworkSecurity.initJNI(android.content.Context) (TuyaNetworkSecurity.java:5)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at void com.tuya.smart.android.network.TuyaSmartNetWork.initialize(android.content.Context, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, com.tuya.smart.android.network.IApiUrlProvider) (TuyaSmartNetWork.java:21)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at void com.tuya.smart.sdk.TuyaSdk.initTuyaData(android.app.Application, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, com.tuya.smart.android.network.IApiUrlProvider, java.lang.String) (TuyaSdk.java:8)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at void com.tuya.smart.sdk.TuyaSdk.init(android.app.Application, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, com.tuya.smart.android.network.IApiUrlProvider) (TuyaSdk.java:7)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at void com.tuya.smart.sdk.TuyaSdk.init(android.app.Application, java.lang.String, java.lang.String, java.lang.String, java.lang.String, com.tuya.smart.android.network.IApiUrlProvider) (TuyaSdk.java:3)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at void bm3.g(java.lang.String, java.lang.String, java.lang.String, java.lang.String) (AppInitializer.java:19)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at void bm3.h(android.app.Application, java.lang.String, java.lang.String, uh6, java.lang.String, boolean) (AppInitializer.java:5)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at void bm3.c(android.app.Application, java.lang.String, java.lang.String, uh6, java.lang.String, java.lang.String, boolean) (AppInitializer.java:4)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at void com.smart.app.SmartApplication.i() (SmartApplication.java:16)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at void com.smart.app.SmartApplication.onCreate() (SmartApplication.java:6)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at void android.app.Instrumentation.callApplicationOnCreate(android.app.Application) (Instrumentation.java:1189)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData) (ActivityThread.java:6484)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at void android.app.ActivityThread.access$1300(android.app.ActivityThread, android.app.ActivityThread$AppBindData) (ActivityThread.java:219)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1864)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:107)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at void android.os.Looper.loop() (Looper.java:214)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7386)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:492)
07-12 13:35:56.422 F/ctric.WiserByS( 8344): java_vm_ext.cc:570] at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1072)
问题应该就是出在so库没有被访问到,但并不清楚是什么原因导致,还不知道怎么解决,希望各位提供一些帮助。