React-native-background-geolocation: cannot install latest on android

Created on 10 Apr 2018  路  19Comments  路  Source: mauron85/react-native-background-geolocation

Your Environment

  • Plugin version:
  • Platform: iOS or Android
  • OS version:
  • Device manufacturer and model:
  • React Native version:
  • Plugin configuration options:
  • Link to your project:

Context


Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :react-native-mauron85-background-geolocation-common.

Expected Behavior

Actual Behavior

Possible Fix

Steps to Reproduce


  1. Link all modules manually
    2.
    3.
    4.

Context

Debug logs

duplicate gradle

Most helpful comment

All 19 comments

Looks like there is a issue with the common folder not being resolved correctly.

Received this issue

All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com/r/tools/flavorDimensions-missing-error-message.html

just run react-native link react-native-mauron85-background-geolocation it should do the job

negative @mauron85 getting some issues with the referencing of :app

@jeffreymendez1993 if you have this flavor issue related to gradle3, then please wait I'm working on it.

@mauron85 downgraded my gradle I think I got it working now. Issue is with firebase. Try using firebase and gmaps together on a install and tell me if its painless haha. Also perks on gradle 3 the builds are drastically faster, but I guess not everyone is ready yet for it.

Could not get unknown property 'android' for project ':app' of type org.gradle.api.Project.
is the boss I am trying to beat now.

@jeffreymendez1993 that sound like project related

not sure why I cant easily install this module on android. I used a older version that was compatible with my newer gradle that worked locally but then I cannot build it to production. @mauron85

removed the package and my project built for release just perfect. I guess ill sit tight until the gradle changes are in there. If I was better at java id help.

I'm having the same issue. Firebase made breaking changes to use gradle 3 about 18 days ago.

I'm trying to use this library with push messaging from Firebase, but am forced to use Gradle 3 to get that installed, which is forcing me into the same problem @jeffreymendez1993 and @gtaylor44 are having. Which is a long-winded way of saying, +1 to getting this fixed. Thanks for your work, @mauron85!

I am also using firebase, which as forced me up to gradle 3, but would love to use this lib. It's looks like exactly what we need, since transistorsoft's lib was a bit too controlling with regards to letting us have access to the raw provider etc. Dropping this thread a +1 so I can get a notification if this Gradle 3 problem gets resolved :)

If we want to fix this ourselves, where should we be looking?

FYI: just added experimental support for gradle3. See https://github.com/mauron85/react-native-background-geolocation/issues/176#issuecomment-392015665

Marking as duplicate of #176. Closing. Let's continue discussion there.

Was this page helpful?
0 / 5 - 0 ratings