The existing answers here aren't entirely true.
The Oracle Java SE license agreement contains the following term:
The use of Software in systems and solutions that provide dedicated functionality (other than as mentioned above) or designed for use in embedded or function-specific software applications, for example but not limited to: Software embedded in or bundled with industrial control systems, wireless mobile telephones, wireless handheld devices, kiosks, TV/STB, Blu-ray Disc devices, telematics and network control switching equipment, printers and storage management systems, and other related systems are excluded from this definition and not licensed under this Agreement.
This means that, technically, you are not permitted to use the Oracle JDK for development of mobile applications. That said, I don't believe anyone has ever been prosecuted for this and I don't believe it would be possible for them to distinguish which version of Java your development system ran on while you were working on your applications, but it is worth bearing in mind that technically you need a commercial license to use Oracle JDK for mobile development work.