Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add namespace to build.gradle so that Gradle can build #561

Open
UgurGumushan opened this issue Jun 21, 2024 · 2 comments
Open

Add namespace to build.gradle so that Gradle can build #561

UgurGumushan opened this issue Jun 21, 2024 · 2 comments

Comments

@UgurGumushan
Copy link

Resolves:

> Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
   > Namespace not specified. Specify a namespace in the module's build file: /Users/ugurgumushan/code/kontist/app/node_modules/react-native-appsflyer/android/build.gradle. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

Gradle 8.7
Android Gradle plugin 8.5
Kotlin 2.0.0

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-appsflyer/android/build.gradle b/node_modules/react-native-appsflyer/android/build.gradle
index 7d44b32..eaae633 100755
--- a/node_modules/react-native-appsflyer/android/build.gradle
+++ b/node_modules/react-native-appsflyer/android/build.gradle
@@ -20,6 +20,7 @@ buildscript {
 apply plugin: 'com.android.library'
 
 android {
+    namespace "com.appsflyer.reactnative"
     compileSdkVersion safeExtGet('compileSdkVersion', 28)
     buildToolsVersion safeExtGet('buildToolsVersion', '29.0.2')
 

This issue body was partially generated by patch-package.

Copy link

👋 Hi @UgurGumushan and Thank you for reaching out to us.
In order for us to provide optimal support, please submit a ticket to our support team at [email protected].
When submitting the ticket, please specify:

  • ✅ your AppsFlyer sign-up (account) email
  • ✅ app ID
  • ✅ production steps
  • ✅ logs
  • ✅ code snippets
  • ✅ and any additional relevant information.

@sierrakn
Copy link

We're also running into this now that we need to use Gradle 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants