Skip to content
New issue

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

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

Already on GitHub? # to your account

Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported #655

Open
VikasReactNative opened this issue Oct 12, 2024 · 3 comments

Comments

@VikasReactNative
Copy link

VikasReactNative commented Oct 12, 2024

Task :react-native-splash-screen:processDebugManifest
package="org.devio.rn.splashscreen" found in source AndroidManifest.xml: C:\Users\shahv\Documents\Divinecart-Mobile\node_modules\react-native-splash-screen\android\src\main\AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="org.devio.rn.splashscreen" from the source AndroidManifest.xml: C:\Users\shahv\Documents\Divinecart-Mobile\node_modules\react-native-splash-screen\android\src\main\AndroidManifest.xml.
image

{
"name": "Divinecart",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint .",
"start": "react-native start",
"test": "jest"
},
"dependencies": {
"@react-native-firebase/app": "^21.0.0",
"@react-native-firebase/messaging": "^21.0.0",
"react": "18.3.1",
"react-native": "0.75.4",
"react-native-splash-screen": "^3.3.0",
"react-native-webview": "^13.12.3"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native/babel-preset": "0.75.4",
"@react-native/eslint-config": "0.75.4",
"@react-native/metro-config": "0.75.4",
"@react-native/typescript-config": "0.75.4",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-test-renderer": "18.3.1",
"typescript": "5.0.4"
},
"engines": {
"node": ">=18"
}
}

@VikasReactNative
Copy link
Author

solution work for me

node_modules\react-native-splash-screen\android\build.gradle
add-> namespace 'org.devio.rn.splashscreen'
node_modules\react-native-splash-screen\android\src\main\AndroidManifest.xml
remove package="org.devio.rn.splashscreen"

@Elozino
Copy link

Elozino commented Nov 4, 2024

Mine isn't even building

@fynally
Copy link

fynally commented Dec 26, 2024

namespace 'org.devio.rn.splashscreen'

Please area inside the build.gradle exactly is this gonna go?

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

No branches or pull requests

3 participants