Android Question Error in manifest for B4XPages project

johnaaronrose

Active Member
Licensed User
Longtime User
I'm getting an error on the Manifest when Compiling a B4XPages project.
B4X:
Error parsing manifest script:
Line=1, Word=<
Command expected
Here is the Manifest:
:
<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="org.mywire.johnrose.httpsprogressexample"
    android:versionCode="1"
    android:versionName=""
    android:installLocation="internalOnly">
    
    <uses-sdk android:minSdkVersion="5" android:targetSdkVersion="30"/>
    <supports-screens android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true"
        android:anyDensity="true"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
    <application
        android:icon="@drawable/icon"
        android:label="HTTPS Progress Example"
        android:theme="@style/LightTheme">
        <activity
            android:windowSoftInputMode="stateHidden"
            android:launchMode="singleTop"
            android:name=".main"
            android:label="HTTPS Progress Example"
            android:screenOrientation="portrait">
            <intent-filter>
               <action android:name="android.intent.action.MAIN" />
               <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            
        </activity>
        <service android:name=".starter">
        </service>
        <receiver android:name=".starter$starter_BR">
        </receiver>
    </application>
</manifest>
I've attached the manifest.xml & a zip of the project.
 

Attachments

  • AndroidManifest.xml
    1.4 KB · Views: 141
  • HTTPSProgressExample.zip
    12.2 KB · Views: 156

DonManfred

Expert
Licensed User
Longtime User
DELETE THE COMPLETE MANIFESTTEXT

In B4A you have to use the manifestcode given by B4A into the manifesteditor. The manifest is generated when you compile the app.

Create a new project and check the manifest-editor. THIS is how it should look like in the editor.

This is such a default manifesteditor-Text
B4X:
'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="5" android:targetSdkVersion="30"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)
'End of default text.
 
Last edited:
Upvote 0
Top