error android api 34 java.lang.RuntimeException: Unable to create service org.altbeacon.beacon.service.BeaconService: android.app.MissingForegroundServiceTypeException: Starting FGS without a type callerApp=ProcessRecord
在建置API34 時 出現java.lang.RuntimeException: Unable to create service org.altbeacon.beacon.service.BeaconService: android.app.MissingForegroundServiceTypeException: Starting FGS without a type callerApp=ProcessRecord
在manifest 新增
<service
android:name="org.altbeacon.beacon.service.BeaconService"
android:foregroundServiceType="location" />
留言
張貼留言