Google copied the API, but didn't make the runtime compatible with Java ME, SE or EE. Oracle says you can reimplement Java API, but only if you're making a complete Java-compatible runtime, one you can run a regular .class or a .jar in. If you simply reuse some APIs because you want to exploit people's familiarity with Java APIs, you are committing copyright infringement.