Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Cradle to the Gradle
Search
Reed Allman
November 05, 2013
Technology
1
300
Cradle to the Gradle
Building Android without the migraine, using Android Studio, Gradle and Genymotion.
Reed Allman
November 05, 2013
Tweet
Share
More Decks by Reed Allman
See All by Reed Allman
Cond: A Case Study; or Shipping Fn Channels
rdallman
0
120
BYOMQ: Build Your Own Message Queue
rdallman
0
300
Docker after 500M Containers
rdallman
0
150
Rocks rocks
rdallman
0
120
Let's git it on
rdallman
0
100
Other Decks in Technology
See All in Technology
まだ間に合う! Agentic AI on AWSの現在地をやさしく一挙おさらい
minorun365
17
1.9k
マイクロサービスへの5年間 ぶっちゃけ何をしてどうなったか
joker1007
17
7.3k
ペアーズにおけるAIエージェント 基盤とText to SQLツールの紹介
hisamouna
2
1.1k
Strands Agents × インタリーブ思考 で変わるAIエージェント設計 / Strands Agents x Interleaved Thinking AI Agents
takanorig
4
1.4k
ExpoのインダストリーブースでみたAWSが見せる製造業の未来
hamadakoji
0
180
Connection-based OAuthから学ぶOAuth for AI Agents
flatt_security
0
200
20251218_AIを活用した開発生産性向上の全社的な取り組みの進め方について / How to proceed with company-wide initiatives to improve development productivity using AI
yayoi_dd
0
480
Oracle Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
2
170
Snowflake導入から1年、LayerXのデータ活用の現在 / One Year into Snowflake: How LayerX Uses Data Today
civitaspo
0
650
AWSに革命を起こすかもしれない新サービス・アップデートについてのお話
yama3133
0
430
AWSインフルエンサーへの道 / load of AWS Influencer
whisaiyo
0
180
通勤手当申請チェックエージェント開発のリアル
whisaiyo
3
310
Featured
See All Featured
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.4k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
0
89
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
87
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.5k
4 Signs Your Business is Dying
shpigford
186
22k
Thoughts on Productivity
jonyablonski
73
5k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.3k
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
It's Worth the Effort
3n
187
29k
Transcript
Cradle to the Gradle Building Android Without the Migraine @rdallman10
Hello darkness, my old friend
R cannot be resolved to a type...
Dependencies missing...
Fix project properties…
Egit says you have unresolved conflicts...
PC load letter… What the $#@! does that mean?
Eclipse, meet your maker
A UI for this millenium
Version control baked in. And it works!
Doesn’t randomly freeze. And it’s in beta!
Will still suck all your RAM. But it tells you
how much!
All the “great IDE features.” And it’s not Eclipse!
OK, real talk on some features
Preview all screen sizes
Jump from Activity to its Layout
Jump from Layout to its Activity
Jump from Fragment to its Layout
Jump from Layout to its Fragment
It’s &%$*ing life changing
Some Useful commands: Jump to File: ⌘⇧O Jump to Class:
⌘O Run: ^⌘R Find All (Project): ⌘⇧F ...Hover and it’ll tell you
http://developer.android.com/sdk/installing/studio.html
Now to the real cool stuff
Let’s talk dependency management
Maybe you did this? (guilty)
Maybe you did this? (guilty again)
And what do we say?
No more carrying around dependencies! All we need is a
build.gradle file
The dayman cometh
So let’s talk build.gradle
AndroidManifest.xml gets stupid-er
Versioning / SDK moves to build.gradle
How many bloody DSL’s are there?
It’s just Groovy, baby.
...So enough of that.
Why should I make the switch?
None
Ever seen this?
https://gist.github.com/rdallman/7314868
Build [release] from command line
Take that, Eclipse
For you heavy readers: http://tools.android.com/tech-docs/new-build-system/user-guide
Also makes collaborating easy.
Clone (or otherwise acquire) project source:
Just import build.gradle file
Also automagically sets up VCS and remotes
One last thing…
Poll: how long does this normally take you?
Maybe you’re sick of always carrying one of these around
Walk towards the light... http://www.genymotion.com/
Integrates right into Android Studio (plugin)
Make the switch. For Android. For Sanity. Let me know
if you need any help!
[email protected]
Android Studio: http://developer.android.com/sdk/installing/studio.html Android Gradle: http://tools.android.com/tech-docs/new-build-system/user-guide Versioning build.gradle: https://gist.github.com/rdallman/7314868 Find
maven dependencies: http://gradleplease.appspot.com/ Genymotion: http://www.genymotion.com/ Link Summary (+goodies):