Skip to content

Commit

Permalink
chore: Update AndroidManifest.xml to support AGP > 8 (#244)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kochavi-daniel authored Oct 26, 2024
1 parent 0cc14f3 commit 53ccc9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.reactnativecommunity.clipboard">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

</manifest>

0 comments on commit 53ccc9c

Please sign in to comment.