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

Kam M 31 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#.
5,366 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Kam M 31 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>  
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.