Yadda ake rubuta app din Android na farko. Android Studio

Pin
Send
Share
Send

Creatirƙirar aikace-aikacen tafi da gidanka don Android abu ne mai wahala, ba shakka, idan ba ku yi amfani da sabis na kan layi daban-daban waɗanda ke ba da damar ƙirƙirar wani abu a cikin yanayin ƙira ba, amma ko dai ku biya kuɗi ko karɓar gaskiyar cewa za a yi amfani da shirin ku azaman biyan kuɗi don wannan nau'in "ta'aziyya" suna da tallace-tallace masu kananan taya.

Sabili da haka, ya fi dacewa ku ciyar da ɗan lokaci, ƙoƙari da ƙirƙirar aikace-aikacenku ta Android ta amfani da tsarin software na musamman. Bari muyi ƙoƙarin yin wannan a cikin matakai, ta amfani da ɗayan ƙaƙƙarfan halin software don rubuta aikace-aikacen hannu ta Android Studio.

Zazzage Android Studio

Irƙiri aikace-aikacen hannu ta amfani da Android Studio

  • Zazzage yanayin software daga gidan yanar gizon official kuma shigar da shi a kwamfutarka. Idan baka da JDK shigar, kana buƙatar shigar da shi kuma. Yi saitunan aikace-aikacen tsoho
  • Kaddamar da Android Studio
  • Zaɓi "Fara sabon aikin Android Studio" don ƙirƙirar sabon aikace-aikace.

  • A cikin “Sanya sabon aikinku” taga, saita sunan da ake so domin aikin (sunan aikace-aikacen)

  • Danna "Gaba"
  • A cikin "Zaɓi abubuwan da ƙididarka za ta gudana a cikin" taga, zaɓi dandamali wanda za ku rubuta aikace-aikacen. Danna Waya da Tablet. Sannan muna zaɓar ƙaramar sigar SDK (wannan yana nufin cewa tsarin rubutaccen aiki zai yi aiki ne a kan na'urori kamar wayoyin hannu da Allunan, idan suna da sigar Android, daidai da zaɓaɓɓen Minimun SDK ko kuma daga baya). Misali, zamu zabi fasalin 4.0.3 IceCreamSandwich

  • Danna "Gaba"
  • A cikin "anara Wani Ayyuka don Motsi", zaɓi Ayyuka don aikace-aikacenku, wanda rukuni na sunan iri ɗaya da alamomi ya wakilta a cikin fayil ɗin XML. Wannan nau'in samfuri ne wanda ya ƙunshi jerin lambobin misali don kula da yanayi na hali. Zamu zaɓi Ayyukan Babu komai, saboda yana da kyau don gwajin farko.

    • Danna "Gaba"
    • Kuma sai maɓallin Gama
    • Jira har sai Android Studio ya kirkiro aikin da dukkan mahimman tsarin sa.

Yana da mahimmanci a san cewa da farko kuna buƙatar sanin abubuwan da ke cikin app da kundin adireshin Gradle, yayin da suke ɗauke da mahimman fayilolin aikace-aikacenku (albarkatun aikin, lambar rubuce-rubuce, saiti). Sanya takamaiman kulawa ga babban fayil ɗin app. Babban mahimmancin abin da ya ƙunshi fayil ne bayyananne (duk an sanar da duk aikace-aikacen aikace-aikacen da damar samun dama a ciki), da kuma kundin adireshi na java (fayilolin aji), res (fayilolin albarkatun).

  • Haɗa wata na'ura don yin kuskure ko sanya shi abin kwaikwayo

  • Latsa maɓallin "Run" don ƙaddamar da aikace-aikacen. Yana yiwuwa a yi hakan ba tare da rubuta layi ɗaya na lamba ba, tunda abin da aka kara a baya ya riga ya ƙunshi lambar don fitar da saƙo "Sannu, duniya" zuwa na'urar

Wannan shine yadda zaku iya ƙirƙirar aikace-aikacen wayar hannu ta farko. Furtherarin gaba, nazarin Ayyuka daban-daban da kuma abubuwan daidaitattun abubuwa a cikin Android Studio, zaku iya rubuta shiri na kowane tsauri.

Pin
Send
Share
Send