Sie sind auf Seite 1von 13

Home

About

Linux Q & A

List

Write for Us

Advertise

Contact

Xmodulo
Linux FAQs, tips and tutorials
AndroidSDK AndroidArm FreeAndroid Android4

How to run Android emulator on Ubuntu or Debian


PostedonMarch3,2013byDanNanni 13Comments

Asthenameimplies,Androidemulatorenablesyoutotestrun AndroidappsonnonAndroiddevicesorcomputersrunning theemulator. HereisguideonhowtorunAndroidemulatoronUbuntuor Debian. AndroidemulatorcomeswithAndroidSDK,andthereforeyou needtoinstallAndroidSDK.Followthestepsbelowtoinstall AndroidSDKonLinux. AndroidSDKrequiresJavaJDK.ThereforeinstallJavaJDK first. ToinstallJavaJDKonUbuntuorDebian:
$s u d oa p t g e ti n s t a l lo p e n j d k 7 j d k

ToinstallJavaJDKonCentOS,FedoraorRHEL,firstsetup Repoforgerepositoryonyoursystem,andthenrunthe

following.
Enter your email address to subscribe
$s u d oy u mi n s t a l lj a v a 1 . 7 . 0 o p e n j d k d e v e l

Youremailaddress

Subscribe

NowdownloadAndroidSDKADTbundlefromAndroidofficial site.UnzipthedownloadedADTbundle,andcopythesdk directorytoyourpreferredlocation.HereIassumethatthe installationdirectoryofAndroidSDKis~/androidsdks. For64bitLinuxuser:youmustinstallanotherprerequisite calledi a 3 2 l i b s sinceAndroidemulatoris32bitsoftware. Thei a 3 2 l i b s packagecontainsasetofruntimelibrariesfor theia32/i386architecture,configuredforuseona64bit kernel.On64bitLinux,them k s d c a r d utilitywhichcreatesSD cardswillfailwithoutthispackage.
$s u d oa p t g e ti n s t a l li a 3 2 l i b s

Linux FAQ
Seguir
+ 3.290

Search

Whileusingi a 3 2 l i b s ,ifyouencounteranyerrorwith32bit libGL.so,dothefollowing:


$s u d ol ns/ u s r / l i b / i 3 8 6 l i n u x g n u / m e s a / l i b G L . s o . 1 . 2 . 0/ u s r / l i b / l i b G L . s o

AndroidMobilePhone AndroidGameEmulator AndroidHowTo

DownloadAndroidApps
www.mobogenie.com/AndroidManager GetAllYourFavoriteApps&Games InstantlyforAndroidPhone,Tablet

Related Linux FAQs

Howtoinstall dummyneton CentOS

Howtoinstalland runAndroidVMon VMwarePlayer

InordertorunAndroidemulator,youfirstneedtocreateanew AVD(AndroidVirtualDevice)whichisanemulator configurationfortheAndroiddevicetobeemulated.Tocreate anewAVD,firstlaunchAndroidSDKManagerbyrunningthe following.


$~ / a n d r o i d s d k s / t o o l s / a n d r o i d

Goto"Tools">"ManageAVDs"onAndroidSDKManager's menu.ItwillopenupAVDManager. Clickon"Add"buttontocreateanewAVD.Anexample configurationofanewAVDisshownbelow.

HowtorunVNC Howtoinstalland serveronAndroid runAndroidx86 x86 onVirtualBox

Howtodevelop

Howtoconfigure

crossplatform mobileappson Linux

Nagiosforaudio alertsandmobile notifications

Linux Questions and Answers

IfanAVDhasbeensuccessfullycreated,youwillseethe

HowtoremoveMySQLonUbuntuor Debian HowtoinstallJavaruntimeonLinux HowtoupgradeFirefoxonUbuntu HowtoupgradegcconCentOS HowtoinstallQt5onLinux HowtodisableaparticularAppArmor profileonUbuntu Howtofixunknownurltype:httpserror ineasy_install HowtodisableguestlogininUbuntu desktop HowtoconfigurestaticDNSonCentOS

followingconfirmation.

orFedora HowtocreateaGREtunnelonLinux
Xmodulo List

wxHexEditor Kdenlive Meld PhotoRec Adminer ApacheHTTPServer KDEConnect Cacti gcalcli ChromiumOS

YoucancheckthelistofavailableAVDsasfollows.
$~ / a n d r o i d s d k / a n d r o i dl i s ta v d s

A v a i l a b l eA n d r o i dV i r t u a lD e v i c e s : N a m e :m y _ a v d P a t h :/ h o m e / x m o d u l o / . a n d r o i d / a v d / m y _ a v d . a v d T a r g e t :A n d r o i d4 . 2( A P Il e v e l1 7 ) A B I :a r m e a b i v 7 a S k i n :8 0 0 x 1 2 8 0 S d c a r d :1 G

TolaunchAndroidemulatorwiththeAVDthatyouhave created,highlighttheAVDonAVDManager,andclickon "Start"buttonontherightsidebar.

Alternatively,youcanstartAndroidemulatordirectlyfrom commandlineasfollows.Inthiscase,specify "@[your_avd_name]"asanargumenttotheemulator.


