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
1
310
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
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
ガバメントクラウドにおけるAWSの長期継続割引について
takeda_h
2
5.4k
【社内勉強会】新年度からコーディングエージェントを使いこなす - 構造と制約で引き出すClaude Codeの実践知
nwiizo
2
1.5k
VPCエンドポイント意外とお金かかるなぁ。せや、共有したろ!
tommy0124
1
710
脳内メモリ、思ったより揮発性だった
koutorino
0
390
生成AIで速度と品質を両立する、QAエンジニア・開発者連携のAI協調型テストプロセス
shota_kusaba
0
270
新規事業×QAの挑戦:不確実性を乗りこなす!フェーズごとに求められるQAの役割変革
hacomono
PRO
0
130
Laravelで学ぶOAuthとOpenID Connectの基礎と実装
kyoshidaxx
3
1.1k
Lambda Web AdapterでLambdaをWEBフレームワーク利用する
sahou909
0
180
プラットフォームエンジニアリングはAI時代の開発者をどう救うのか
jacopen
8
4.1k
OCI技術資料 : コンピュート・サービス 概要
ocise
4
54k
AI時代の「本当の」ハイブリッドクラウド — エージェントが実現した、あの頃の夢
ebibibi
0
150
社内レビューは機能しているのか
matsuba
0
170
Featured
See All Featured
Navigating Weather and Climate Data
rabernat
0
140
GraphQLの誤解/rethinking-graphql
sonatard
75
11k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
230
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
300
Documentation Writing (for coders)
carmenintech
77
5.3k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
90
Scaling GitHub
holman
464
140k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
490
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
320
Java REST API Framework Comparison - PWX 2021
mraible
34
9.2k
Unsuck your backbone
ammeep
672
58k
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):