Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal State Exception Android App Crash #30

Open
aravind3566 opened this issue Oct 30, 2024 · 2 comments
Open

Illegal State Exception Android App Crash #30

aravind3566 opened this issue Oct 30, 2024 · 2 comments

Comments

@aravind3566
Copy link

aravind3566 commented Oct 30, 2024

The app crashes with an IllegalStateException under specific conditions, causing unexpected behavior and user disruption. This issue appears to occur when while opening the app. Not getting issue while debugging only on release version.,

Environment :
"react": "18.2.0"
"react-native": "0.74.5"
"@kesha-antonov/react-native-background-downloader": "^3.2.1"

Tested on Android 13 and above

Screenshot_2024-10-30-09-41-16-820_com miui bugreport

@HyopeR
Copy link
Contributor

HyopeR commented Nov 7, 2024

If you are using Proguard or R8, you need to perform an additional step in your project. This is documented in the "Readme" file. Have you tried this? @aravind3566

Additionally, this pull request #31 may solve the issue you are experiencing here. Please try the repository in this pull request and report it.

@aravind3566
Copy link
Author

aravind3566 commented Nov 8, 2024

Proguard

@HyopeR i used this lines on Proguard., resolved now.,

-keep class com.eko.RNBackgroundDownloaderModule { ; }
-keep class com.tonyodev.fetch2.
* { ; }
-keep class com.tonyodev.fetch2core.
* { *; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants