Android Development Is 30% More Expensive Than iOS. And We Have the Numbers to Prove It!

android-development-is-30-percent-more-expensive-than-ios-0

For a while now, we’ve been aware that Android development takes longer than iOS. We have the metrics to prove it, and it’s about time we show them.

If you’re developing a mobile app on both iOS and Android, you’re bound to notice at one point that Android development simply takes longer. We’ve also noticed that, but instead of solely trusting our gut feeling, we’ve decided to pull out some real stats to prove it.

Android_vs_ios_development

Methodology

We extracted numbers for 6 projects we’ve done in the last year and a half or so. The projects were chosen according to the following conditions:

  • the project had the same app built for iOS and Android
  • there was no legacy codebase or technical debt in general that could skew the data significantly

We measured the following parameters:

  • Lines of code
  • Hours of work

Lines of code

We pulled the information on the lines of code (excluding blank lines and comments) with cloc.

iOSAndroidDifference in %
Project A6,82915,323124%
Project B48,67150,7564%
Project C15,80728,44980%
Project D5,14814,893189%
Project E21,69825,50118%
Project F6,95610,34749%
Total105,109145,26938%

The takeaway here is – you write on average ~40% more code on Android than on iOS. A lot of this code is auto-generated – but it’s still code, and it needs to be read, debugged, and maintained.

Also, the quantity of code you have in your project is bound to be a lot larger if you’re using a modern and clean architecture approach in structuring mobile apps.

By that we mean something that separates the presentation layer from the business logic, like MVP on Android or VIPER on iOS.

In that situation – having more lines of code is actually good.

Hours of work

We pulled the information on the hours of work for each of these projects from Productive.

iOSAndroidDifference in %
Project A24144083%
Project B1,5861,6132%
Project C8221,15741%
Project D295755156%
Project E6026477%
Project F2442575%
Total3,7904,86928%

The takeaway here is that, on average, you spend ~30% more time working on Android than on iOS projects. As you can see in our table, sometimes the difference can be much bigger and sometimes much smaller, but, from our experience, the median value is around 30%.

We’re not inclined to believe that this has anything to do with the quality of engineers on any of the platforms, as our team is equally great on both platforms, and our HR process doesn’t discriminate when hiring for either position.

So why is Android development slower?

That’s a very good question. We’ve been speculating about this for a long time, and what we’ve managed to figure out is that it’s a combination of a couple of factors:

  • Just more code – applications for Android are written in Java, which is simply a more verbose language than Objective-C or Swift. You’re bound to write more code. More often than not, having to write more code means working longer and more potential bugs.
  • Emulators are slower – even with GenyMotion, Android emulators are just slower than iOS simulators. This is just a factor that slows down the overall development.
  • Fragmentation – more devices to test against, more potential vendor-specific bugs (”Damn, this only shows up on this random Chinese phone you can only buy in Lithuania!”)
  • XML layouting – on Android, layouts are primarily written manually in XML, so WYSIWYG techniques are used less than on iOS.

What does this mean?

When we started doing iOS and Android development on a work for hire basis, we based all time estimates on the assumption that iOS and Android development take the same amount of time.

We abandoned that premise about two years ago, and today we take into account 20-30% more time for Android for all the estimates we do.

That means that if we estimate an app at 500 hours to be built for iOS, we estimate it (and charge it accordingly) at around 650 hours for Android.

What’s the trend here?

What’s good here is that the trend is changing. The tooling for Android, which we covered here, is getting so much better, that in the future this Android tax will probably go down. Only metrics will tell.

Of course these metrics can’t possibly convey every possible scenario and problem you have while building software. But what we wanted to say here is that, generally speaking, Android takes longer.

Thanks to my colleague Ivan Kocijan for his help with the data preparation for this article.