Android Studio, 2 nga huarahi ngawari ki te whakauru i runga i te Ubuntu 22.04

mo Android Studio i runga i te Ubuntu 22.04

I roto i te tuhinga e whai ake nei ka tirohia e maatau 2 nga huarahi ngawari ki te whakauru i te Android Studio i runga i te Ubuntu 22.04 LTS. Ka taea e tatou te whakamahi i te kete Snap, te whakamahi ranei i te whiringa whakaurunga a-ringa hei tango i te kaupapa mai i te paetukutuku kaupapa.

He maha nga taupānga Android i enei ra ka whakawhanakehia ma te whakamahi i te Android Studio. I tenei rorohiko ka kitea e nga kaiwhakamahi he maha nga ahuatanga e whakarato ana i a taiao whanaketanga tere me te pumau. I tua atu, he anga whakamatautau pakari, e tautoko ana i te tautoko mata-maha, emulators, me te maha atu.

Whakauruhia te Android Studio ki Ubuntu 22.04

Nga whakaritenga

I mua i te haere ki te whakaurunga, he mea tika kia whai whakaaro ki te nga whakaritenga iti e tika ana mo tenei kaupapa kia mahi tika. Hei whakauru i te Android Studio ki to punaha Ubuntu me 2 GB o RAM (ahakoa 8 GB e taunakitia ana). Neke atu i te 4 GB o te mokowā kōpae koreutu me te taumira o te 1920 x 1080 pika ka tūtohutia mo nga hua tirohanga tino pai.

Kei te hiahia koe ki te kete whanaketanga Java me te taiao wa whakahaere Java (Ko JRE). Ko te whakaterenga taputapu emulator Android me whai tukatuka Intel (ahakoa he mea whiriwhiri tenei) e tautoko ana i te Intel VT-x, Intel EM64T, me te Whakahaere i nga hangarau mahi Mono (XD) Moka. Ki te kore he pūtukatuka penei, ka taea e nga taupānga Android te whakahaere i runga i te emulator, engari ka puhoi ake te mahi.

Whakahouhia te Ubuntu 22.04 LTS

Ko te taahiraa tuatahi me mahi maatau mo te whakaurunga whakahouhia nga putunga Ubuntu me te whakahou i nga kohinga kua whakauruhia. Mo tenei, i roto i te tauranga (Ctrl+Alt+T) me tuhi noa:

sudo apt update; sudo apt upgrade

Whakauruhia te Android Studio

E rua nga huarahi ngawari ka taea e taatau te whakauru i te Android Studio ki runga Ubuntu 22.04 LTS. Ko te tuatahi kei te whakamahi i te kaiwhakahaere kete SNAP, ko tetahi atu kei te tango a ringa i te kete Android Studio. I konei ka whakamahia e te katoa te mea e tika ana.

Ma te whakamahi i te SNAP

Koinei te tikanga tino ngawari ki te whakauru i tenei papahanga whanaketanga. Ka kitea te putanga hou o tenei papatono waatea i roto Maheni. I tua atu ka taea e tatou te mahi i roto i te tauranga (Ctrl + Alt + T) e whai ake nei tāuta whakahau:

tāutahia te studio phi hei putunga mai i te tauranga

sudo snap install android-studio --classic

Mena kaore koe e hiahia ki te whakamahi i te raina whakahau, ka taea ano e koe whakatuwhera te Ubuntu Software Center me te whakauru i te Android Studio.

whakauruhia mai i te pokapū rorohiko

Ma te whakamahi i te kete kua tangohia a ringa

Mena kaore koe e hiahia ki te whakamahi i te SNAP, ka taea ano e koe tango a ringa i ana konae hei whakamahi i tenei kaupapa i Ubuntu 22.04.

I te mea e hiahia ana a Android Studio kia tika te mahi a JDK, ka timata maatau tāuta te putanga hou o Open JDK mā te whakamahi i te APT e whai ake nei:

tāuta jdk taunoa

sudo apt install default-jdk

Ka mutu ana te whakauru, kei a maatau noa tirohia te putanga kua whakauruhia patopato i te tauranga:

tirohia te putanga java

java --version
Tikiake i te mōkihi Android Studio

Paetukutuku ki te tango i te Android Studio

