'Android in Xamarin.Forms can't compile after changing target framework

I have a Xamarin.Forms application. I changed the Target Framework version of the Android project from 10.0 (Q) to 12.0 (S). After that, I get error

"java.exe" exited with code 1.

I cannot find any solution that would work for me.

ADDED: OK, now I know it is Xamarin.FireBase.Analytics.Impl package that I need for Google Analytics that causes the error. But I don't know how to go around it...



Solution 1:[1]

For those who may have same issue, try to check the version of your package or remove the Xamarin.FireBase.Analytics.Impl like this one did.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Adrain Zhu -MSFT