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

Android Gradle 8 compatibility #324

Open
nhoffmann-fts opened this issue Jul 29, 2024 · 0 comments
Open

Android Gradle 8 compatibility #324

nhoffmann-fts opened this issue Jul 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nhoffmann-fts
Copy link
Contributor

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

  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant