Error XA3001: Could not AOT the assembly: Xamarin.Forms.Platform.Android.dll (XA3001)

Kam M 21 Reputation points
2023-01-23T05:26:13.7266667+00:00

Hi,

I am trying to archive the project for publication. It worked before. I fixed the camera permission and tried to archive it, it threw the following message and the process failed.

"Error XA3001: Could not AOT the assembly: Xamarin.Forms.Platform.Android.dll (XA3001)

Can anyone advise, please?

Kind regards,

Kamal

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kam M 21 Reputation points
    2023-01-23T05:33:09.9766667+00:00

    I changed the setting in the project file and it worked. I am not sure if this is a good practice!

    <AndroidEnableProfiledAot>false</AndroidEnableProfiledAot>