Issue
I have Xamarin Android project and set the "Compile using Android version. (Target Framework) at Android 12.
src="https://i.stack.imgur.com/qr2q4.png" alt="enter image description here" />
I am able to build successfully the project on version 30 (Android 11) and below.
However whenever I change the Target Android version to version 31 (Android 12 and above, it build fails with below error
"java.exe" exited with code 1.
What's the code changes needed when we go to Version 31?
Solution
Finally I am able to compile the project without any issue by using the settings as below at "Properties > Android Option".
Answered By - TPG
Answer Checked By - Robin (JavaFixing Admin)