$e m u l a t o r@ m y _ a v d

BootingupAndroidemulatormaybeslow(eventaking minutes)dependingonyourhardware.OnceAndroidemulator issuccessfullylaunched,youwillseeanrunninginstanceof Androiddevice.

PythonGUIAppBuilder
www.lianja.com BuildGUI,WebandMobileApps.Free DownloadWindows/OSX/Linux

Subscribe to Xmodulo
DoyouwanttoreceiveLinuxFAQs,detailedtutorialsand

tips publishedatXmodulo?Enteryouremailaddressbelow, andwewilldeliverourLinuxpostsstraighttoyouremailbox, forfree.DeliverypoweredbyGoogleFeedburner.


Youremailaddress Subscribe
3 Like 21 Tweet 5

Share thisFAQ:

Compartilhar

Share

Related FAQs:
Howtoinstall.apkfileonAndroidphoneortablet HowtorecordscreenactivitiesonAndroid HowtocopyortransfermultiplefilestoAndroiddevices Howtochangecameraresolutionprogrammaticallyin Android HowtorunVNCserveronAndroidx86
Categories:Android Tags:emulation

13 thoughts on How to run Android emulator on Ubuntu or Debian


walterav onMay6,2013at9:52am said: HiDanNanni, Toimproveyourhowto,pleaseaddthefollowing sinceacleanubuntuinstallwon'thavethispackage!
Reply

sudoaptgetinstallopenjdk7jdk Thisfixedtheerrorwhenrunning"~/adtbundlelinuxx86_64 20130219/sdk/tools/android":java:notfound: DanNannionMay6,2013at1:32pm said:

Reply

Thanksforyourcomment.Youareright.Inthe originalpost,Ididnotgointothedetailsoninstalling AndroidSDK.Iupdatedtheposttoincludeinstructionson howtoinstallAndroidSDK. walterav onMay6,2013at10:06am said:

Reply

Youmightalsoaddthatrunningtheemulatoris "slow"and"booting"theavdcantakeacoupleof minuteseasilywhileithangsontheandroidscreen. DanNannionMay6,2013at1:34pm said: Sure,noted. MaartenonJune23,2013at10:46am said:

Reply

Reply

Thanksforyourmanual. Iamnotfamiliarwithsegfault.Isthereasolution forthemessageIget? AndoidSDKmanagerstartsupandcanaddanewAVDin

DeviceManager. WhenIstarttheAVD,segfaultoccurswithnoemulatorscreen. OnUbuntu12.04.2LTS: kernel:[15891.120233]emulatorarm[12235]:segfaultat10ip b6f2f294spb55921b0error4in libGL.so.173.14.36[b6ee5000+88000]. DanNannionJune23,2013at1:17pm said:

Reply

Areyouusing64bitmachine?Ifso,thereare someknownissueswithAndroidemulatorproducing segmentationfaultsdueitspoorsupportforOpenGLESon x86_64.Try32bitmachineorusedifferentversionsofSDK (e.g.,version16). MaartenonJune29,2013at9:54am said:

Reply

Iamnotthatfamiliarwiththespecs.Couldthis bea(not)workingcombination? Linuxdesktop3.5.034generic#55~precise1UbuntuSMPFri Jun716:32:06UTC2013i686i686i386GNU/Linux. javaversion"1.6.0_27" OpenJDKRuntimeEnvironment(IcedTea61.12.5)(6b27 1.12.50ubuntu0.12.04.1) OpenJDKServerVM(build20.0b12,mixedmode) DanNannionJune29,2013at11:50amsaid:

Reply

Thatshouldbefine. ChandanonAugust2, 2013at9:04amsaid:

Reply

Myemulatorstartsbutitshowsa blankscreenwithkeysontheside. Cananyonetellwhyitishappening? Itay onNovember19,2013at1:16am said: Didyoufigureitout?Igetthesameproblem HumbertoFerreira onAugust13,2013 at8:53amsaid:

Reply

Reply

Thankyouverymuch!Itworkedperfectlyon Crunchbang!

Won'tstartatallonSeptember9,2013 at9:09pmsaid:

Reply

Myemulatorwon'tevenstart.Igetadialogue with"startingemulatorforAVD'Testing'"witha progressbar.Theprogressbarreaches100%,andthenafter ashortdelay,thedialoguedisappears.Anemulator64arm processisleftrunningat100%CPUand1.4%memory, apparentlydoingnothing.Noemulatorwindowisshown. Outputwhenrunmanually:http://paste.debian.net/37622/

Aleksey onNovember29,2013at4:17 pmsaid: too.

Reply

Didyousolvetheproblem?I'veencounteredit

Leave a comment
Youremailaddresswillnotbepublished.Requiredfieldsare marked*
Name*

Email*

Website

Comment

PostComment

Notifymeoffollowupcommentsbyemail. Notifymeofnewpostsbyemail. HowtoloadorimportoarfilesinOpenSim Howtoresolvesvnconflictcausedbydeletedfile

About

Advertise

Write for Us

Contact

Das könnte Ihnen auch gefallen