Skip to content

facing a namespace issue introduced by AGP (Android Gradle Plugin) 8+. #672

@CodeCastel7778

Description

@CodeCastel7778

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-splash-screen@3.3.0 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-splash-screen/android/build.gradle b/node_modules/react-native-splash-screen/android/build.gradle
index baef1a9..f497d60 100644
--- a/node_modules/react-native-splash-screen/android/build.gradle
+++ b/node_modules/react-native-splash-screen/android/build.gradle
@@ -10,6 +10,7 @@ def DEFAULT_TARGET_SDK_VERSION              = 26
 def DEFAULT_SUPPORT_LIB_VERSION             = "26.1.0"
 
 android {
+    namespace 'org.devio.rn.splashscreen'
     compileSdkVersion rootProject.hasProperty('compileSdkVersion') ? rootProject.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
     buildToolsVersion rootProject.hasProperty('buildToolsVersion') ? rootProject.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
 

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions