I am trying to build my app for Android and targeting Android API 28. But since I have updated a library dependency my app builds fail with the following error:
AAPT: error: attribute android:foregroundServiceType not found.
I have read that for some services(eg. location services) on Android Q(API 29) the user has to specify the type of foreground service for the permissions to work correctly, but I'm targeting API 28 and my AndroidManifest.xml doesn't contain that code.
The library I am using is Shake(https://shakebugs.com/):
implementation 'com.shakebugs.android:shake:13.0.1'
I have used an older version(12.0.3) of the library and there wasn't this issue.
Any help would be appreciated.