-
Notifications
You must be signed in to change notification settings - Fork 565
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
[ANDROID] Not working when following the instructions + SOLUTION #468
Comments
I too ran into the VERSIONS.gradle issue in the common module. I opened a PR there that you can reference. Hoping it can get resolved soon (mauron85/background-geolocation-android#41) |
@mysport12 Do you think these two are related? I think androidX support is lacking so the patch seems more reasonable to me. Unless I'm missing something, in which case I'm curious how I can test what you're proposing in your PR? |
@Daavidaviid Could you make this into a PR? Patches work but PRs are better 😄 |
@mauron85 I've run the patch and verified that it works. |
I made a patch because the |
Hi @Daavidaviid
|
@mikadze I updated the patches in my first post (I messed up by removing the |
For me the only issue was in VERSIONS.gradle. I had no other build issues and didn’t need to patch anything else |
@Daavidaviid first post was last edited 1 hour ago. I tried that version. Did you make edit since then? |
I did but here it is :
|
Still not working for me, but thanks anyways I will try manually. |
I made 2 PR, one concerning the main repo and the other one the submodule. |
@mauron85 Need help with this lib (/ these libs)? They're important to my apps and I really prefer not forking anything. |
Any updates about it ? I'm getting a error too, just with VERSIONS.gradle ... |
I could solve it just putting a couple point before else if (findProject(':app') != null) {
applicationId = project(':app').android.defaultConfig.applicationId After: (it's work) else if (findProject('..:app') != null) {
applicationId = project('..:app').android.defaultConfig.applicationId |
I can confirm this small edit works. or just remove the whole else if statement below also work.
|
Does anybody know version of the ReactNative when this starts happening? |
I believe it began with RN0.62.0. I was able to work around the issue for now using the manual linking. I have also been able to work around the issue with the VERSIONS.gradle file changes proposed |
I'm facing this in |
@mauron85 it will start happening on 0.60.0 or above if i am not wrong |
@mauron85 are you still maintaining the repo's? |
@mauron85 I working on 0.62.2. |
Worked at RN 0.61.5, broke when I updated to RN 0.62.2. Rollback to RN 0.61.5 fixed the problem. |
Package version :
I see autolinking doesn't complete setup. $ yarn add @mauron85/react-native-background-geolocation
$ node ./node_modules/@mauron85/react-native-background-geolocation/scripts/postlink.js Solution is follow manual doc and make sure all things are there. For me, Cheers |
After following the steps here, I'm facing this other error while trying to build for release if anyone can help me on this (I've tried many different things already): #505 |
Not sure if this will help anyone but I tried a couple things which one helped
inside android folder inside my build.gradle in android I had multiple commands inside of maven {} - I moved each into their own maven {} statement https://stackoverflow.com/questions/49542654/react-native-error-cannot-find-symbol-after-upgrade Also I changed from:
to
Again not sure what was the fix, but I think it might have been the maven piece |
Hello! |
Worked for me with this thanks @marcoburrometo |
Your Environment
Context
Not working on android after following the instructions, ie :
yarn add @mauron85/react-native-background-geolocation
node ./node_modules/@mauron85/react-native-background-geolocation/scripts/postlink.js
Expected Behavior
The app is now able to use background geolocation and build correctly and not crash
Actual Behavior
Build fails.
Possible Fix
I think jetifier was not picking up the common module. So I migrated everything to androidx using Android Studio. And also in the file
VERSION.gradle
there was an issue with getApplicationId that I fixed too.You can use the package
patch-package
.And then apply this patch
patches/@mauron85+react-native-background-geolocation+0.6.3.patch
:Steps to Reproduce
Context
Add background geolocation to my app.
Debug logs
The text was updated successfully, but these errors were encountered: