microsoft / react-native-code-push

React Native module for CodePush
http://appcenter.ms
Other
8.99k stars 1.48k forks source link

Android build.gradle namespace on AGP 8 #2743

Closed Axiivy-Jaeseok closed 2 months ago

Axiivy-Jaeseok commented 2 months ago

Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):

Steps to Reproduce

Hello, I received a notification from Google requiring me to update the TargetSDK of my Android app to version 34. To comply with this, I migrated my Gradle version from 7 to 8. However, I encountered a namespace error during the process. Upon investigation, I found that AGP 8 requires the namespace to be explicitly defined in the android section of the build.gradle file. The other SDKs I am using manage this by conditionally defining the namespace based on the Gradle version. As a temporary fix, I manually defined and added the namespace, as shown in the attached image. I’m wondering if there are any plans to address this issue in a future update.

Thank you for your attention.

Expected Behavior

What you expected to happen?

Actual Behavior

What actually happens?

  STACK TRACE AND/OR SCREENSHOTS

스크린샷 2024-08-28 오후 1 11 36

Reproducible Demo

Environment

(The more info the faster we will be able to address it!)

MikhailSuendukov commented 2 months ago

Hello! Thank you for reaching out to us. We will fix this issue and will keep you updated as soon as we have more details.

Axiivy-Jaeseok commented 2 months ago

@MikhailSuendukov

Thank you for your support! I appreciate your quick response and efforts to resolve the issue. I’ll close this issue.

burakkgunduzz commented 2 months ago

I have the same problem and I hope the package maintainers update it quickly because 31th of this month is the last day. However, @Axiivy-Jaeseok did you manually add from node_modules/react-native-code-push/...?

Axiivy-Jaeseok commented 2 months ago

@burakkgunduzz

Yes, I manually add namespace from node_modules/react-native-code-push/build.gradle

sanjeevyadavIT commented 2 months ago

@Axiivy-Jaeseok are you having trouble in creating build or crash is happening on App?

MikhailSuendukov commented 2 months ago

We have successfully merged a pull request addressing this issue. The fix will be included in the upcoming release.

MikhailSuendukov commented 2 months ago

A fix for this issue was released with the AppCenter SDK ReactNative v9.0.0, so I'm closing this issue.