2019-07-24 15:35:40.385 18490-18490/com.adojayfan.rntest E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.adojayfan.rntest, PID: 18490
java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:696)
at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:659)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:552)
at androidx.appcompat.app.AppCompatDialog.setContentView(AppCompatDialog.java:95)
at androidx.appcompat.app.AlertController.installContent(AlertController.java:232)
at androidx.appcompat.app.AlertDialog.onCreate(AlertDialog.java:279)
at android.app.Dialog.dispatchOnCreate(Dialog.java:407)
at android.app.Dialog.show(Dialog.java:302)
at com.adojayfan.rntest.utils.UiTools.showAlertDialog(UiTools.java:266)
at com.adojayfan.rntest.MainActivity$MyWebChromeClient.onJsConfirm(MainActivity.java:116)
at com.tencent.smtt.sdk.f.onJsConfirm(SmttWebChromeClient.java:149)
at com.tencent.tbs.core.webkit.tencent.TencentWebChromeClient.onJsConfirm(TbsJavaCore:159)
at android.webview.chromium.WebViewContentsClientAdapter.handleJsConfirm(TbsJavaCore:889)
at org.chromium.android_webview.AwContentsClientBridge$4.run(TbsJavaCore:260)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6823)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)