跳到主要內容

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


留言

這個網誌中的熱門文章

IOS Swift 在某路徑下產生檔案 txt json

語法:         func createFile(name: String , fileBaseUrl: URL ){             let manager = FileManager . default                          let file = fileBaseUrl. appendingPathComponent (name)             print ( "文件: \ ( file )" )             let exist = manager. fileExists (atPath: file. path )             if !exist {                 let data = Data (base64Encoded: "aGVsbG8gd29ybGQ=" ,options:. ignoreUnknownCharacters )                 let createSuccess = manager. createFile (atPath: file. path ,contents:data,attributes: nil )                 print ( "文件產生结果: \ ( createSuccess )" )             }         }                  //新建test.txt文件         let manager = FileManager . default         let urlForDocument = manager. urls ( for: . documentDirectory ,                                            in:. userDomainMask )         let url = urlForDocument[ 0 ]         createFile (name: "projects/new1.

Version 1.6.0_65 of the JVM is not suitable for this product.

Version 1.6.0_65 of the JVM is not suitable for this product. install  http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html

android eclipse transformation to android studio Error AAPT: error: style attribute 'attr/@attr/colorChecked (aka com.xxxxx:attr/@attr/colorChecked)' not found.

AAPT: error: style attribute 'attr/@attr/colorChecked 刪除 " @attr/" 即可!!