I have Xamarin Android Project with Target Framework v9.
Recently, I updated my Xamarin Forms to the latest version. Then, I am getting the below error.
I understand from the error message that I need to update the 'Target Framework' from Android 9 to Android 10. I did it.
From that moment, whenever I build my android project in 'Release' mode, I get the below error. Building the project in 'Debug' mode is fine.
May you please help? I need to submit an update to my Android App. :-(
original attribute defined here ... Building the project in 'Debug' mode is fine.
Did you enable the Use incremental Android packaging system (Aapt2)? Someone faced the similar issue and solve it by enable this function. Try to enable the option and test again.
Similar cases:
https://github.com/xamarin/AndroidX/issues/7
https://docs.microsoft.com/en-us/answers/questions/172279/error-apt1000-attribute-34imageaspectratioadjust34.html
If it doesn't work, try to empry the bin and obj folders to clean up the solution for test.
Xamarin forums are migrating to a new home on Microsoft Q&A!
We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
For more information, please refer to this sticky post.
Answers
Did you enable the Use incremental Android packaging system (Aapt2)? Someone faced the similar issue and solve it by enable this function. Try to enable the option and test again.
Similar cases:
https://github.com/xamarin/AndroidX/issues/7
https://docs.microsoft.com/en-us/answers/questions/172279/error-apt1000-attribute-34imageaspectratioadjust34.html
If it doesn't work, try to empry the bin and obj folders to clean up the solution for test.
Xamarin forums are migrating to a new home on Microsoft Q&A!
We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
For more information, please refer to this sticky post.
It worked. Thank you!