0
maven central depencdency를 사용하여 기본 적응 형 카드 예제를 실행하려고하지만 native 메소드 impl이 발견되지 않아 오류가 발생했습니다.android에서 AdaptiveCard 네이티브 메소드를 찾을 수 없습니다.
나는이 내 build.gradle에 종속성을 추가 :이 오류가
compile 'io.adaptivecards:adaptivecards-android-arm:1.0.0'
: 내가 생성 된 APK 확인했다
11-13 18:19:55.944 16684-16970 E/zygote: No implementation found for long com.microsoft.adaptivecards.objectmodel.AdaptiveCardObjectModelJNI.AdaptiveCard_DeserializeFromString(java.lang.String) (tried Java_com_microsoft_adaptivecards_objectmodel_AdaptiveCardObjectModelJNI_AdaptiveCard_1DeserializeFromString and Java_com_microsoft_adaptivecards_objectmodel_AdaptiveCardObjectModelJNI_AdaptiveCard_1DeserializeFromString__Ljava_lang_String_2)
11-13 18:19:55.945 16684-16684 D/AndroidRuntime: Shutting down VM
11-13 18:19:55.949 16684-16684 E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.tuenti.messenger, PID: 16684
java.lang.UnsatisfiedLinkError: No implementation found for long com.microsoft.adaptivecards.objectmodel.AdaptiveCardObjectModelJNI.AdaptiveCard_DeserializeFromString(java.lang.String) (tried Java_com_microsoft_adaptivecards_objectmodel_AdaptiveCardObjectModelJNI_AdaptiveCard_1DeserializeFromString and Java_com_microsoft_adaptivecards_objectmodel_AdaptiveCardObjectModelJNI_AdaptiveCard_1DeserializeFromString__Ljava_lang_String_2)
at com.microsoft.adaptivecards.objectmodel.AdaptiveCardObjectModelJNI.AdaptiveCard_DeserializeFromString(Native Method)
at com.microsoft.adaptivecards.objectmodel.AdaptiveCard.DeserializeFromString(AdaptiveCard.java:105)
가와에 포함 된 SO 적응 카드 만 여전히 작동하지 않습니다.
API에 액세스하기 전에 정적 ctor를 추가하여 도움이 될 수 있습니까? 'static {System.loadLibrary ("adaptivecards-native-lib"); }' https://github.com/Microsoft/AdaptiveCards/blob/master/source/android/mobile/src/main/java/com/microsoft/adaptivecards/adaptivecardssample/MainActivityAdaptiveCardsSample.java#L45-L47 –
예, 이었다. 답변을 게시하고 동의합니다. – colymore