Pehea e kākau ai i kahi papa Android mua. Pūnaewele Android

Pin
Send
Share
Send

He mea paʻakikī maoli ka hana ʻana i kāu pono kelepona no ka Android, ʻoiaʻiʻo, inā ʻaʻole ʻoe e hoʻohana i nā lawelawe pūnaewele ʻokoʻa e hāʻawi ana e hana i kahi mea i ke ʻano hoʻolālā, akā e uku paha ʻoe i ke kālā a i ʻole ka ʻāpono ʻana o kāu papahana e lilo i uku no kēia ʻano ʻo "ʻoluʻolu" e loaʻa nā hoʻolaha kūhelu.

No laila, ʻoi aku ka maikaʻi o ka hoʻolimalima manawa liʻiliʻi, ka hoʻoikaika a hana i kāu iho kelepona Android e hoʻohana ana i nā ʻōnaehana polokalamu kūikawā. E hoʻāʻo e hana i kēia i nā hana, e hoʻohana ana i kekahi o nā polokalamu uila mana ikaika loa no ka kākau ʻana i nā noi kelepona Android Studio.

Hoʻoiho iā Android Studio

E hana i kahi polokalamu kelepona me ka hoʻohana ʻana i ka Android Studio

  • Hoʻoiho i ka kelepona polokalamu mai ka pūnaewele paona a hoʻopaʻa iā ia ma kāu PC. Inā ʻaʻohe mea iā JDK i hoʻonohonoho ai, pono ʻoe e kau ia iā ia. E hana i nā ʻōnaehana noi
  • Hoʻokele i ke kikowaena Android
  • E koho "E hoʻomaka i kahi papahana hana pili hou iā Android" e hana i kahi noi hou.

  • Ma ka puka makani "E hōʻoia i kāu papahana hou", hoʻonohonoho i ka inoa i makemake ʻia no ka papahana (inoa inoa)

  • Kaomi “Next”
  • I ka "E koho i nā mea e holo ana kāu app ma ka puka" window, koho i ke kahua ma lalo āu e hele ai e kākau i ka noi. Kaomi Kaomi a me ke kelepona. A laila mākou i koho i ka hapa liʻiliʻi o ka SDK (ʻo ia ka mea e hana ai ka polokalamu kākau ʻia i nā polokalamu e like me nā kelepona kelepona a me nā papa, inā loaʻa iā lākou kahi Android, e like me ka Minimun SDK i koho ʻia a hope paha). No kahi laʻana, e koho mākou i ka version 4.0.3 IceCreamSandwich

  • Kaomi “Next”
  • Ma ka ʻāpana "Hoʻohui i kahi Hana i Pūnaewele", koho i ke Kuhi no kāu noi, i hōʻike ʻia e ka papa o ka inoa like a me ka hōʻailona ma ke ʻano o kahi faila XML. ʻO kēia kahi ʻano o ka papaʻaina e kau ana i nā hoʻonohonoho maʻamau no ka mālama ʻana i nā kūlana maʻamau. E koho mākou i kahi hana Empty, no ka mea he kūpono no ka noi noi mua.

    • Kaomi “Next”
    • A laila aia ka pihi Finish
    • E kali a hiki i ka hana ʻana o Android Studio i ka papahana a me kana papa kūpono e pono ai.

He mea pono ke hoʻomaopopo pono mua e pono ʻoe e kamaʻilio me ka ʻike o nā waihona a me nā kuhikuhi Gradle Scripts, i ka mea he nui nā waihona e pili ana i kāu noi (nā kumumanaʻo papahana, code code, setes). E makaʻala pono i ka faila kumu. ʻO ka mea nui e loaʻa ana ia he faila (ʻo nā hana noi a pau a me nā kuleana kuleana i hoʻolaha ʻia i loko)

  • Hoʻohui i kahi polokalamu no ka debugging a hana iā ia i kahi emulator

  • Kaomi aku i ka pihi "Run" e hoʻomaka i ka noi. Hiki iā ia ke hana me ka ʻole o ka kākau helu laina hoʻokahi o ka helu, ʻoiai ua loaʻa iā ia ka hana i kau ʻia ma ke ʻano no ka hoʻopuka ʻana i ka leka "Aloha ʻoe," i ka honua

Pēlā pehea e hana ai i ka noi kelepona mua. Eia hou, ke aʻo ʻana i nā hana like ʻole a me nā hoʻonohonoho like o nā mea maʻamau i ka Android Studio, hiki iā ʻoe ke kākau i kahi papahana o kekahi paʻakikī.

Pin
Send
Share
Send