N nakkal Member Licensed User Longtime User Aug 18, 2025 #1 Hi guys! I'm getting the following message from the Google Developers Console: "The foreground service type is missing.", so I added these lines to my manifest file and added code to my Starter: Code: Copy SetServiceAttribute(Starter, android:foregroundServiceType, shortService) Code: Copy Private Sub Service_Timeout(Params As Map) Service.StopForeground(51042) 'this is the id of the automatic foreground notification End Sub But when I try to compile my app, I get the following message: "AndroidManifest.xml:41: error: 'shortService' is incompatible with attribute foregroundServiceType (attr) flags [camera=64, connectedDevice=16, dataSync=1, location=8, mediaPlayback=2, mediaProjection=32, microphone=128, phoneCall=4]. error: failed processing manifest." Java version: 11 B4A Version: 13:40 What could be wrong? Thanks in advance!
Hi guys! I'm getting the following message from the Google Developers Console: "The foreground service type is missing.", so I added these lines to my manifest file and added code to my Starter: Code: Copy SetServiceAttribute(Starter, android:foregroundServiceType, shortService) Code: Copy Private Sub Service_Timeout(Params As Map) Service.StopForeground(51042) 'this is the id of the automatic foreground notification End Sub But when I try to compile my app, I get the following message: "AndroidManifest.xml:41: error: 'shortService' is incompatible with attribute foregroundServiceType (attr) flags [camera=64, connectedDevice=16, dataSync=1, location=8, mediaPlayback=2, mediaProjection=32, microphone=128, phoneCall=4]. error: failed processing manifest." Java version: 11 B4A Version: 13:40 What could be wrong? Thanks in advance!
Solution Erel Aug 18, 2025 Sounds like you are using an old Android SDK. Carefully follow the installation instructions: https://www.b4x.com/b4a.html
Sounds like you are using an old Android SDK. Carefully follow the installation instructions: https://www.b4x.com/b4a.html
Erel B4X founder Staff member Licensed User Longtime User Aug 18, 2025 #2 Sounds like you are using an old Android SDK. Carefully follow the installation instructions: https://www.b4x.com/b4a.html Upvote 0 Solution
Sounds like you are using an old Android SDK. Carefully follow the installation instructions: https://www.b4x.com/b4a.html
N nakkal Member Licensed User Longtime User Aug 18, 2025 #3 Erel said: Sounds like you are using an old Android SDK. Carefully follow the installation instructions: https://www.b4x.com/b4a.html Click to expand... Yessss!... Erel, you're the man! Thanks! Upvote 0
Erel said: Sounds like you are using an old Android SDK. Carefully follow the installation instructions: https://www.b4x.com/b4a.html Click to expand... Yessss!... Erel, you're the man! Thanks!