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

m1 chip slide

Five Years of Apple Silicon: M1 to M5 Performance Comparison

Monday November 10, 2025 1:08 pm PST by
Today marks the fifth anniversary of the Apple silicon chip that replaced Intel chips in Apple's Mac lineup. The first Apple silicon chip, the M1, was unveiled on November 10, 2020. The M1 debuted in the MacBook Air, Mac mini, and 13-inch MacBook Pro. The M1 chip was impressive when it launched, featuring the "world's fastest CPU core" and industry-leading performance per watt, and it's only ...
iOS 26

iOS 26.2 Available Next Month With These 8 New Features

Tuesday November 11, 2025 9:48 am PST by
Apple released the first iOS 26.2 beta last week. The upcoming update includes a handful of new features and changes on the iPhone, including a new Liquid Glass slider for the Lock Screen's clock, offline lyrics in Apple Music, and more. In a recent press release, Apple confirmed that iOS 26.2 will be released to all users in December, but it did not provide a specific release date....
All Screen iPhone 2027 Feature 1

Apple to Hide Selfie Camera Under Display of 20th Anniversary iPhone

Monday November 10, 2025 1:55 am PST by
Apple will conceal the front-facing camera under the screen of its 2027 iPhone, a Chinese leaker said today, corroborating reports that Apple's 20th anniversary iPhone will have no visible cutouts in the display. Weibo-based account Digital Chat Station said Apple's development of under-screen camera technology was progressing as planned for adoption in 2027, one year after it will...
iphone pocket%402x

Apple Debuts iPhone Pocket, a Limited Edition iPod Sock-Style Accessory

Tuesday November 11, 2025 1:23 am PST by
Apple has teamed up with Japanese fashion house ISSEY MIYAKE to launch iPhone Pocket, a 3D-knitted limited edition accessory designed to carry an iPhone, AirPods, and other everyday items. The accessory is like a stretchy pocket, not unlike an iPod Sock, but elongated to form a strap made of a ribbed, elastic textile that fully encloses an iPhone yet allows you to glimpse the display...
iphone air thinness

iPhone Air Sales Are So Bad That Apple's Delaying the Next-Generation Version

Monday November 10, 2025 11:41 am PST by
The thin, light iPhone Air sold so poorly that Apple has decided to delay the launch of the next-generation iPhone Air that was scheduled to come out alongside the iPhone 18 Pro, reports The Information. Apple initially planned to release a new iPhone Air in fall 2026, but now that's not going to happen. Since the iPhone Air launched in September, there have been reports of poor sales...
Early Black Friday Deals 1

The Best Early Black Friday Apple Deals on AirPods, Apple Watch, iPad, and More

Saturday November 8, 2025 6:16 am PST by
We're officially in the month of Black Friday, which will take place on Friday, November 28 in 2025. As always, this will be the best time of the year to shop for great deals, including popular Apple products like AirPods, iPad, Apple Watch, and more. In this article, the majority of the discounts will be found on Amazon. Note: MacRumors is an affiliate partner with some of these vendors. When ...
homepod mini colors

New HomePod Mini Coming Soon With These Features

Tuesday November 11, 2025 7:30 am PST by
Apple is expected to announce a new HomePod mini imminently, headlining with new chips. Here are all of the new features we're expecting. The second-generation HomePod mini is highly likely to contain a more up-to-date chip for more advanced computational audio and improved responsiveness. The current HomePod mini is equipped with the Apple Watch Series 5's S5 chip from 2019. Apple is likely ...
Apple fitness plus feature

Future of Apple Fitness+ 'Under Review'

Sunday November 9, 2025 5:30 am PST by
The future of Apple Fitness+ is "under review" amid a reorganization of the service, according to Bloomberg's Mark Gurman. In the latest edition of his "Power On" newsletter, Gurman said that Apple Fitness+ remains one of the company's "weakest digital offerings." The service apparently suffers from high churn and little revenue. Nevertheless, Fitness+ has a small, loyal fanbase that...
iphone black friday gold

The Best Early Black Friday iPhone Deals

Monday November 10, 2025 10:18 am PST by
Cellular carriers have always offered big savings on the newest iPhone models during the holidays, and Black Friday 2025 sales have kicked off at AT&T, Verizon, T-Mobile, and more. Right now we're tracking notable offers on the iPhone 17, iPhone 17 Pro, iPhone 17 Pro Max, and iPhone Air. For even more savings, keep an eye on older models during the holiday shopping season. Note: MacRumors is...
2024 iPhone Boxes Feature

Apple Adjusts Trade-In Values for iPhones, iPads, Macs, and More

Thursday November 6, 2025 11:12 am PST by
Apple today updated its trade-in values for select iPhone, iPad, Mac, and Apple Watch models. Trade-ins can be completed on Apple's website, or at an Apple Store. The charts below provide an overview of Apple's current and previous trade-in values in the U.S., according to its website. Maximum values for most devices either decreased or saw no change, but the iPad Air received a slight bump. ...

Top Rated Comments

Rock_Artist Avatar
2 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
2 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
2 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
2 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
2 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
2 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)