简体   繁体   English

Android 应用程序在打开 paytm 默认活动时崩溃。 Caused by: java.lang.IllegalStateException: Expected Android API level 21+ 但为 30

[英]Android app is crashing on while opening paytm default activity. Caused by: java.lang.IllegalStateException: Expected Android API level 21+ but was 30

My app is working fine for the android versions upto 10. It is also working fine for android 11 in in most of the devices except Samsung with android version 11. App is crashing while I am clicking on the Paytm with exception.我的应用程序适用于 android 版本最高 10。在大多数设备中它也适用于 android 11,除了三星的 android 版本 11。当我点击 Paytm 时,应用程序崩溃了。 Logs are as below -日志如下——

Caused by: java.lang.IllegalStateException: Expected Android API level 21+ but was 30
ActivityTaskManager:   Force finishing activity com.paytm.pgsdk.PaytmPGActivity

I have found the solution for this issue.我找到了这个问题的解决方案。 I updated okhttp libraries to latest versions and crash is resolved.我将 okhttp 库更新到最新版本并解决了崩溃问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Nativescript 崩溃“预期 Android API 级别 21+ 但为 30” - Nativescript crashes "Expected Android API level 21+ but was 30" 预期 Android API 级别 21+,但使用 Retrofit 2、OkHttp3 时为 19 - Expected Android API level 21+ but was 19 while using Retrofit 2, OkHttp3 android.app.Activity.performResume中的java.lang.IllegalStateException - java.lang.IllegalStateException in android.app.Activity.performResume Android应用程式java.lang.IllegalStateException错误 - Android app java.lang.IllegalStateException error Android中的java.lang.IllegalStateException - java.lang.IllegalStateException In Android 单击按钮后应用程序崩溃 - java.lang.IllegalStateException:无法执行 android 的方法:onClick - App crashing after clicking Button- java.lang.IllegalStateException: Could not execute method for android:onClick Android,java.lang.IllegalStateException - Android, java.lang.IllegalStateException Android 9 上的 java.lang.IllegalStateException - java.lang.IllegalStateException on Android 9 应用程序崩溃原因:java.lang.IllegalStateException:到目前为止没有成功匹配 - App is crashing Caused by: java.lang.IllegalStateException: No successful match so far java.lang.IllegalStateException:片段未附加到android中的Activity问题 - java.lang.IllegalStateException: Fragment not attached to Activity issue in android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM