I don't see how losing even a few billion dollars could be a disaster for Google at this point. They control most of the smart phones in the world, and that's worth much more than that amount of money (regardless of whether using Java was the right choice or not).