build conncetion error

0

AwsIotMqttConnectionBuilder builder = AwsIotMqttConnectionBuilder.newMtlsBuilderFromPath(Config.certPemPath, Config.certPrivateKeyPemPath);

构建连接报错

Unable to unpack AWS CRT lib: java.io.IOException: Unable to open library in jar for AWS CRT: /linux/armv8/glibc/libaws-crt-jni.so 2023-08-23 18:57:43.278 4735-4735 System.err com.redin.deviceserver W java.io.IOException: Unable to open library in jar for AWS CRT: /linux/armv8/glibc/libaws-crt-jni.so 2023-08-23 18:57:43.282 4735-4735 System.err com.redin.deviceserver W at software.amazon.awssdk.crt.CRT.extractAndLoadLibrary(CRT.java:306) 2023-08-23 18:57:43.284 4735-4735 System.err com.redin.deviceserver W at software.amazon.awssdk.crt.CRT.loadLibraryFromJar(CRT.java:358) 2023-08-23 18:57:43.287 4735-4735 System.err com.redin.deviceserver W at software.amazon.awssdk.crt.CRT.<clinit>(CRT.java:41) 2023-08-23 18:57:43.290 4735-4735 System.err com.redin.deviceserver W at software.amazon.awssdk.crt.CrtResource.<clinit>(CrtResource.java:104) 2023-08-23 18:57:43.293 4735-4735 System.err com.redin.deviceserver W at software.amazon.awssdk.iot.AwsIotMqttConnectionBuilder.newMtlsBuilderFromPath(AwsIotMqttConnectionBuilder.java:105) 2023-08-23 18:57:43.296 4735-4735 System.err com.redin.deviceserver W at com.redin.deviceserver.services.ShadowService.onCreate(ShadowService.java:57) 2023-08-23 18:57:43.299 4735-4735 System.err com.redin.deviceserver W at android.app.ActivityThread.handleCreateService(ActivityThread.java:4555) 2023-08-23 18:57:43.301 4735-4735 System.err com.redin.deviceserver W at android.app.ActivityThread.access$1700(ActivityThread.java:257) 2023-08-23 18:57:43.304 4735-4735 System.err com.redin.deviceserver W at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2111) 2023-08-23 18:57:43.306 4735-4735 System.err com.redin.deviceserver W at android.os.Handler.dispatchMessage(Handler.java:106) 2023-08-23 18:57:43.309 4735-4735 System.err com.redin.deviceserver W at android.os.Looper.loopOnce(Looper.java:201) 2023-08-23 18:57:43.311 4735-4735 System.err com.redin.deviceserver W at android.os.Looper.loop(Looper.java:288) 2023-08-23 18:57:43.314 4735-4735 System.err com.redin.deviceserver W at android.app.ActivityThread.main(ActivityThread.java:7911) 2023-08-23 18:57:43.316 4735-4735 System.err com.redin.deviceserver W at java.lang.reflect.Method.invoke(Native Method) 2023-08-23 18:57:43.318 4735-4735 System.err com.redin.deviceserver W at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 2023-08-23 18:57:43.321 4735-4735 System.err com.redin.deviceserver W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1009)

  • Hi. Can you please amend your question, or add a comment, saying what version of the SDK you're using, whether you built it yourself, and what OS?

feiying
已提問 8 個月前檢視次數 48 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南