Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
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
310
1
Share
Cradle to the Gradle
Building Android without the migraine, using Android Studio, Gradle and Genymotion.
Reed Allman
November 05, 2013
More Decks by Reed Allman
See All by Reed Allman
Cond: A Case Study; or Shipping Fn Channels
rdallman
0
130
BYOMQ: Build Your Own Message Queue
rdallman
0
300
Docker after 500M Containers
rdallman
0
160
Rocks rocks
rdallman
0
130
Let's git it on
rdallman
0
110
Other Decks in Technology
See All in Technology
新規サービス開発におけるReact Nativeのリアル〜技術選定の裏側と実践的OSS活用〜
grandbig
2
180
数案件を同時に進行するためのコンテキスト整理術
sutetotanuki
1
190
Digitization部 紹介資料
sansan33
PRO
1
7.2k
試されDATA SAPPORO [LT]Claude Codeで「ゆっくりデータ分析」
ishikawa_satoru
0
350
チームで育てるAI自走環境_20260409
fuktig
0
1k
Zero-Downtime Migration: Moving a Massive, Historic iOS App from CocoaPods to SPM and Tuist without Stopping Feature Delivery
kagemiku
0
230
2026年に相応しい 最先端プラグインホストの設計<del>と実装</del>
atsushieno
0
100
Master Dataグループ紹介資料
sansan33
PRO
1
4.6k
GitHub Copilotを極める会 - 開発者のための活用術
findy_eventslides
6
4k
Azure Lifecycle with Copilot CLI
torumakabe
0
140
プロンプトエンジニアリングを超えて:自由と統制のあいだでつくる Platform × Context Engineering
yuriemori
0
170
AIペネトレーションテスト・ セキュリティ検証「AgenticSec」ご紹介資料
laysakura
0
1.6k
Featured
See All Featured
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
670
Mind Mapping
helmedeiros
PRO
1
150
Un-Boring Meetings
codingconduct
0
260
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
510
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.3k
The Curse of the Amulet
leimatthew05
1
11k
Test your architecture with Archunit
thirion
1
2.2k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
300
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
410
Reality Check: Gamification 10 Years Later
codingconduct
0
2.1k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
170
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):