Android Question Manifest error

tsteward

Well-Known Member
Licensed User
Longtime User
I compiled my app yesterday without issue. Today I have Manifest error. I don't know what if anything I have done to cause this. And I really don't know what I am doing :(
There is so much in there.....

Error
Error in manifest editor: Error parsing manifest script:<br />Line = 246, Word = /<br />Command expected.
Manifest
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="23" android:targetSdkVersion="35"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetActivityAttribute(Main, android:resizeableActivity, "true")
SetServiceAttribute(Starter, android:foregroundServiceType, shortService)

SetApplicationAttribute(android:theme, "@style/LightTheme")
CreateResource(values, theme.xml,
<resources>
<style
name="LightTheme" parent="@android:style/Theme.Material.Light">
<item name="android:actionMenuTextAppearance">@style/LowerCaseMenu</item>
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
</style>
<style name="LowerCaseMenu" parent="android:TextAppearance.Material.Widget.ActionBar.Menu">
<item name="android:textAllCaps">false</item>
</style>
</resources>
)
SetApplicationAttribute(android:theme, "@style/LightTheme")
CreateResource(values, theme.xml,
<resources>
<style
name="LightTheme" parent="@android:style/Theme.Material.Light">
<item name="android:actionMenuTextAppearance">@style/LowerCaseMenu</item>
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
</style>
<style name="LowerCaseMenu" parent="android:TextAppearance.Material.Widget.ActionBar.Menu">
<item name="android:textAllCaps">false</item>
</style>
</resources>
)

'End of default text.
CreateResourceFromFile(Macro, GooglePlayBilling.GooglePlayBilling)
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Crashlytics)
CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)
'CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)

AddManifestText(
<queries>
<package android:name="com.ecartek.en.kd" />
<package android:name="com.xhorse.assembly" />
</queries>
)
'AddPermission(android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING)
'SetServiceAttribute(FirebaseMessaging, android:foregroundServiceType, "remoteMessaging")
//SetServiceAttribute(KeepRunningService, android:foregroundServiceType, shortService)

'<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
'AddPermission(android.permission.CAMERA) ' Required to be able to access the camera device.
'AddPermission("android.hardware.camera")
AddPermission("android.permission.FLASHLIGHT")
AddPermission(android.permission.RECORD_AUDIO)
AddPermission(android.permission.INTERNET)
AddPermission(com.android.alarm.permission.SET_ALARM)
AddManifestText(<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />
)

'End of default text.


AddApplicationText(
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="$PACKAGE$.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
</provider>
)
CreateResource(xml, provider_paths,
<files-path name="name" path="shared" />
)
AddActivityText(Main,
<intent-filter>
<action android:name="android.intent.action.PICK" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.OPENABLE" />
<data android:mimeType="image/*" />
</intent-filter>
)
 

teddybear

Well-Known Member
Licensed User
Remove the // of this line or comment this line
B4X:
'AddPermission(android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING)
'SetServiceAttribute(FirebaseMessaging, android:foregroundServiceType, "remoteMessaging")
//SetServiceAttribute(KeepRunningService, android:foregroundServiceType, shortService)
 
Last edited:
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
Remove the // of this line or comment this line
B4X:
'AddPermission(android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING)
'SetServiceAttribute(FirebaseMessaging, android:foregroundServiceType, "remoteMessaging")
//SetServiceAttribute(KeepRunningService, android:foregroundServiceType, shortService)
Thank you, I can now compile again. I'll see how that goes
Cheers
 
Upvote 0
Top