Android Question Problem with placing manifest file

Lakhtin_V

Active Member
Licensed User
Longtime User
Help mу. Ш was working on a project and decided to create a simplified version of the project for testing. After I created a completely new project, I began to create the necessary modules in it and transfer the code. But when I tried to debug the code on a smartphone, through B4A using a bridge. An error occurs in the manifest. I transferred the old manifest text there and saved it. But now B4A shows an error in the manifest that is not there. Even the number of lines does not match. I conclude that B4A uses an unknown version of the manifest during compilation. I do not understand where it gets it from.
ManifestErr.PNG
 

Attachments

  • ManifestErr1.PNG
    ManifestErr1.PNG
    24.6 KB · Views: 20
  • AndroidManifest.xml
    4.3 KB · Views: 17

teddybear

Well-Known Member
Licensed User
Logs has told you there is an extra parenthesis ) in the manifest,delete it.

微信图片_20240920232543.png
 
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
uses-feature needs to be closed: " />"
b4a has a kind of temporary manifest which is initially built by b4a and which you can edit. when the project is built, a final manifest is created which takes into account statements from the temporary manifest. leave the final xml alone. create a correct temporary manifest with the manifest editor.
 
Upvote 0

teddybear

Well-Known Member
Licensed User
As drgottjr said, line 10 should be this
B4X:
AddManifestText(<uses-feature android:name="android.hardware.location.gps"/>)
 
Upvote 0

Lakhtin_V

Active Member
Licensed User
Longtime User
uses-feature needs to be closed: " />"
b4a has a kind of temporary manifest which is initially built by b4a and which you can edit. when the project is built, a final manifest is created which takes into account statements from the temporary manifest. leave the final xml alone. create a correct temporary manifest with the manifest editor.
Bingo ok thanks
 
Upvote 0
Top