Compile error AndroidManifest not well formed

MrKim

Well-Known Member
Licensed User
Longtime User
I have been working away and suddenly I get this error when I try to compile.

B4X:
Compiling code.                         0.03
Compiling layouts code.                 0.00
Generating R file.                      Error
AndroidManifest.xml:6: error: Error parsing XML: not well-formed (invalid token)

Have not done anything to manifest file to my knowledge. Here is what appears in the manifest editor:

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: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" />
<supports-screens android:largeScreens="true" 
    android:normalScreens="true" 
    android:smallScreens="true" 
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.

I have dded and removed Activities hoping that might fix it. I also replaced the androidmanifest file with one from a backup but got the exact same error.

THanks for your help
 
Last edited:

MrKim

Well-Known Member
Licensed User
Longtime User
Never mind, I went to a backup of my MAIN file (Nag.b4a) and it works. I opened the good and bad .b4a files in Notepad and compared them line by line and could find NOTHING that seems like it would cause the error. Even made the changes I had lost and it works fine.

Like I said did nothing to the manifest, just replaced the .b4a file with a BU.

Any ideas what is wrong I would love to know.
 
Upvote 0
Top