Developers Can Now Make Android Apps With Apple's Swift - MacRumors
Skip to Content

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

Foldable iPhone 2023 Feature 1

Apple's Foldable iPhone Crease Fix Set for Android Foldables Next Year

Wednesday September 2, 2026 4:57 am PDT by
The Elec reports that Google, Oppo, and Vivo plan to adopt ultra-thin glass (UTG) in their foldable phones next year, following Apple's lead. Apple's book-style foldable iPhone, expected to be unveiled next week, reportedly uses two UTG layers, with the display sandwiched between them, isolating it from direct contact with the hinge. The method, pioneered by Apple, is meant to spread...
iOS 18 Siri Personal Context

Siri AI Settlement Website Now Live: Apple to Pay Some iPhone Owners

Sunday September 20, 2026 7:24 pm PDT by
In May, Apple agreed to pay $250 million to settle a U.S. class action lawsuit over Siri AI's delayed launch, and the settlement website is now live. Apple will pay an estimated $25 per eligible iPhone to eligible customers, who can submit a claim via the settlement website between September 21 and December 21 of this year. The exact payment may be higher or lower than $25 depending on the...
Mostly Screen iPhone Purple Feature 2027

iPhone 20 Pro Display Sizes Leak Ahead of 2027 Launch

Monday September 21, 2026 4:29 am PDT by
Apple's 20th-anniversary iPhone lineup could feature slightly larger displays than the iPhone 18 Pro models, if a new leak shared on Weibo is accurate. Prolific Chinese leaker Digital Chat Station claims that early iPhone 20 Pro display specifications include a 6.41-inch screen with a resolution of approximately 2,686 × 1,236 pixels, while the iPhone 20 Pro Max is said to have a 6.96-inch...

Top Rated Comments

12 months 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)
12 months 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)
12 months 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)
12 months 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
12 months 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
12 months 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)
Latest Stories
New Mac Mini Has Two Storage Downsides, Including Unremovable SSD
New Mac Mini Has Two Storage Downsides, Including Unremovable SSD
3 hours ago
Apple Card Savings Account's Interest Rate Just Went Up
Apple Card Savings Account's Interest Rate Just Went Up
3 hours ago
Apple Releases First Public Betas of iOS 27.2 and macOS Golden Gate 27.2
Apple Releases First Public Betas of iOS 27.2 and macOS Golden Gate 27.2
7 hours ago
OpenAI's New GPT-6 Sol and Luna Models Bring Astra Improvements to Cheaper Tiers
OpenAI's New GPT-6 Sol and Luna Models Bring Astra Improvements to Cheaper Tiers
9 hours ago
Apple Park Visitor Center Just Lost an Attraction Offered Since 2017
Apple Park Visitor Center Just Lost an Attraction Offered Since 2017
10 hours ago
Shazam App for iPhone Updated With New Icon and iMessage Stickers
Shazam App for iPhone Updated With New Icon and iMessage Stickers
10 hours ago
Anthropic Launches Claude Opus 5.5 With Fable-Level Performance at a Lower Price
Anthropic Launches Claude Opus 5.5 With Fable-Level Performance at a Lower Price
11 hours ago
Apple Releases Firmware Update for Beats 360
Apple Releases Firmware Update for Beats 360
12 hours ago
Beats 360 Pre-Orders Open at Amazon With Cushion Kits on Sale, Plus More Beats Deals
Beats 360 Pre-Orders Open at Amazon With Cushion Kits on Sale, Plus More Beats Deals
12 hours ago
Apple Puts AirTag-Sized AI Pin on Hold
Apple Puts AirTag-Sized AI Pin on Hold
13 hours ago
Beats 360 Ear Cushion Kits Just $9.99 Each Until the End of October
Beats 360 Ear Cushion Kits Just $9.99 Each Until the End of October
13 hours ago
Apple Testing Prototypes of Whoop-Like Screenless Fitness Band
Apple Testing Prototypes of Whoop-Like Screenless Fitness Band
13 hours ago
Apple Will Soon Announce an All-New Operating System
Apple Will Soon Announce an All-New Operating System
14 hours ago
Apple Watch Series 10 vs. Series 12 Buyer's Guide: Should You Upgrade?
Apple Watch Series 10 vs. Series 12 Buyer's Guide: Should You Upgrade?
14 hours ago
Apple's Smart Glasses to Enter a Rapidly Growing Market
Apple's Smart Glasses to Enter a Rapidly Growing Market
14 hours ago
Apple Event This October? These 7 New Products Expected Next Month
Apple Event This October? These 7 New Products Expected Next Month
14 hours ago
Beats 360 Deliver Customizability and a Revamped Over-Ear Headphone Design
Beats 360 Deliver Customizability and a Revamped Over-Ear Headphone Design
16 hours ago
Massive Discounts Hit 2026 MacBook Pro, Save Up to $600 on Amazon
Massive Discounts Hit 2026 MacBook Pro, Save Up to $600 on Amazon
16 hours ago
Apple Planning to Bring iPhone Duo Display Tech to Pro in 2029
Apple Planning to Bring iPhone Duo Display Tech to Pro in 2029
16 hours ago
Apple Announces 'Tap to Pay on iPhone' Availability in 8 More Countries
Apple Announces 'Tap to Pay on iPhone' Availability in 8 More Countries
17 hours ago
New Mac Mini and Mac Studio Now Available for Same-Day Pickup at Apple Stores
New Mac Mini and Mac Studio Now Available for Same-Day Pickup at Apple Stores
18 hours ago
Apple Still Working on Anti-Snatching Feature That Locks Stolen iPhones
Apple Still Working on Anti-Snatching Feature That Locks Stolen iPhones
18 hours ago
Apple Quietly Excludes Older iPhones From New Camera Feature
Apple Quietly Excludes Older iPhones From New Camera Feature
20 hours ago
App Switcher Returns in watchOS 27.2 Beta With New Launch Gesture
App Switcher Returns in watchOS 27.2 Beta With New Launch Gesture
21 hours ago
Apple Music Hall Spatial Audio Venue Opens in Battersea Power Station
Apple Music Hall Spatial Audio Venue Opens in Battersea Power Station
22 hours ago
Apple CEO John Ternus Talks iPhone Duo Design, Siri AI, and Becoming CEO
Apple CEO John Ternus Talks iPhone Duo Design, Siri AI, and Becoming CEO
1 day ago
You Can No Longer Downgrade From iOS 27 to iOS 26
You Can No Longer Downgrade From iOS 27 to iOS 26
1 day ago
macOS 27.2 Beta Brings New Volume and Brightness Sliders
macOS 27.2 Beta Brings New Volume and Brightness Sliders
1 day ago
GM Wants You to Know It Still Plans to Ditch Apple CarPlay in Future EVs
GM Wants You to Know It Still Plans to Ditch Apple CarPlay in Future EVs
1 day ago
iPhone 14 Pro vs. iPhone 18 Pro Buyer's Guide: Should You Upgrade?
iPhone 14 Pro vs. iPhone 18 Pro Buyer's Guide: Should You Upgrade?
2 days ago