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

[Android]The library cannot be built on Gradle 8 #179

Open
theoduong05 opened this issue May 15, 2023 · 1 comment
Open

[Android]The library cannot be built on Gradle 8 #179

theoduong05 opened this issue May 15, 2023 · 1 comment

Comments

@theoduong05
Copy link

I recently upgraded from react-native version 0.68.2 to 0.72.0-rc3 and am experiencing issues with the react-native-background-actions library. Has anyone else experienced this issue and can provide guidance on how to fix it? Thank you in advance for your help.
Screenshot 2023-05-15 at 19 52 21

@AndriyZahura
Copy link

For anyone wondering, for me it happened after I upgraded to Gradle 8.x from 7.x
The solution was found here
TL;DR:
Put this in your general build.gradle file

subprojects {
   afterEvaluate { project ->
       if (project.hasProperty('android')) {
           project.android {
               if (namespace == null) {
                   namespace project.group
               }
           }
       }
   }
}

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