The alternative would have been not using Java at all. That would have made attracting programmers more difficult at the beginning of the Android platform, but then, Java would have disappeared on mobiles, at least.
I do not discuss why Oracle thinks is entitled to have of big chunk of the revenues of Android and the work of Google.