1

Xamarin Android アプリに SightCall SDK を統合しようとしています。Java Binding Library プロジェクトを作成し、Jars フォルダーを作成して、その中に rtcc jar (Embedded Jar) を配置し、libs フォルダーと、それぞれに libRtcc-6.2.1 を含む armeabi、armeabi-v7a、および x86 フォルダーを作成しました。 so (組み込みネイティブ ライブラリ) ファイル。このプロジェクトをビルドし、dll を生成しました。次に、Android アプリケーションを作成し、Java Binding Library プロジェクトの bin\Release フォルダーにある dll をプロジェクトの参照として追加しました。メソッドを呼び出して SightCall を統合しようとしましたが、次Java.Lang.ExceptionInInitializerErrorの行でRtcc.Initialize (appId, context); エラーが発生しています これは私が取得している例外です:

Java.Lang.ExceptionInInitializerError: 
  at at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <IL 0x00011, 0x00047>
  at Android.Runtime.JNIEnv.CallStaticVoidMethod (intptr,intptr,Android.Runtime.JValue[]) [0x00063] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/49a04b96/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:1457
  at at Net.Rtccloud.Sdk.Rtcc.Initialize (string,Android.Content.Context) <IL 0x0006d, 0x001e3>
  at SightCalIntegrationSample.MainActivity.initialize (string,Android.Content.Context) [0x00001] in c:\Users\user\Documents\Projects\SightCalIntegrationSample\SightCalIntegrationSample\MainActivity.cs:53
  at SightCalIntegrationSample.MainActivity.OnCreate (Android.OS.Bundle) [0x00015] in c:\Users\user\Documents\Projects\SightCalIntegrationSample\SightCalIntegrationSample\MainActivity.cs:42
  at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) [0x00011] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/49a04b96/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Android.App.Activity.cs:2380
  at at (wrapper dynamic-method) object.d67c6fda-10b4-40fc-bd75-841cbe5807f7 (intptr,intptr,intptr) <IL 0x00017, 0x0001f>
  at --- End of managed exception stack trace ---
  at java.lang.ExceptionInInitializerError
  at at net.rtccloud.sdk.Rtcc.initialize(Unknown Source)
  at at sightcalintegrationsample.MainActivity.n_onCreate(Native Method)
  at at sightcalintegrationsample.MainActivity.onCreate(MainActivity.java:30)
  at at android.app.Activity.performCreate(Activity.java:5937)
  at at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
  at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
  at at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
  at at android.app.ActivityThread.access$800(ActivityThread.java:144)
  at at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
  at at android.os.Handler.dispatchMessage(Handler.java:102)
  at at android.os.Looper.loop(Looper.java:135)
  at at android.app.ActivityThread.main(ActivityThread.java:5221)
  at at java.lang.reflect.Method.invoke(Native Method)
  at at java.lang.reflect.Method.invoke(Method.java:372)
  at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
  at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
  at Caused by: net.rtccloud.sdk.exception.RtccRuntimeException: Unable to load native library
  at at ****.****(Unknown Source)
  at ... 16 more

手順が不足しているかどうか、およびこの問題を修正する方法を教えてください。

4

0 に答える 0