我成功构建了react-native-mailcore个示例应用程序,该应用程序使用了native mailcore2。当我将gradle版本从2.2.3更新到3.0.1时,构建成功,但是在运行时,代码如下:
SMTPSession smtpSession = new SMTPSession();
被调用,发生以下错误:
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZSt24__throw_out_of_range_fmtPKcz" referenced by "/data/app/com.inkotrack-2/lib/x86/libMailCore.so"...
at java.lang.Runtime.loadLibrary(Runtime.java:372)
at java.lang.System.loadLibrary(System.java:1076)
at com.libmailcore.MainThreadUtils.(MainThreadUtils.java:19)
at com.libmailcore.MainThreadUtils.(MainThreadUtils.java:9)
at com.libmailcore.MainThreadUtils.singleton(MainThreadUtils.java:14)
at com.libmailcore.NativeObject.(NativeObject.java:42)
at com.reactlibrary.RNMailCoreModule$1.run(RNMailCoreModule.java:41)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)