Blog / Development

Java app development: can you still build an app with Java?

Java app development: can you still build an app with Java?

Short answer

  • Yes, you can still build an Android app in Java. Android Studio still offers Java as a project language, but Google’s own setup guide says it’s “supported but not recommended for new projects”.
  • Java loses out on Jetpack Compose (Android’s modern screen toolkit) and multiplatform projects, which are Kotlin-only, and Google gives Java training and samples “best effort” support.
  • Java is still big: 29.4% of all respondents to Stack Overflow’s 2025 survey used it, and 40.8% of people learning to code, against 10.8% for Kotlin.
  • iPhone apps are harder. Apple’s language is Swift, so Java on iOS goes through third-party tools such as Codename One or Gluon, or Google’s J2ObjC for shared logic only.
  • Android Studio has no price on Google’s download page. Publishing costs $25 once for Google Play, plus $99 a year for Apple if you also ship to iPhone.

Java built Android. For most of the platform’s history, if you wanted an Android app, you wrote it in Java. So it’s fair to ask whether that’s still a sensible way in, especially if Java is the language your course, your job or your old university notes taught you.

Short version: Java still works and you can ship a real app with it. But Google has moved its best new tools to Kotlin, and that changes what I’d tell a beginner.

I checked every fact here on its original source (Google’s, Apple’s and Oracle’s docs, each tool maker’s own site and the survey itself) on 6 December 2026. This piece is part of our guide on how to become an app developer, which covers the wider choice of what to learn and how to get work.

Can you still build an app with Java?

Yes. Java is still a fully supported language for Android apps, and Android Studio still lets you start a project in it. What’s changed is Google’s recommendation.

When you create a project, Android Studio asks you to pick a language. Google’s create-a-project guide puts it plainly: Kotlin is the recommended language and is required for Jetpack Compose, and “Java is supported but not recommended for new projects.”

That’s been the direction since 2019, when Android went “Kotlin-first”. Google’s Kotlin-first page says new tools, libraries, samples and training are designed for Kotlin users first, “while continuing to provide support for using our APIs from the Java programming language”.

So Java keeps working, and the new stuff lands in Kotlin first.

Is Java still used?

Very much so. In Stack Overflow’s 2025 developer survey, 29.4% of all respondents said they’d used Java, against 10.8% for Kotlin. Among people learning to code, Java jumps to 40.8%.

Those numbers cover every kind of programming, apps included. A lot of that Java runs on servers, in banks and in older Android codebases that still need looking after. Which is one good reason to know it.

Is Java or Kotlin better for Android apps?

For a new Android app, Kotlin is the better choice, because it gets every tool Google ships and Java doesn’t. For maintaining an existing Java app, Java is fine, and you can add Kotlin to it file by file.

Here’s Google’s own support table, row by row:

What you get Java Kotlin
Platform SDK support Yes Yes
Android Studio support Yes Yes
Lint (automatic code checks) Yes Yes
Guided docs and API docs Yes Yes
AndroidX libraries Yes Yes
Kotlin-specific AndroidX APIs (KTX, coroutines) Not applicable Yes
Online training Best effort Yes
Samples Best effort Yes
Multiplatform projects (sharing code with iPhone) No Yes
Jetpack Compose No Yes
Compiler plugin support No Yes

Source: Android’s Kotlin-first approach, opened 6 December 2026.

The Jetpack Compose row is the big one. Compose is how Google now wants Android screens built: you describe what a screen should show and it redraws when the data changes. In Java you build screens the older way, with XML layout files and “Views” (Android’s original screen building blocks). That still works, but Google’s own layout docs for Views open with a banner pointing you to Compose.

Can Java and Kotlin live in the same app?

Yes. Google’s Kotlin FAQ says you can use Java and Kotlin files in the same project and “adopt as much or as little Kotlin as you like”. Android Studio also has a Code menu option that converts a Java file into Kotlin (Google tells you to review the result and run your tests afterwards).

That makes Java a decent starting point for one type of person: someone who already knows it well. You’ll read Kotlin quickly, and you can move over one file at a time.

How do you build an Android app with Java?

You install Android Studio, create a project with Java as the language, design screens in XML, write the logic in Java, then run it on the emulator or your phone. Here’s the path, step by step.

  1. Install Android Studio. It’s Google’s editor for Android apps, what developers call an IDE: one program to write code, preview screens, run the app and chase bugs. The version on Google’s download page on 6 December 2026 was Rabbit 2. You accept Google’s SDK licence before downloading; there’s no price on the page.
  2. Create a project and pick Java. Choose a template, then set Language to Java on the configure screen. Google says the Compose-based Empty Activity template is the recommended start and the other templates are for “maintaining or migrating a legacy codebase”, so a Java app means one of those older, Views-based templates.
  3. Design screens in XML. Each screen’s layout lives in an XML file (a structured text file a bit like HTML) in the res/layout folder. Android Studio’s Layout Editor lets you drag and drop the buttons and text boxes instead of typing it all.
  4. Write the logic in Java. Your Java code loads the layout, finds each button and decides what happens when someone taps it. Google’s Views layout guide still shows every example in both Kotlin and Java.
  5. Run and test it. The emulator is a virtual Android phone on your computer. Plug in a real phone too before you trust anything.
  6. Publish it. Package the app and upload it to Google Play through a developer account.

