appsflyer-react-native-plugin
appsflyer-react-native-plugin copied to clipboard
Add namespace to build.gradle so that Gradle can build
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.
π 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.
We're also running into this now that we need to use Gradle 8
Fixed in v6.16.2.