AlexLiuSheng / CheckVersionLib

版本检测升级(更新)库。an auto check version library(app update) on Android
https://github.com/AlexLiuSheng/CheckVersionLib
2.66k stars 483 forks source link

Android 14下崩溃 #363

Open joydance opened 4 months ago

joydance commented 4 months ago

java.lang.RuntimeException: Unable to start service com.allenliu.versionchecklib.v2.ui.VersionService@451f213 with Intent { cmp=com.hdaniee.hdaniee.android/com.allenliu.versionchecklib.v2.ui.VersionService }: android.app.MissingForegroundServiceTypeException: Starting FGS without a type callerApp=ProcessRecord{9219a09 3466:com.hdaniee.hdaniee.android/u0a340} targetSDK=34

Android 14下有新的权限要求: https://developer.android.com/about/versions/14/changes/fgs-types-required#permission-for-fgs-type