Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Cradle to the Gradle
Reed Allman
November 05, 2013
Technology
1
230
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
93
BYOMQ: Build Your Own Message Queue
rdallman
0
180
Docker after 500M Containers
rdallman
0
78
Rocks rocks
rdallman
0
52
Let's git it on
rdallman
0
73
Other Decks in Technology
See All in Technology
02_プロトタイピングの進め方
kouzoukaikaku
0
150
ユーザーテストガイドライン VERSION 2.0
kouzoukaikaku
0
970
金属加工屋の営業マンがSTマイクロで・・・
usashirou
0
150
Oracle Cloud Infrastructure:2023年1月度サービス・アップデート
oracle4engineer
PRO
0
130
目指せCoverage100%! AutoScale環境におけるSavings Plans購入戦略 / JAWS-UG_SRE_Coverage
taishin
0
470
Kaggleシミュレーションコンペの動向
nagiss
0
250
ROS_Japan_UG_#49_LT
maeharakeisuke
0
210
日本ディープラーニング協会主催 NeurIPS 2022 技術報告会講演資料
tdailab
0
1.1k
【NGK2023S】 ノードエディタ形式の画像処理ツール「Image-Processing-Node-Editor」
kazuhitotakahashi
0
260
SPA・SSGでSSRのようなOGP対応!
simo123
2
150
2年で10→70人へ! スタートアップの 情報セキュリティ課題と施策
miekobayashi
1
290
S3とCloudWatch Logsの見直しから始めるコスト削減 / Cost saving S3 and CloudWatch Logs
shonansurvivors
0
210
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
239
19k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
38
3.6k
Reflections from 52 weeks, 52 projects
jeffersonlam
338
18k
The Illustrated Children's Guide to Kubernetes
chrisshort
22
42k
The Invisible Side of Design
smashingmag
292
48k
What's in a price? How to price your products and services
michaelherold
233
9.7k
Git: the NoSQL Database
bkeepers
PRO
419
60k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
236
1.1M
A designer walks into a library…
pauljervisheath
199
16k
Gamification - CAS2011
davidbonilla
75
4.1k
Statistics for Hackers
jakevdp
785
210k
Principles of Awesome APIs and How to Build Them.
keavy
117
15k
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):