Most real apps also need a back end: the server side that stores accounts, data and payments. Our explainer on what a backend is covers that half, and Firebase vs Supabase compares 2 popular hosted options.

Which Java version does Android use?

Android doesn’t run the newest Java. Each Android release supports a set Java version, and Google’s Java versions guide gives this table:

Android version Java version supported
Android 14 (API 34) Java 17
Android 13 (API 33) Java 11
Android 12 (API 32) Java 11
Android 11 and lower See each version’s notes

Source: Java versions in Android builds, opened 6 December 2026.

The same page says Android Gradle Plugin 8.x (the tool that builds your app) needs JDK 17 to run. A JDK is the Java Development Kit: the compiler and libraries that turn your code into a working program. You don’t usually need to install one separately, because Android Studio ships with the JetBrains Runtime, and new projects use it by default.

Meanwhile Java itself has moved on. Oracle’s dev.java site links to the Java 27 API docs as the latest release. Code written for Java 27 won’t all work on a phone, so learn the language, then learn which parts Android supports.

How do you learn Java for app development?

Learn core Java first from a free course, then learn Android itself with Google’s documentation. Budget well over 100 hours to get from zero to a small working app.

Here are the free starting points I’d use, all checked today:

  • Oracle’s dev.java Learn section runs from “Your First Steps in Java” through the language, the standard library and the JVM (the Java Virtual Machine, the engine that runs Java programs on a computer). It’s Oracle’s own learning site for the language.
  • The University of Helsinki’s Java Programming MOOC is free, needs no previous programming knowledge, and has 14 parts across 2 courses. It suggests reserving at least 10 hours per part, so call it 140 hours. Be aware the page says the content is “no longer updated or maintained”, though the basics of Java haven’t moved much.
  • Google’s Android guides: the Kotlin FAQ says API reference pages and many guides also show Java, so once you know the language you can work through those in Java.

One catch for Java learners: Google’s beginner course, Android Basics with Compose, is taught entirely in Kotlin. Its 8 units add up to about 100 hours, and Google says no programming experience is required. I couldn’t find a current Google beginner course taught in Java.

That’s the strongest argument for skipping Java if Android is your only goal. Google’s recommended beginner course is Kotlin. Its samples are Kotlin. You’d be learning Java, then translating.

When learning Java first does make sense

  • Your college, apprenticeship or exam board teaches Java.
  • You want back-end or enterprise jobs as well as apps, where Java is everywhere.
  • You’ve joined a team with a Java Android codebase to maintain.

In any of those cases, learn Java properly, build one Views-based Android app with it, then pick up Kotlin. Moving from Java to Kotlin is a short hop, because Kotlin runs on the same platform and calls Java code directly. For pay by language and role, see our breakdown of app developer salaries.

Can you make iPhone apps with Java?

Only through third-party tools. Apple describes Swift as its programming language “for all Apple platforms”, and its tools are built around Swift, so Java needs a translator or a special build chain to reach an iPhone.

These are the options with live, official pages today:

Tool What it does What you need to build for iPhone Licence or cost, as stated
Codename One Whole apps (screens and logic) in Java or Kotlin for iOS, Android, desktop and web Its cloud build service makes iOS builds “without a Mac” Open source, GPLv2 with Classpath Exception, “free for commercial use”; free account includes 100 cloud build credits a month
Gluon Mobile iOS and Android apps in standard Java with the JavaFX screen toolkit, one codebase Gluon’s docs say “iOS packages can be built only on macOS”, with Xcode installed No price on the product page; contact Gluon
J2ObjC (Google) Translates Java logic into Objective-C so iPhone apps can share it; no screens macOS 15 or higher, Xcode 16 or higher, JDK 21 or higher Open source
Kotlin Multiplatform Shares Kotlin code with iPhone; Java code can’t use it directly (Google’s table marks multiplatform as Kotlin-only) JetBrains’ quickstart says you need a macOS machine with Xcode No price stated; officially supported by Google for sharing business logic between Android and iOS

Sources: each tool’s own page, opened 6 December 2026.

