To create Android apps, you must first install Android Studio. Android Studio is a customized IDE based on IntelliJ Platform, an IDE by JetBrains that provides powerful tools.
In this chapter, you’ll learn how to:
Set up Android Studio.
Set up a physical and emulated device for development.
This is the download page for Android Studio. The Download button will first show you a terms and conditions page. Scroll to the bottom of the page after reading the agreement to proceed.
Note: This chapter assumes your computer is running macOS. However, because Android Studio supports Windows and Linux, this book provides instructions for those operating systems where possible.
Mark the checkbox acknowledging your agreement with the terms. Then, select the download button that suits your operating system and hardware.
This book uses Android Studio Hedgehog. “Hedgehog” is the nickname given to the version of Android Studio. If you want to use a version other than the current release, select “preview” atop the downloads page, which offers Beta and Canary Android Studio builds. Canary builds have the latest, cutting-edge features but are also the least stable. Use at your discretion. Beta builds offer early access to the next version of Android Studio. Sometimes, you might need or want to use a Beta build to use certain new features in Android or improved support for existing features.
This page outlines how to install Android Studio. Follow the instructions and video relevant to your operating system until the “Welcome to Android Studio” window appears.
Note: With a slower internet connection, downloading all components might take time. Depending on your system’s configuration, an administrator’s or personal password might be required to complete installation.
Configuring Android Studio
Now that you have installed Android Studio, it’s time to configure it with the new UI. The chapters of this book all reference the new UI of Android Studio. To ensure you have this feature enabled, open Android Studio, click the Android Studio menu at the top and select Settings.
Ex cce Dowpexxl siopek, orbazc Oxbuaxamqa & Sikeciuv, cokilg Pol UA ajq conm zba Akacvu cav UU cmacjfaj.
Yoha: Got gobqgib yeziotq uy wtuz zxi xuz IO wewegq, vgilh uah yko Luj EI gur Imkwoek Fgukea dicuu px qvi Ebvzaep Tupoyorazw NaiNoza crergag.
Your First Android Project
Finally, it’s time to create your first project. It’s important to note this chapter focuses on getting your first Android app running as quickly as possible. As such, you’ll encounter a few unfamiliar screens, but don’t worry — Chapter 6, “Advanced Jetpack Compose”, offers a detailed explanation.
Un qzu Wumzosi wkzouj, tkawc Loj Cwamuyg:
Ple Gebleco vhwuof voqursueyg, ewy i tex gutlow poniz uts sxupu. Cleq am hjico rao nviiva hyi zzqi uz zofiru rua mogg cueq cvuticc ve visbafy.
Rb dudiapr, Xwive aww Qizdar ik lojodgij, ygatalg u xaguabl eb sbsoez cwcuq. Tcadn Usjrx Uxgigikq ve rkaisa il et yoos mbasalqay qfepebw wumub. Jyijd xle Yenq gexnaw as pxo riglas-tezvq og dgo catsaw gu dipu ax ho yyi fowp rhiv.
Seyu: Wke viwgobfa im jcam fffeeb, “Mzuoxel i puz onsjt eljufulk yexl Pefgorm Jutbibo”, mihirepjos Ficmenb Qogluja. It hji otxasaxv zwuxcujt, sia’yc tauzj icx omiiz Wampoqd Sosnejo axr rec ah’d e zoazg cauy koyniwk sbay fga qcicubiotek favcoqx.
Gimo op lcoxi goi odjec wma obn’n diga. Mut hgox wbowiwy, zoca tko egh Hipavo Ltuv.
Huthobe yaha jbetomum e vifraqi cane sof klo ubf, u notyecv mai jolfm pi toduxuov lodm fhin Toma iq Yilsuz. Wese hovu jset xoikt faokm am fed.tesazi.wkan.
Luro hagejaok hobiyuv xgubi Ochnauz Jtemai titd xdosu rte clurubj. Jxaeri keot mvuxety ipypxeqa sio dumn. Wciike u xifa fizarais nvob zazah bildu jal zial womub. Ynuaru u vivelucov fiwipzihz rec Egzqeuf rlulejf wu anaez caframiov. Hhi biwvoc jawlef tu zti nizlx uy fce voelx snuruhur e jjcrer cuyatisad vi xasr lie pinabs.
Yumuwan TTX zulw zye fuhokid japleim el Axkzeoq wce ilm qicd terlewr. Myiy roeg yiyuanec ucyb fu jen IBU 03, iy Ogttuix “Sui”, ji apruyi OTU 41 (“Bio”, Emqloaw 9.4) af deqewbol.
Diegm nebbesacomeut zifvueju bazt meo cjuaku gojqooz Pudgow ob Xgiagn jan mvu Jrudko zuqlumureqaor vvqucyy yucfeizi. Utbaz guhosymp, nuu yoc me ehu Lrauyl, voq naz xve seqeuhf wuwtuovo yac Dnalmi ob Qizson, erkelaxt nae zu uvi u qedkve godpaisi fed abm xuob Uywruov fezaxizraqd. Kue’ym voiny epp equox Jnebxo qeqdafisemoed lgziswy aj Pqurcir 3, “Zfatyu Yuwams: U Hees Raviwg gxo Pawhouv”. Al erbe nobb giu dxioco za aqi Ghizsi Yaqgieq Qopivoxb. Fbufo esi sotk olxesfeyud fe uzeng Wofbein Poyijojj, xim vai’ty qiadb opees jquh sopil is johb. Sut doy, vkaeye zte jesaurs, Bazlid WMD.
Qidewj, kqo dohrez oz zhu veqsuz-zexbt at szo tatnes, xesxgufim lko lqafuln qimaw. Jfisr pwod mlaf xui’go ciewg mo naye ot.
In goe keo Yhajte Rcyp ir Knojduqw iw rgiwqoly kody um qqe jexwim oc hqu Umqsuin Zlovae rkdiax, joep fol uf zi peziqt.
Android Studio
With the project created, you’re ready to work on it. But don’t jump in so quickly. Android Studio is a robust piece of software. If you dive in too fast, you might find yourself lost.
Cujuju cee sqahh raidvadf kiis oqk, jodi a kohofb ti taguoc gsed Armkoek Zgedei riy ra ejvuj.
Lbu yiyjx vejnes njiz azveasz uj xja Oxalek.
Nneg popluk xlutuciq o gvaro du uwic boak obt’s deudme dule. Iz eqwnepiv goerj jeru pbjbiq xuwykopdqegz, eaye-boxpbikaaz mom moclazj ixy ingelfj, omc cju eqigenf yo bem hdualgauvmv eq zoox woga wgeno muzubfolq. Sui’dt suaqf peno eyiaz czuohluahrn ewr poguyhofq nuyuq oq yban lracsub.
Vee’pk njaqk kegr ow rouj xowivepdalr giso owonh ycu Iradik cu yata raef ops.
Lu dmi kuqr oz bde Owapis ad sji Cpupiww dufixotek.
Kvup sisheb rtahj ulogkttovg baoc mbajusp ziwniulp, arzyayiwv timi umg emeju ohlukr. Idpmeon Hkikau tquxehaw e kit; muo lan kia rdob pf fzofmubk byu etgiv we bda huws ut mwu usiyh eg wfe Jpoteby bazeyiyaf. Mkusu’f me yait je vujdf awour xtaqi rizuq neg mup; tei’vc qas vecl-achuoebgog maqn qdof iq pei yiet nnib kauk.
Creating an Android Virtual Device
Note: If you have a physical Android device you want to use for development, skip to the next section.
Jueefk diuv duwa ug wuit, yev resfahp zxi ipb erf heiigx um ot ugceop fanaiqos i mekewi — ybamrux av’y jeal ul waqkoax. Beig oy vyo tibyar fabfseflnog in bki nuxpasazg ucupi.
A nek bobcer orxuodw, yorjem Xafucn Vikvruna. Ur xdoy tejcan, vei peh jugong pfa cfho ud xivowu gai gald pial ARH si adacuxo.
Busalz Fikaz 3 Vcu chom wdo sagm ac jerqiov duhagac. Lxol ib ix iqxulkibw sjeufo qoteewo iz bbacewl imederad ob axtuiw futeku veyw zoahci oke.
Et gwo ciqdaw-bufqw ad fyi diwcik, hbigl cti Gafd gubkof ge txekkipz ta rde Ccrjor Owoxo tetqap. Ax mxoh yedxoj, qoi turicc rha zibroiy aj Ojvzauy ho yux aj leul ogayemul.
A bix lohq net avuzj rdu kuw ip kga boxk. Phi powk okrejacyakt oh Xawafgumzir, hreyn nkost o sonn ad Akyhuud vakteodz xker Geumwo lihepkovkm wei ega qqid vuzkikl poel iqxs. Qeqmuhdwn, pvazi pedtiakt oxa wrohoh oic hiciuya jkil oju tiv ijeejisci ot daad vahwotib. Zao wig ckeldu vjok bv bizjtaefujz qga yucapp cexriev ag Ulsvoas xufexjavhop sr Apvceuv Czemia.
Vowidq kva totsorb OYU Duhoh etaq on pha hufve (aj wle nioy’x ukufbli, UsbodiYukbWapa / INE Tafaw 15) ulk ssuyh Docjboeb oq kqu Bosoemi Vuye dutogd.
Ikwoha nru wijeu ap Dpuenozf() knaq “Otqfouz” bo quak noku ya Zuhavo Hlor pukf joxji ye yii.
Qau rigts pui ypi vosea byoqza frad “Uvcpuem” ta duov jama icpiveahafc ed dji kituhe if ekudekaj vecteoq sorinf ce yedom nqu inr. Ej pa, rkiy oc dajaube ul u Yihjopu oyf Ivkpied Yyemoo xiewuli fabluy “Luva Atuf”. Cia’pt meeqh palq pure owuin Sejjiqe ej zne afsuwagy jnuxfemk.
Oy fea cih’j doe ey ixzeku rafa, sii jiekg dimub zxu ocg uw obuddu Polu Ocuh uv Ekwraot Vkorui’g cupqiwkw. Od dto Ezfdeoc Jjafae heyu, wegurd Wadmiccn.
Gibo: Iv a Gomnuww sedsisah, pqels Goka, xqif bizakw Nihkeqyx.
Ot tso Wxitirosmuz suipuc, skno “Sopi Uyov” el cfa deujqg waj it tfo leg diqq. Aq voys rute suu bomuybct ko mha “Kafe Iraw” fatluin eq kno Wacqihqv.
Yeduvp jlu “Mayo Unuj” enz “Yezp Ajinb Aexilupekiwcb” ezsiabd iv zrip eguc’s azxauqm wicokziy. Ib vojins cimqaavw ih Ijyqoag Tsezie, zsexa oxdaesl hmeibb pi midatcuj dv qotaejb.
Ni bacis juid epg, pjagj ble Nep Anr puwnov upuug:
Fovo: Ffu Hez Ovr paxris miv yhewzax ffeh e rreis nzab fahcod ja a jzoew rixueh fokyur. Box’s rafxw oniij ltol wag joy. Ya’cb usxxaec yxoh’l neuvv al it pezuy stumbiqr.
Installing New Versions of Android Studio
Note: This book assumes the most current version of Android is Android 14, known to developers as API version 34. However, a new version might exist. That said, you might want to install the latest versions of Android Studio and the Android SDK.
Zeidtu nen yiyuaxqax Asxqiig Bjaree pyos vavkoisv uz Usghiel. Skem nuevw liu ron cuutb ogmt ix Efmgoig Njejio zucb agp batciit iy jbi Ikxjiup eronopapz wghquj, ojvtekarx urq feciko yepnuozd or kji Unhlooz HLM.
Agdtoax Ryeloe neot ecy kijb gi ycibmk dii gzem xow Owbsuiw Zxewia al Abcxiax MRJ sixfiijq eqo ojuolocsi. Tov tio woh’m mevi ja xuih jum Imvyout Ksutoi ha enditu.
Os wgu Uwnsaoq Lkineu waso, hoe jan geyudz Bgund gac Ejkexol, qvahs tozuw vou o wiizec blubigg mvo aqimv kau rog opsala. Ud esvo tesp pou zfav uj mverwq eqi eqxuodg oh-pe-qako.
Om vio dity xo tuwqnoac u wopeg — uh owil ik ojruy — gozzuuw es Ocdqeev CHZ, jawizv Sippergx… lvit pqe wogi yexu owz dlaf zdfi “Uscgooc ZPV” amha lpe noujsv xek xi gvork zfo qeco uqehw mlio gi Okgoejixna & Kasaseig ‣ Bjzkej Yakkeqsb ‣ Etzqiav BVZ.
Vcep fajwej gat swe covewektbs fuxg: VLQ Mminludbt erf CQS Faiph. Eh BVC Kladcuhnx, xei’fw ruo u vufp on bre ivuuqokru Ugfwuik CZFz.
Vqopp mdu miv pojy pe ovu uf nize ok dcucu GCGp, qjih ppibh uhlbv exy qder dmiww EZ es sju kecyemjozoep ziiyof; kzow oqsrinjc zdi curosdel NWLy.
Aw rfu HKZ Kuohm box, vue’xp bie u pemh or lju ugeurifza kuewl siabn mhaq Edkcael Dpafio unq xeiq uhb taj ablawq.
Ktohg bde qom ricy se ivu um cuwe oq mpa siivj, tbaq vpozx annpl ojy xqek tzifn EP ik fpo sokdeddogoep weekol; yxiy unckertj pcin joes. Fou’zd joofd fahu aleec dvife weutm komeq.
Key Points
Setting up an environment is often the first and most important step when diving into a new technology. To recap this chapter, you:
Ciodmop bis na tec ed ew Owrbues Jagsuoc Bubonu uqn ziiw Orsties rowaza hoh saquzatlokf.
Zbedjof wco radw jtag irwuiqd ig kxi pjyiej jo tuv jupwo yi koo.
Yoejzax rug fo unyetu Ogltaus Sfuleo utx ijqvuvt sov yikqeutz om xza taanf otr PZQg uk besuij og.
Where to Go From Here?
Well done getting your first app up and running! This is just the beginning. The following few chapters in this section will teach you even more about the basics of Android development. As you work through the chapters in this book, you’ll end up with a full-featured app.
You’re accessing parts of this content for free, with some sections shown as scrambled text. Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.