Android Studio, Hanyoyi 2 masu sauƙi don shigar da shi akan Ubuntu 22.04

game da Android Studio akan Ubuntu 22.04

A cikin labarin na gaba zamu duba Hanyoyi 2 masu sauƙi don shigar da Android Studio akan Ubuntu 22.04 LTS. Za mu iya amfani da kunshin Snap, ko amfani da zaɓin shigarwa na hannu wanda za mu sauke shirin daga gidan yanar gizon aikin.

Yawancin aikace-aikacen Android a yau ana haɓaka su ta amfani da Android Studio. A cikin wannan software masu amfani za su iya samu fasali da yawa da ke ba da a yanayin ci gaba sauri kuma barga. Bugu da ƙari, yana da ƙaƙƙarfan tsarin gwaji, wanda ke goyan bayan tallafin allo da yawa, masu kwaikwaya, da ƙari mai yawa.

Shigar da Android Studio akan Ubuntu 22.04

Bukatun

Kafin ci gaba da shigarwa, ya zama dole don la'akari da mafi ƙarancin buƙatun da ake buƙata don wannan shirin yayi aiki daidai. Don shigar da Android Studio akan tsarin Ubuntu dole ne mu sami aƙalla 2 GB na RAM (duk da cewa an bada shawarar 8GB). Fiye da 4 GB na sararin faifai kyauta da ƙudurin pixels 1920 x 1080 ana kuma ba da shawarar don kyakkyawan sakamako na kallo.

Kuna buƙatar kayan haɓakawa na Java da yanayin lokacin aiki na Java (JRE). Haɓakar kayan aikin emulator na Android yana buƙatar na'ura mai sarrafa Intel (Intel).ko da yake wannan na zaɓi ne) wanda ke goyan bayan Intel VT-x, Intel EM64T, da aiwatar da Kashe fasahar ayyukan aiki (XD) Bit. Idan ba tare da irin wannan na'ura ba, aikace-aikacen Android na iya aiki akan emulator, amma aiwatarwa zai kasance a hankali.

Sabunta Ubuntu 22.04 LTS

Mataki na farko da muke buƙatar yi don shigarwa shine sabunta ma'ajiyar Ubuntu da sabunta fakitin da aka shigar. Don wannan, a cikin tasha (Ctrl + Alt + T) zai zama dole kawai a rubuta:

sudo apt update; sudo apt upgrade

Shigar da Android Studio

Akwai hanyoyi guda biyu masu sauƙi waɗanda za mu iya shigar da Android Studio akan Ubuntu 22.04 LTS. Na farko za a yi amfani da mai sarrafa fakitin SNAP, ɗayan kuma za a zazzage fakitin Android Studio da hannu. A nan kowa yana amfani da wanda ya fi dacewa.

Yin amfani da SNAP

Wannan ba tare da shakka ba shine hanya mafi sauƙi don shigar da wannan dandalin haɓakawa. Ana iya samun sabon sigar wannan shirin akwai in Snapcraft. Bugu da kari, za mu iya aiwatar a cikin tasha (Ctrl + Alt + T) masu zuwa shigar da umarni:

shigar da studio na android a matsayin karye daga tashar

sudo snap install android-studio --classic

Idan baku son amfani da layin umarni, kuna iya kuma bude Cibiyar Software na Ubuntu kuma shigar da Android Studio.

girka daga cibiyar software

Amfani da fakitin da aka zazzage da hannu

Idan ba ku son amfani da SNAP, kuna iya kuma da hannu zazzage fayilolin sa don amfani da wannan shirin a cikin Ubuntu 22.04.

Tunda Android Studio yana buƙatar JDK yayi aiki da kyau, zamu fara da shigar da sabon sigar Buɗe JDK ta amfani da APT mai bi:

shigar da tsoho jdk

sudo apt install default-jdk

Da zarar an gama shigarwa, muna da kawai duba sigar da aka shigar buga a m:

duba sigar java

java --version
Zazzage kunshin Android Studio

Shafin yanar gizo don zazzage Android Studio

Kamar yadda na fada a sama, yana yiwuwa sami wannan software da aka yi niyyar shigar akan Gnu/Linux kai tsaye daga naku shafin yanar gizo.

yarda da sharuddan da za a sauke android studio

Kafin saukewa, za mu yi yarda da sharuɗɗa da sharuddan ta danna kan cak ɗin da ke ƙasan taga.

Bude fayil din

Da zarar an sauke fayil ɗin .tar.gz na Gnu/Linux, lokaci yayi da za a cire shi. Don yin wannan, kuna buƙatar je zuwa babban fayil ɗin da muka ajiye kunshin a ciki:

cd Descargas

Mataki na gaba zai kasance cire fayil ɗin zuwa babban fayil / usr / gida tare da umarnin:

unzip android studio kunshin

sudo tar -xvf android-studio-*.*-linux.tar.gz -C /usr/local/
Gudanar da rubutun saitin Studio Studio

Bayan cire kunshin kuma matsar da shi zuwa babban fayil ɗin gida. Bari mu gudanar da rubutun don shigarwa da daidaita Android tare da umarnin:

zaɓi shigarwa na baya

sudo sh /usr/local/android-studio/bin/studio.sh

Idan kun riga kuna da wani tsari na baya ko babban fayil ɗin shigarwa, zamu iya zaɓar ta, in ba haka ba za mu iya barin tsoho zaɓi.

Tagan na gaba zai bamu damar zaɓi hanyar da muke son saita yanayin ci gaba don Android Studio a cikin Ubuntu 22.04. Don shigar kawai abubuwan da ke sha'awar mu, za mu zaɓi zaɓi «Custom«. In ba haka ba, bar zaɓin "Standard".

Gyaran IDE

Ko da yake za mu iya daidaita shi daga baya, za mu iya zaɓi jigon duhu ko haske don aiki da shi.

zaɓi jigon duhu

Mataki na gaba zai kasance tabbatar da duk abin da Android Studio zai shigar a cikin kungiyarmu.

tabbatar da saitin android studio

Ƙirƙiri gajeriyar hanyar tebur ta Android Studio da shigar da layin umarni

Da zarar an gama shigarwa, za mu ga hakan Android Studio zai ƙirƙiri sabon aiki kuma ya ba mu damar ba shi suna. Sannan zamu tsinci kanmu akan babban allon wannan dandali na bunkasa aikace-aikacen.

ƙirƙirar launchers don android studio

Si mu danna"Kayayyakin aiki,» kuma zaɓi zaɓi «Createirƙiri shigarwar Desktop", za a ƙirƙiri wata gajeriyar hanya wacce za a iya samun sauƙin shiga Android Studio daga ƙaddamar da aikace-aikacen tsarin.

launcher da aka gina don android studio

Don gudanar da wannan shirin daga layin umarni, za mu iya zaɓar «Ƙirƙiri Launcher layin umarni«. Da zarar an yi haka, za mu iya fara dandali kawai ta hanyar buga a cikin tasha (Ctrl+Alt+T):

studio

Ana iya samun sa ƙarin bayani game da Android Studio, a cikin jagorar mai amfani da suke bayarwa a cikin shafin yanar gizon wannan aikin.


Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

Sharhi, bar naka

Bar tsokaci

Your email address ba za a buga. Bukata filayen suna alama da *

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.

  1.   Juan Carlos m

    Ta hanyar yin sudo sh /usr/local/android-studio/bin/studio.sh shigarwa yana da alaƙa da tushen mai amfani.