Ka rite ki taku korero i runga ake nei, ka taea whiwhi i tenei rorohiko e whakaaro ana kia whakauruhia ki runga Gnu/Linux tika mai i to paetukutuku mana.

whakaae nga tikanga me nga tikanga ki te tango i te studio phi

I mua i te tango, me mahi maatau whakaae nga tikanga me nga tikanga ma te panui i te haki kei raro o te matapihi.

Wewetehia te konae

Ina tangohia te konae .tar.gz mo Gnu/Linux, kua tae ki te wa ki te wetewete i te konae. Ki te mahi i tenei, me hiahia koe haere ki te kōpaki i tiakina e matou te kete:

cd Descargas

Ko te mahi ka whai ake wetewetehia te konae ki te kōpaki / usr / rohe me te whakahau:

wetewetehia te putea studio phi

sudo tar -xvf android-studio-*.*-linux.tar.gz -C /usr/local/
Whakahaerehia te tuhinga tatūnga Android Studio

Whai muri i te tangohanga o te kete me te neke ki te kōpaki rohe, Me whakahaere te tuhinga hei whakauru me te whirihora i te Android me te whakahau:

tīpakohia he tāutanga o mua

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

Mena kei a koe etahi whirihoranga o mua, kōpaki whakaurunga ranei, ka taea e matou te kowhiri, ki te kore ka waiho maatau te whiringa taunoa.

Ko te matapihi e whai ake nei ka whakaae tatou tohua te huarahi e hiahia ana matou ki te whirihora i te taiao whanaketanga mo te Android Studio i Ubuntu 22.04. Hei whakauru noa i nga waahanga e pai ana ki a maatau, ka tohua e maatau te whiringa "ritenga«. Ki te kore, waiho te whiringa "Paerewa".

Whakaritenga IDE

Ahakoa ka taea hoki te whirihora i muri mai, ka taea tohua he kaupapa pouri, marama ranei hei mahi.

tohua te kaupapa pouri

Ko te mahi ka whai ake whakaū i nga mea katoa ka whakauruhia e te Studio Android i roto i ta maatau tiima.

manatoko tautuhinga phi studio

Waihangahia te pokatata papamahi Android Studio me te whakauru raina whakahau

Kia oti te whakaurunga, ka kite tatou i tera Ka hangaia e te Android Studio he kaupapa hou ka tuku i a maatau ki te whakaingoa. Na ka kitea tatou i runga i te mata matua o tenei papaaho whanaketanga tono.

hanga kaiwhakaputa mo te studio phi

Si ka paatohia e matou "Utauta» ka kowhiri i te whiringa "Waihangahia te Whakauru Papamahi", ka hangaia he pokatata hei uru atu ki te Android Studio mai i te kaiwhakaputa tono punaha.

kaiwhakarewa i hangaia mo te studio phi

Hei whakahaere i tenei papatono mai i te raina whakahau, ka taea e taatau te kowhiri "Waihangahia te Whakarewa raina whakahau«. Kia oti tenei, ka taea e tatou te timata i te papaapapa ma te pato noa i te tauranga (Ctrl+Alt+T):

studio

Ka taea te tiki etahi atu korero mo te Android Studio, i roto i te aratohu kaiwhakamahi e tukuna ana e ratou i roto i te paetukutuku o tenei kaupapa.


Ko nga korero o te tuhinga e piri ana ki o maatau kaupapa o matatika whakatika. Ki te ripoata i tetahi paatene paato Here.

He korero, waiho i a koe

Waiho to korero

Ka kore e whakaputaina tō wāhitau īmēra. Kua tohua ngā āpure e hiahiatia ana ki *

*

*

  1. He kawenga mo nga raraunga: Miguel Ángel Gatón
  2. Te kaupapa o te raraunga: Whakahaerehia te SPAM, te whakahaere korero.
  3. Ture: To whakaae
  4. Whakawhitinga korero: Kaore nga korero e tukuna ki nga taha tuatoru engari ma te ture herenga.
  5. Rokiroki raraunga: Paetukutuku e whakahaerehia ana e Occentus Networks (EU)
  6. Tika: I nga wa katoa ka taea e koe te whakaiti, te whakaora me te muku i o korero.

  1.   Juan Carlos ka mea

    Ma te mahi sudo sh /usr/local/android-studio/bin/studio.sh ka hono te whakaurunga ki te kaiwhakamahi pakiaka.