简体   繁体   中英

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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM