Developers Can Now Make Android Apps With Apple's Swift

The first preview release of the Swift SDK for Android was published this week, allowing developers to build Android apps in Swift with official tooling and making it easier to share code across iOS and Android.

swift for android
The SDK enables Android apps to be built in Swift using officially supported tooling rather than community workarounds. In June, it was announced that Apple's Swift programming language would be officially extended to support Android app development through the establishment of a dedicated Android Working Group within the Swift open-source project.

Android interoperability is handled by swift-java, which can automatically generate bindings between Java and Swift so developers can use Swift code alongside existing Android APIs and Java code. The Swift Package Index now marks packages with Android support and says over 25% of all packages already build on Android, giving developers a base of reusable code.

The Swift SDK for Android is already available in nightly preview form bundled with the Swift for Windows installer or as a separate download for Linux and macOS users. A new Getting Started guide with end-to-end setup instructions and a set of example Android projects written in Swift to illustrate complete workflows is also available.

The group is preparing a vision document to set future priorities and is tracking progress on a public project board.

Tags: Android, Swift

Popular Stories

iOS 26

iOS 26.4 and iOS 27 Features Revealed in New Leak

Friday December 12, 2025 10:56 am PST by
Macworld's Filipe Espósito today revealed a handful of features that Apple is allegedly planning for iOS 26.4, iOS 27, and even iOS 28. The report said the features are referenced within the code for a leaked internal build of iOS 26 that is not meant to be seen by the public. However, it appears that Espósito and/or his sources managed to gain access to it, providing us with a sneak peek...
iOS 26

Apple Releases iOS 26.2 With Alarms for Reminders, Lock Screen Changes, Enhanced Safety Alerts and More

Friday December 12, 2025 10:10 am PST by
Apple today released iOS 26.2, the second major update to the iOS 26 operating system that came out in September, iOS 26.2 comes a little over a month after iOS 26.1 launched. ‌iOS 26‌.2 is compatible with the ‌iPhone‌ 11 series and later, as well as the second-generation ‌iPhone‌ SE. The new software can be downloaded on eligible iPhones over-the-air by going to Settings >...
Apple Foldable Thumb

Leak Reveals Foldable iPhone Details

Monday December 15, 2025 9:09 am PST by
The first foldable iPhone will feature a series of design and hardware firsts for Apple, according to details shared by the Weibo leaker known as Digital Chat Station. According to a new post, via machine translation, Apple is developing what the leaker describes as a "wide foldable" device, a term used to refer to a horizontally oriented, book-style foldable with a large internal display....
iOS 26

iOS 26.2 Coming Soon With These 8 New Features on Your iPhone

Thursday December 11, 2025 8:49 am PST by
Apple seeded the second iOS 26.2 Release Candidate to developers earlier this week, meaning the update will be released to the general public very soon. Apple confirmed iOS 26.2 would be released in December, but it did not provide a specific date. We expect the update to be released by early next week. iOS 26.2 includes a handful of new features and changes on the iPhone, such as a new...
macOS Tahoe 26 Thumb

Apple Releases macOS Tahoe 26.2 With Edge Light

Friday December 12, 2025 10:08 am PST by
Apple today released macOS Tahoe 26.2, the second major update to the macOS Tahoe operating system that came out in September. macOS Tahoe 26.2 comes five weeks after Apple released macOS Tahoe 26.1. Mac users can download the macOS Tahoe update by using the Software Update section of System Settings. macOS Tahoe 26.2 includes Edge Light, a feature that illuminates your face with soft...
AirPods Pro Firmware Feature

Apple Releases New Firmware for AirPods Pro 2 and AirPods Pro 3

Thursday December 11, 2025 11:28 am PST by
Apple today released new firmware designed for the AirPods Pro 3 and the prior-generation AirPods Pro 2. The AirPods Pro 3 firmware is 8B30, up from 8B25, while the AirPods Pro 2 firmware is 8B28, up from 8B21. There's no word on what's include in the updated firmware, but the AirPods Pro 2 and AirPods Pro 3 are getting expanded support for Live Translation in the European Union in iOS...
ipados 26 1 slide over

Apple Releases iPadOS 26.2 With Multitasking Improvements

Friday December 12, 2025 10:09 am PST by
Apple today released iPadOS 26.2, the second major update to the iPadOS 26 operating system released in September. iPadOS 26.2 comes a month after iPadOS 26.1. The new software can be downloaded on eligible iPads over-the-air by going to Settings > General > Software Update. iPadOS 26.2 continues with the multitasking improvements that were added with iPadOS 26.1. You can now drag and...
airpods max 2024 colors

AirPods Max 2 Likely to Offer These 10 New Features

Monday December 15, 2025 7:41 am PST by
Apple released the AirPods Max on December 15, 2020, meaning the over-ear headphones launched five years ago today. While the AirPods Max were updated with a USB-C port and new color options last year, followed by support for lossless audio and ultra-low latency audio this year, the headphones lack some of the features that have been introduced for newer generations of the regular AirPods and the ...

Top Rated Comments

Rock_Artist Avatar
7 weeks ago
Just for clarification, Swift is open. But when developing to Apple eco system you interact with OS libraries.
For example, SwiftUI is an Apple library. So it’s not that simple making a SwiftUI app suddenly work on android.

However, Swift by itself allows making the logic of an app cross platform.
Score: 14 Votes (Like | Disagree)
ricketysquire Avatar
7 weeks ago
First Halo on PS5 and now this. Next thing you're going to tell me is that cats and dogs have made peace.
Score: 11 Votes (Like | Disagree)
deconstruct60 Avatar
7 weeks ago

I don't think they ever supported Java in Xcode directly.
Apple Developer Tools for Java > XCode. ( document archive)

https://developer.apple.com/library/archive/documentation/Java/Conceptual/Java14Development/02-JavaDevTools/JavaDevTools.html


The support faded over time. Over time Apple has become increasingly focused on moving folks from Objective-C ( and C derivatives ) to more broader usages of Swift . Xcode also shifted toward cranking out iOS apps where Java was pragmatically banned .

Oracle acquiring Java and starting to muck with the license didn’t help either.



At the risk of severely aging myself, I've been using Java since it came out ~1995 and would have moved to a Mac much earlier had Apple offered a decent "native" IDE for Java. The first IDE I used was VisualCafe - only available on Windows, which was somewhat ironic since Sun was competing with Microsoft back then and then Netbeans (which I've used ever since, with a detour to Eclipse and IntelliJ).
Netbeans started off as a “clone” of Delphi written in Java.

Netbeans runs on Java , so bootstrapping the IDE on Mac OS X wasn’t a big a deal as Apple baking their own branch of Java ( wanted the GUI integration “ just tright” ). A decent amount of Java development is backend , server side stuff so a choke point through Apple just slows that down a bit for new versions.

Google AI overview for ‘ historical apple development porting java to mac os x’

“…
Apple's relationship with Java on macOS (originally Mac OS X) has a rich and complex history, marked by periods of close integration, independent development, and eventual transition of responsibility.
Early Integration and Apple's Commitment:

* Mac OS Runtime for Java (MRJ): ('https://www.google.com/search?client=firefox-b-1-m&sca_esv=50bc830c1331a679&cs=0&q=Mac+OS+Runtime+for+Java+%28MRJ%29&sa=X&ved=2ahUKEwiJidLimcKQAxX2g4kEHUJyKXUQxccNegQICBAD&mstk=AUtExfDUt0vv6OPur5NP3wlcyOYy8GgZF6jw8LtnmDA8e1FRTLFjhgOOOv3Hl9_6IvOxX8qyuFS3egROOgtAmvUYDRq3CkEoTpD2KXjfSExLOASrFEJmJ5GWJlIuSes4lsSaZMg&csui=3')
In January 1997, Apple launched the MRJ, demonstrating an early commitment to Java.
* Mac OS X and First-Class Support: ('https://www.google.com/search?client=firefox-b-1-m&sca_esv=50bc830c1331a679&cs=0&q=Mac+OS+X+and+First-Class+Support&sa=X&ved=2ahUKEwiJidLimcKQAxX2g4kEHUJyKXUQxccNegQIERAD&mstk=AUtExfDUt0vv6OPur5NP3wlcyOYy8GgZF6jw8LtnmDA8e1FRTLFjhgOOOv3Hl9_6IvOxX8qyuFS3egROOgtAmvUYDRq3CkEoTpD2KXjfSExLOASrFEJmJ5GWJlIuSes4lsSaZMg&csui=3')
With the introduction of Mac OS X, Apple initially treated Java as a first-class language. This included shipping Java with the OS, providing libraries to integrate with OS X, and offering support within their Xcode IDE. Apple even had a Java application server platform called WebObjects.


* Apple's Own Build: ('https://www.google.com/search?client=firefox-b-1-m&sca_esv=50bc830c1331a679&cs=0&q=Apple%27s+Own+Build&sa=X&ved=2ahUKEwiJidLimcKQAxX2g4kEHUJyKXUQxccNegQIDxAD&mstk=AUtExfDUt0vv6OPur5NP3wlcyOYy8GgZF6jw8LtnmDA8e1FRTLFjhgOOOv3Hl9_6IvOxX8qyuFS3egROOgtAmvUYDRq3CkEoTpD2KXjfSExLOASrFEJmJ5GWJlIuSes4lsSaZMg&csui=3')
For a significant period, Apple maintained its own internal build of Java, allowing for security audits, custom patches, and deep integration with the OS.

Challenges and Transition of Responsibility:

* Declining Integration:
Over time, the tight integration of Java with OS X and the use of Apple's specific Java APIs diminished. The promised benefits of Java for desktop application development, particularly regarding native look and feel and performance, did not fully materialize as anticipated.
* Maintenance Burden:
Maintaining a separate, custom build of Java became increasingly challenging for Apple, especially as Oracle (which acquired Sun Microsystems, the creators of Java) made internal changes to Java that required refactoring of Apple's code.
* Security Concerns:
Java's history of security vulnerabilities, which prompted some experts to advise users to only enable Java on an as-needed basis, also played a role in Apple's reevaluation.


* Oracle Takes Over:
In 2010, Apple announced it would no longer be responsible for developing and maintaining Java on macOS. Oracle subsequently took over the development of the Mac JDK as part of OpenJDK …“

Also ..

“ Apple previously maintained its own build of Java for macOS, but this practice largely ceased with macOS 10.7 Lion. Apple no longer includes Java as a pre-installed component of macOS, nor does it provide its own updates for Java. “

So IDE that bootstrapped on top of Java had to adjust to whatever features Apple added. And Oracle porting to macOS is not a corporate core competency.




Anyway, if OSX did support Java at the time, I think I would have known as I was an avid Windows hater then. My first chance at full-time Java development didn't come until around 2007 and I used Netbeans IDE. I think at the time Apple did bundle the JDK or JRE but, again, I don't remember Xcode letting you build Java apps.
Apple adopted Java early . They just did it in an Apple fashion ( which is quirky from the outside ). If writing Java to primarily deploy off platform , then those quirks are not a feature.


As Java became more of a corporate software development platform ( not focused on Mac OS ) , Apple increasingly lost interest.
Score: 7 Votes (Like | Disagree)
icwhatudidthere Avatar
7 weeks ago

"...so developers can use Swift code alongside existing Android APIs and Java code" - does this mean Xcode will support Java?
Funny enough, about 20 years ago, they did.

https://jdeploy.substack.com/p/how-the-app-store-ended-a-golden

Back around 2002 or so I even went to a Javaworld conference and Apple was there signing up developers.
Score: 7 Votes (Like | Disagree)
Hajj.david Avatar
7 weeks ago

Now make it work well for websites and servers too.
This exists, Vapor is the biggest Swift for server API but there are other projects as well, a fellow swift dev friend of mine made a website using just Swift and Xcode, I forgot what tool he used.
Score: 5 Votes (Like | Disagree)
Plutonius Avatar
7 weeks ago
I'm curious if this will mostly be used to port Android code to iOS or to port iOS code to Android ?
Score: 5 Votes (Like | Disagree)