Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

How to Use Groovy to Build Android Apps

DZone's Guide to

How to Use Groovy to Build Android Apps

· Mobile Zone
Free Resource

Discover how to focus on operators for Reactive Programming and how they are essential to react to data in your application.  Brought to you in partnership with Wakanda

One of the key ideas of Groovy is to help Java developers be more productive, so why not bring it to Android? Luckily, Cédric Champeau has done exactly that with this Gradle plug-in on available on GitHub.

It looks pretty straight-forward: edit your build.gradle a bit, choose your Groovy version and modules, add a depedency, and that's about it. It does seem to be leaning toward Android Studio, but that's okay, people seem to like Android Studio

For more information, though, Champeau also has a blog post on the topic. He covers his reasons for creating the project, as well as a few more specific usage tips. He has big plans for Groovy on Android, though:


Some people are already asking for a {swift} alternative for Android. It’s there guys, you have it, so spread the word and let’s make it happen! I am convinced that it is the beginning of a new era for Android and Groovy. Google already switched their main build system to Gradle, which is, by the way, using Groovy, so I think it’s time to move over and show your love!

You can also check out an open-source sample app from Champeau - his first Android app, I believe - built entirely in Groovy. You know, if you just want proof that it's possible.

Take that, Swift.

Learn how divergent branches can appear in your repository and how to better understand why they are called “branches".  Brought to you in partnership with Wakanda

Topics:
java ,groovy ,mobile ,android ,tool ,tools & methods ,gradle

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}