@awesome-cordova-plugins/background-geolocation android-permissions error

I am getting error in Ionic 6 in awesome-cordova-plugins/background-geolocation in android while build.
What went wrong:
Execution failed for task ‘:app:mergeDebugResources’.

Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’.
Could not find com.intentfilter:android-permissions:0.1.7.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/intentfilter/android-permissions/0.1.7/android-permissions-0.1.7.pom
- https://repo.maven.apache.org/maven2/com/intentfilter/android-permissions/0.1.7/android-permissions-0.1.7.pom
Required by:
project :app

You need to make sure you’re searching the jcenter repository. Try adding this repository entry to your root build.gradle:

Thanks max. But this plugin doesn’t works in ionic 6 it gives me a lot of errors.does anyone has some idea about this please write me here. First it shows icon error and when we fix that it shows its gives error of http and if we fix that it shows android permissions error too

I have the same issue. Unable to complete the build because it exits with the same error. Any updates on how to fix this?

1 Like

I have same issue! Did you find any solution for this ?

Please use this plugin it will work perfectly

1 Like

Hi Ivin1992! I am currently working on a project which I need to use background geolocation with Ionic 6 and I tried @mauron85/cordova-plugin-background-geolocation I got the same error the guys listed. Can you guide me please.