-
Notifications
You must be signed in to change notification settings - Fork 341
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
Crashing on android 11 #288
Comments
I have the same error |
Edit node_modules/react-native-background-upload/android/build.gradle b/node_modules/react-native-background-upload/android/build.gradle
Then apply the patch via npx patch-package react-native-background-upload More info at |
I can confirm the same error exists for me on Android 10 V2027 device. Following is the trace: |
Error is still happening to me Tried to add on MainApplication.java getPackages() as it says in the README but Then I get another error: |
Hi, Have you got any solution for this ? |
This is another issue, you have to delete |
I'm facing the same issue right now, @noumantahir have you been able to find a solution? |
I'm facing the same issue too, I tried
but it did not work |
@juanlaborde1895 @alfarodarwaynejay have you find the way to solved this? |
No, I am planning on creating my own upload using WebView. Something like this |
Add this to your build.gradle: then you'll probably need this fix too: |
try this patch file It'll fix the issue Reason for the 1st patch is to fix compatibility issue with Android 14see #343see #347diff --git a/node_modules/react-native-background-upload/android/build.gradle b/node_modules/react-native-background-upload/android/build.gradle
apply plugin: 'com.android.library' def DEFAULT_COMPILE_SDK_VERSION = 28
|
App is crashing on android 11 only and i got this report:
Fatal Exception: java.lang.RuntimeException: Unable to create service net.gotev.uploadservice.UploadService: java.lang.IllegalArgumentException: You have to set namespace to your app package name (context.packageName) in your Application subclass
Caused by java.lang.IllegalArgumentException: You have to set namespace to your app package name (context.packageName) in your Application subclass
at net.gotev.uploadservice.UploadServiceConfig.getNamespace
...
Kindly tell me the solution!!
The text was updated successfully, but these errors were encountered: