They could have used a different system (LLVM?) and Java would have become irrelevant on mobiles.
And nowadays Android holds hostage any Java developer that wants to target Android, because one needs to constrain ourselves to Android Java's view of the world.