React-native-background-geolocation: Source option 6 is no longer supported. Use 7 or later.

Created on 1 Aug 2019  路  7Comments  路  Source: mauron85/react-native-background-geolocation


Your Environment


  • Plugin version: ^0.5.3
  • Platform: Android
  • OS version: 5.0
  • Running in Simulator: Yes
  • React Native version: 0.60.4

Context

  • new react project lastest version (0.60.4)
  • yarn install current plugin
  • react-native link not working
  • try manual instalation
    must i edit(downgrade) build version?

Expected Behavior

Successful debug and build

Actual Behavior

> Task :@mauron85_react-native-background-geolocation-common:compileDebugJavaWithJavac FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings
16 actionable tasks: 14 executed, 2 up-to-date
error: Source option 6 is no longer supported. Use 7 or later.
error: Target option 6 is no longer supported. Use 7 or later.

FAILURE: Build failed with an exception.

Possible Fix

is support 0.60 autolink ?

enhancement good first issue help wanted

Most helpful comment

This need to be addressed

All 7 comments

Getting the same error. Did you manage to fix it? @sefatunckanat

@sefatunckanat by removing these compile options from react-native-background-geolocation-common build gradle solved my issue. See photo here

@sefatunckanat by removing these compile options from react-native-background-geolocation-common build gradle solved my issue. See photo here

waoh !! thanks for help

Fix

node_modules/@mauron85/react-native-background-geolocation/android/common/build.gradle
delete line 117 & 118 @Baivaras

compileOptions {
        // sourceCompatibility JavaVersion.VERSION_1_6
        // targetCompatibility JavaVersion.VERSION_1_6
}

I don't think there is a permanent solution yet.

This need to be addressed

@mauron85 I added a PR in your Common repo for this.

FYI: sourceCompatibility was removed in recent commits.

Was this page helpful?
0 / 5 - 0 ratings