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

Cannot install on 0.73.4 #30

Open
danielzzz opened this issue Feb 29, 2024 · 1 comment
Open

Cannot install on 0.73.4 #30

danielzzz opened this issue Feb 29, 2024 · 1 comment

Comments

@danielzzz
Copy link

danielzzz commented Feb 29, 2024

Hello, I am trying to install in in a new project but it won't compile.

any idea of how to configure this? not very proficient in java to dig into it

thanks in advance!
dan

Your Environment

  • Plugin version: 0.6.17
  • Platform: iOS or Android
  • OS version: 13 android
  • Device manufacturer and model: xiaomi
  • Running in Simulator: no
  • React Native version: 0.73.4

Context

trying to add it to a new project

Expected Behavior

it would compile at least

Actual Behavior

./gradlew assembleRelease

> Configure project :
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable
Path for java installation '/usr/lib/jvm/openjdk-11' (Common Linux Locations) does not contain a java executable

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file 'full_path/node_modules/@darron1217/react-native-background-geolocation/android/lib/build.gradle' line: 29

* What went wrong:
A problem occurred evaluating project ':darron1217_react-native-background-geolocation'.
> Could not read script 'full_path/node_modules/@darron1217/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.
> Get more help at https://help.gradle.org.
==============================================================================

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

* 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.
> Get more help at https://help.gradle.org.
==============================================================================

BUILD FAILED in 2s

Steps to Reproduce

  1. install
  2. cd android; ./gradlew assembleRelease
@karol-maciaszek
Copy link

@danielzzz here is a workaround that may help you:

git clone https://github.com/darron1217/background-geolocation-android node_modules/@darron1217/react-native-background-geolocation/android/common

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants