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
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