michalchudziak / react-native-geolocation

Geolocation APIs for React Native
MIT License
1.3k stars 226 forks source link

Android Gradle 8 compatibility #324

Open nhoffmann-fts opened 1 month ago

nhoffmann-fts commented 1 month ago

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.