react-native-clipboard / clipboard

React Native Clipboard API for both iOS and Android.
MIT License
669 stars 118 forks source link

chore: Update AndroidManifest.xml to support AGP > 8 #244

Open kochavi-daniel opened 1 month ago

kochavi-daniel commented 1 month ago

Overview

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.

Test Plan

I removed this line: package="com.reactnativecommunity.clipboard and the error went away.

poojagirne commented 1 month ago

Same issue