From 53ccc9ca9c1a43a803c071c9b533803514c3e117 Mon Sep 17 00:00:00 2001 From: Daniel Kochavi Date: Sat, 26 Oct 2024 03:54:59 +0300 Subject: [PATCH] chore: Update AndroidManifest.xml to support AGP > 8 (#244) When building with Gradle > 8 we get this error: ``` Execution failed for task ':@react-native-community_clipboard:processDebugManifest'. > A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction > Incorrect package="com.reactnativecommunity.clipboard" found in source AndroidManifest.xml: /node_modules/@react-native-community/clipboard/android/src/main/AndroidManifest.xml. Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported. Recommendation: remove package="com.reactnativecommunity.clipboard" from the source AndroidManifest.xml: node_modules/@react-native-community/clipboard/android/src/main/AndroidManifest.xml. ``` I removed this line: `package="com.reactnativecommunity.clipboard` and the error went away. --- android/src/main/AndroidManifest.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index e81b06af..5f5d7a23 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -1,5 +1,4 @@ - +