Ukudala uhlelo lwakho lokusebenza lweselula le-Android akulula, Yiqiniso, uma ungasebenzisi amasevisi ahlukene e-intanethi enikeza ukudala into ekwakhiweni kwimodi yokuklama, kuzodingeka ukuthi ukhokhele lolu hlobo "lwenduduzo" noma wamukele uhlelo lwakho izoba nezikhangiso ezifakiwe.
Ngakho-ke, kungcono ukuchitha isikhathi esincane, umzamo futhi udale uhlelo lwakho lokusebenza lwe-Android usebenzisa izinhlelo zesofthiwe ezikhethekile. Ake sizame ukukwenza ngezigaba, sisebenzisa esinye sezimo zesofthiwe esinamandla kakhulu okwamanje ezitholakalayo zokubhala izinhlelo zokusebenza zeselula ze-Android Studio.
Landa i-Android Studio
Ukudala uhlelo lokusebenza lweselula usebenzisa i-Android Studio
- Landa imvelo yesofthiwe kusuka kusayithi elisemthethweni bese ulifaka ku-PC yakho. Uma ungenayo i-JDK efakwe, udinga ukuyifaka futhi. Yenza izilungiselelo zohlelo lokusebenza olujwayelekile
- Qalisa i-Android Studio
- Khetha "Qala iphrojekthi entsha ye-Android Studio" ukudala uhlelo olusha.
- Ku-"Lungiselela iwindi lakho lephrojekthi", setha igama lephrojekthi oyifunayo (Igama lesicelo)
- Chofoza "Okulandelayo"
- Ewindini "Khetha izinto ezibalulekile uhlelo lwakho lokusebenza oluzosebenza ngalo" khetha yesikhulumi ofuna ukubhala isicelo. Chofoza ifoni neThebulethi. Bese ukhetha inguqulo encane ye-SDK (lokhu kusho ukuthi uhlelo olubhaliwe luzosebenza kumadivayisi afana namafoni namaphilisi, uma une-Android, efanayo ne-Minimun SDK noma inguqulo kamuva). Isibonelo, khetha version 4.0.3 ye-IceCreamSandwich
- Chofoza "Okulandelayo"
- Esikhathini esithi "Engeza umsebenzi kumakhalekhukhwini", khetha u-Umsebenzi wesicelo sakho, okwakumelelwe ngeklasi legama elifanayo kanye nekhasika njengefayela le-XML. Lena uhlobo lwethempulethi equkethe isethi yekhodi ejwayelekile yokusingatha izimo ezijwayelekile. Khetha umsebenzi ongenalutho, njengoba kulungile kumsebenzi wokuhlola wokuqala.
- Chofoza "Okulandelayo"
- Futhi inkinobho ethi "Qedela"
- Lindela i-Android Studio ukudala iphrojekthi nayo yonke isakhiwo sayo esidingekayo.
Kumele uqaphele ukuthi okokuqala udinga ukujwayela okuqukethwe kwezinkampani zohlelo lokusebenza kanye ne-Scripts Scripts, ngakho-ke aqukethe amafayela abalulekile kunawo wonke wesicelo sakho (izinsiza zeprojekthi, ikhodi ebhaliwe, izilungiselelo). Khokha ngokukhethekile ifolda yohlelo lokusebenza. Into ebaluleke kakhulu equkethe ifayela lokubonakalisa (libala yonke imisebenzi yohlelo lokusebenza kanye namalungelo okufinyelela), kanye nezincwadi ze-java (amafayela wesigaba), res (amafayili ezinsiza).
- Xhuma idivayisi ukulungisa noma ukuyenza i-emulator
- Chofoza inkinobho ethi "Run" ukuze uqalise uhlelo lokusebenza. Kungenzeka ukwenza lokhu ngaphandle kokubhala umugqa owodwa wekhodi, ngoba umsebenzi ofakiwe ngaphambilini usuvele uqukethe ikhodi yokubonisa umlayezo othi "Sawubona, umhlaba" kudivayisi.
Bheka futhi: izinhlelo zokudala izinhlelo zokusebenza ze-Android
Yindlela ongayenza ngayo uhlelo lwakho lokusebenza lokuqala lwefoni yeselula. Ngaphezu kwalokho, ukutadisha Imisebenzi ehlukene kanye namasethi wezinto ezijwayelekile kwi-Android Studio ungabhala uhlelo lwenoma iyiphi inkimbinkimbi.