React-native-geolocation-service: Error: cannot find symbol class ActivityCompat

Created on 18 Jul 2019  Â·  15Comments  Â·  Source: Agontuk/react-native-geolocation-service

platform: Android
RNversion: 0.59.10
react-native-geolocation-service: 2.0.1

build.gradle dependencies

image

Error

image

Most helpful comment

npx jetify workaround works like a charm.
Wish RN 0.60 fix will land soon. Thank you. ☺

All 15 comments

any update?

same error ..

Also getting this error

the same. It is the first library I need to integrate and I do it on a fresh react-native starter app. It works perfectly fine on iOS but cannot find any workaround for android. Any suggestion?

I've a fix for this in rn60 branch. WIll merge it in master and do a new release as soon as possible.

Merge it!

New version is available, so closing this issue.

On another note, if you're using RN 0.59 or below, don't use play-services-location greater than 16.0.0 because the later versions have breaking changes.

still facing it

I'm also facing the same issue,I'm using version 3.0.0

@Agontuk That fix doesn't seem to be merged to master yet. Can you take a look?

@Agontuk I am also facing this issue, using RN 0.60; v3.0.0

I haven't done any extra manual installation as mentioned in the readme.

can you please let us know if it was actually merged to master?

Thank you for your time!

EDIT: I had to run npx jetify , now it is working fine.

@Agontuk could you please merge this commit of yours on branch rn60-fix? Is there any reason not to do so?

https://github.com/Agontuk/react-native-geolocation-service/commit/748bd6721e26b4400139f2973d477326eee382bd

@jmhinric , are you using play-services-location version greater than 16.0.0 ? Currently master branch is working fine even without this fix.

@Agontuk I got it working- like the previous comment, it was the npx jetify. Thanks!

npx jetify workaround works like a charm.
Wish RN 0.60 fix will land soon. Thank you. ☺

Was this page helpful?
0 / 5 - 0 ratings