mauron85 / react-native-background-geolocation

Background and foreground geolocation plugin for React Native. Tracks user when app is running in background.
Apache License 2.0
1.33k stars 559 forks source link

android sdk 31, android exported fix #574

Open shrynshjn opened 1 year ago

shrynshjn commented 1 year ago

Fixes the issue https://github.com/mauron85/react-native-background-geolocation/issues/571. The android play store doesn't accept the app bundle otherwise

lakpriya1s commented 1 year ago

Can you help me to resolve this?

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file '/Users/lakpriyasenevirathna/Documents/Apps/CodeScale/wheresnow/node_modules/@mauron85/react-native-background-geolocation/android/lib/build.gradle' line: 29

* What went wrong:
A problem occurred evaluating project ':mauron85_react-native-background-geolocation'.
> Could not read script '/Users/lakpriyasenevirathna/Documents/Apps/CodeScale/wheresnow/node_modules/@mauron85/react-native-background-geolocation/android/common/VERSIONS.gradle' as it does not exist.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':mauron85_react-native-background-geolocation'.
> compileSdkVersion is not specified. Please add it to build.gradle