I have tried all the suggested solutions in stack overflow. I am not getting any error while deploying or while building my solution. Build is successful each time.
I am using visual Studio 2022 (preview).
Its my .csproj config. This is the error
I have tried all the suggested solutions in stack overflow. I am not getting any error while deploying or while building my solution. Build is successful each time.
I am using visual Studio 2022 (preview).
Its my .csproj config. This is the error
You could also solve the error by deleting obj and bin folders under main and android folders.
If you are getting error for (.aab
) package format, check your .Android.csproj
file, and make sure this entry exists:
<AndroidPackageFormat>aab</AndroidPackageFormat>
And then follow the steps below:
bin
and obj
folders from your projectI hope this helps.
You can recheck your .Android.csproj
file, and try to remove
<AndroidPackageFormat>aab</AndroidPackageFormat>
If the problem persist, try the following method:
1.right your android project and click property
> Build
> Output path
;
2.change
..\bin\yourappname-android\Release\AnyCPU
by
..\bin\yourappname-android\AnyCPU
.Android.csproj
I haven't seen anywhere that <AndroidPackageFormat>aab</AndroidPackageFormat>
and I had tried that changing output path solution earlier too but had' not worked for me but this problem has been fixed now. I have done it multiple times like cleaning obj
and bin
then first build it in debug
mode and then rebuild in release
mode and the archive I am not sure how but after multiple attempts it worked. –
Invincible I changed the ApplicationDisplayVersion and ApplicationVersion values in the csproj file and it worked. Looks like VS will not publish the same version twice, which is a good feature because I used to forget to increment the versions when developing in Xamarin.
© 2022 - 2024 — McMap. All rights reserved.