Google’s J2ObjC page is honest about its limits: it “does not provide any sort of platform-independent UI toolkit, nor are there any plans to do so in the future.” So you’d still build the iPhone screens in Swift.

My take: if you need both phones and you’re starting fresh, Java is the long way round. Cross-platform frameworks like React Native and Flutter are built for that job (one codebase for both phones), and we’ve compared those 2 in React Native vs Flutter. For the bigger trade-off between native and shared-code apps, see native vs cross-platform apps.

Java route picker

Should you build your app in Java?

4 questions. You get one recommended route and the reason.

What else can you build with Java besides Android apps?

Java’s other big jobs are the back end behind an app and desktop software. If your app needs a server, Java is a very normal way to write it.

  • App back ends. Spring Boot, a Java server framework, describes itself as a way to create “stand-alone, production-grade Spring based Applications that you can ‘just run'”. It was on version 4.2.0 when I checked. A phone app (in any language) can talk to a Spring Boot server through an API.
  • Desktop apps. JavaFX is an open source “client application platform for desktop, mobile and embedded systems”, and its docs point to version 27. Gluon builds its mobile route on top of it.

So a Java skill set can cover the server, the Android app and a desktop tool. That’s a strong case for learning it if you want a job, even if it isn’t my pick for a first phone app. Our frameworks and SDKs directory lists more of the tools developers choose from.

How much does it cost to build an app with Java?

Android Studio carries no price on Google’s download page, so a Java app costs your time if you build it, or a developer’s time if you don’t. The store fees are the only fixed bills.

If you pay a developer, price follows features more than language. Our cost calculator’s custom model starts at $5,000 for one platform and $10,000 for both, before features like email login ($1,500 on one platform), payments or messaging. For a Java Android app with email login, user profiles and basic design, that’s $5,000 + $1,500 + $2,000 + $3,000 = $11,500 on the traditional model. For day rates, see how much app developers charge, or price your own feature list on the app cost calculator.

Should you build your app in Java?

Build in Java if you already know it, you’re maintaining a Java codebase, or your course demands it. Otherwise, start Android in Kotlin, and if you’re a business owner who just wants an app, skip coding altogether.

  • You know Java and want an Android app: use it. Views and XML still work, and you can add Kotlin later file by file.
  • You’re new and want Android: start with Kotlin and Google’s Android Basics with Compose course. You’ll be using the tools Google is building for.
  • You need iPhone too: look at Kotlin Multiplatform, React Native or Flutter before Java-to-iOS tools.
  • You want a developer career: Java is still worth learning for back-end and enterprise work. Pair it with Kotlin for Android.
  • You run a business and need bookings, loyalty, ordering or push notifications: a no-code app builder already does that.

On that last point, I’ll be direct because we sell one. If you’re learning Java just to get your café or salon an app, it’s months of study for something that already exists. AppInstitute’s app builder has bookings, loyalty stamp cards and points, food ordering and push notifications, publishes to Google Play, the App Store and the web, and takes no commission on what you sell. It’s free for up to 10 app users, then $49 a month (up to 1,000) or $99 a month (unlimited).

And if you’re tempted to let AI write the Java for you, our piece on whether AI can build an app covers where those tools stop. For the full route into the job, from first language to first client, go back to the guide on how to become an app developer. When you’re ready to ship, how to publish your app walks through both stores.

FAQ

Is Java still used for Android apps?

Yes. Java is still supported in Android Studio and across Android’s SDK and docs, and many existing apps are written in it. Google recommends Kotlin for new projects.

Is Java or Kotlin better for beginners?

For Android, Kotlin. Google’s recommended beginner course, Android Basics with Compose, is taught in Kotlin, and Jetpack Compose only works in Kotlin.

Can I build an iPhone app with Java?

Only through third-party tools such as Codename One or Gluon Mobile, or Google’s J2ObjC for shared logic without screens. Apple’s own language for its platforms is Swift.

How long does it take to learn Java for app development?

The free University of Helsinki Java course suggests at least 10 hours for each of its 14 parts, about 140 hours. Learning Android on top of that takes more time again.

Do I need to learn Java before Kotlin?

No. Google’s beginner course teaches Kotlin from zero. Knowing Java does make Kotlin quicker to pick up, because the 2 languages share a platform and call each other’s code.

Can I make an Android app in Java for free?

Yes. Google’s download page shows no price for Android Studio, and its documentation is open to read. You pay a $25 one-time fee when you publish on Google Play.

Which Java version does Android support?

Google’s table lists Java 17 for Android 14 and Java 11 for Android 12 and 13. Android Gradle Plugin 8.x needs JDK 17 to build your app.

Last Updated on December 6, 2026 by Ian Naylor

Your app, live today

Build a native iOS and Android app, or a web app, for your business. Free to start, no code, no developers.