System:
OS: macOS 14.5
CPU: (10) arm64 Apple M1 Pro
Memory: 82.78 MB / 16.00 GB
Shell:
version: 3.2.57
path: /bin/bash
Binaries:
Node:
version: 21.7.0
path: /opt/homebrew/bin/node
Yarn:
version: 1.22.22
path:
npm:
version: 10.5.0
path: /opt/homebrew/bin/npm
Watchman:
version: 2024.01.22.00
path: /opt/homebrew/bin/watchman
Managers:
Android SDK: Not Found
IDEs:
Android Studio: 2024.1 AI-241.18034.62.2411.12071903
Languages:
Java:
version: 19.0.1
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.15
wanted: 0.72.15
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: false
newArchEnabled: false
Platforms
Android
Versions
Android: Gradle 8.2.2, compile SDK 34
react-native-geolocation: 3.3.0
react-native: 0.72.15
react: 18.2.0
Description
Gradle 8 requires a namespace to be declared in the build.gradle file.
Android studio build error:
"FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':react-native-community_geolocation'.
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."
Reproducible Demo
Add react-native-geolocation 3.3.0 to a react-native project where the Android platform leverages Gradle 8. Attempt to sync / build project.
Environment
System: OS: macOS 14.5 CPU: (10) arm64 Apple M1 Pro Memory: 82.78 MB / 16.00 GB Shell: version: 3.2.57 path: /bin/bash Binaries: Node: version: 21.7.0 path: /opt/homebrew/bin/node Yarn: version: 1.22.22 path: npm: version: 10.5.0 path: /opt/homebrew/bin/npm Watchman: version: 2024.01.22.00 path: /opt/homebrew/bin/watchman Managers: Android SDK: Not Found IDEs: Android Studio: 2024.1 AI-241.18034.62.2411.12071903 Languages: Java: version: 19.0.1 path: /usr/bin/javac Ruby: version: 2.6.10 path: /usr/bin/ruby npmPackages: "@react-native-community/cli": Not Found react: installed: 18.2.0 wanted: 18.2.0 react-native: installed: 0.72.15 wanted: 0.72.15 react-native-macos: Not Found npmGlobalPackages: "react-native": Not Found Android: hermesEnabled: false newArchEnabled: false
Platforms
Android
Versions
Description
Gradle 8 requires a namespace to be declared in the build.gradle file.
Android studio build error: "FAILURE: Build failed with an exception.
Reproducible Demo
Add react-native-geolocation 3.3.0 to a react-native project where the Android platform leverages Gradle 8. Attempt to sync / build project.