Jump to content
Marinus

MSBuild Error "CreateAndroidManifestFile" task failed - path's format not supported

Recommended Posts

Hi all,

 

I've upgraded from 12.0 to 12.1 and try to compile an existing project for Android. However I run into the following error:

[MSBuild Error] The "CreateAndroidManifestFile" task failed unexpectedly.
System.NotSupportedException: The given path's format is not supported.
   at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath) [...]

Compiling a new empty project runs without problems.

 

 

My SDK settings were "lost" after upgrading to 12.1, but I fixed that by following the answer to this question: 

https://stackoverflow.com/questions/78292730/delphi-12-1-post-installation-configuration

 

 

Share this post


Link to post
4 minutes ago, Marinus said:

[MSBuild Error] The "CreateAndroidManifestFile" task failed unexpectedly.

I'd try deleting AndroidManifest.template.xml in your project folder (back it up first if you customized it), then redeploy.

Share this post


Link to post
2 hours ago, Dave Nottage said:

I'd try deleting AndroidManifest.template.xml in your project folder (back it up first if you customized it), then redeploy.

Unfortunately that doesn't help.

Share this post


Link to post

I was able to compile the project by resetting the output directory and the unit directory.

Share this post


Link to post
On 6/21/2024 at 3:49 AM, Marinus said:

I was able to compile the project by resetting the output directory and the unit directory.

I'm having the same problem. What exactly are you doing when you say you are resetting the output and unit directories?

 

Thanks in advance

Share this post


Link to post
5 minutes ago, Calum Anderstrem said:

I'm having the same problem. What exactly are you doing when you say you are resetting the output and unit directories?

They may mean in the Project Options - these are the defaults:
image.thumb.png.241c85d766359f23ffef8dbcfe1eb031.png

Share this post


Link to post
13 minutes ago, Dave Nottage said:

They may mean in the Project Options - these are the defaults:
image.thumb.png.241c85d766359f23ffef8dbcfe1eb031.png

Hi Dave, that worked; thanks to you both.

  • Thanks 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×