question

IshuPrabhakar-2203 avatar image
0 Votes"
IshuPrabhakar-2203 asked LeonLu-MSFT answered

Deploy and Build error in Xamarin

when I try to rebuild my app it gives this error:-
"Rebuild started...
1>------ Rebuild All started: Project: App2, Configuration: Debug Any CPU ------
1> App2 -> D:\ME\Visual Studio Projects\Mobile_App\App2\App2\bin\Debug\App2.dll
1>C:\Program Files\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1991,3): error XA0000: Unhandled exception: System.ComponentModel.Win32Exception (0x80004005): The specified executable is not a valid application for this OS platform.
1>C:\Program Files\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1991,3): error XA0000: at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
1>C:\Program Files\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1991,3): error XA0000: at System.Diagnostics.Process.Start()
1>C:\Program Files\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1991,3): error XA0000: at Xamarin.Android.Tasks.CompileNativeAssembly.RunAssembler(Config config)
1>C:\Program Files\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1991,3): error XA0000: at Xamarin.Android.Tasks.AsyncTaskExtensions.<>c_DisplayClass0_1`1.<WhenAll>b_0()
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
"
Can anybody help me with that

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LeonLu-MSFT avatar image
0 Votes"
LeonLu-MSFT answered

Hello,​

Welcome to our Microsoft Q&A platform!

Please close this VS, then open the project folder, delete the bin and obj folders, then rebuild your project, if this issue disapear. If not, please share your project, I can help you to debug it.

Best Regards,

Leon Lu



If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.