XmoduloLinux FAQs, tips and tutorials
How to run Android emulator onUbuntu or DebianPostedonMarch3,2013byDanNanni 13Comments
Asthenameimplies,AndroidemulatorenablesyoutotestrunAndroidappsonnonAndroiddevicesorcomputersrunningtheemulator.
HereisguideonhowtorunAndroidemulatoronUbuntuorDebian.
AndroidemulatorcomeswithAndroidSDK,andthereforeyouneedtoinstallAndroidSDK.FollowthestepsbelowtoinstallAndroidSDKonLinux.
AndroidSDKrequiresJavaJDK.ThereforeinstallJavaJDKfirst.
ToinstallJavaJDKonUbuntuorDebian:
$ sudo apt-get install openjdk-7-jdk
ToinstallJavaJDKonCentOS,FedoraorRHEL,firstsetupRepoforgerepositoryonyoursystem,andthenrunthe
AndroidSDK AndroidArm FreeAndroid Android4
Home About Linux Q & A List Write for Us Advertise Contact
following.
$ sudo yum install java-1.7.0-openjdk-devel
NowdownloadAndroidSDKADTbundlefromAndroidofficialsite.UnzipthedownloadedADTbundle,andcopythesdkdirectorytoyourpreferredlocation.HereIassumethattheinstallationdirectoryofAndroidSDKis~/androidsdks.
For64bitLinuxuser:youmustinstallanotherprerequisitecalledia32-libssinceAndroidemulatoris32bitsoftware.Theia32-libspackagecontainsasetofruntimelibrariesfortheia32/i386architecture,configuredforuseona64bitkernel.On64bitLinux,themksdcardutilitywhichcreatesSDcardswillfailwithoutthispackage.
$ sudo apt-get install ia32-libs
Whileusingia32-libs,ifyouencounteranyerrorwith32bitlibGL.so,dothefollowing:
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1.2.0 /usr/lib/libGL.so
Enter your email address to subscribe
Youremailaddress Subscribe
Linux FAQ
+ 3.290
Seguir
Search
AndroidMobilePhoneAndroidGameEmulatorAndroidHowTo
InordertorunAndroidemulator,youfirstneedtocreateanewAVD(AndroidVirtualDevice)whichisanemulatorconfigurationfortheAndroiddevicetobeemulated.TocreateanewAVD,firstlaunchAndroidSDKManagerbyrunningthefollowing.
$ ~/android-sdks/tools/android
Goto"Tools">"ManageAVDs"onAndroidSDKManager'smenu.ItwillopenupAVDManager.
Clickon"Add"buttontocreateanewAVD.AnexampleconfigurationofanewAVDisshownbelow.
HowtoinstalldummynetonCentOS
HowtoinstallandrunAndroidVMonVMwarePlayer
HowtorunVNCserveronAndroidx86
HowtoinstallandrunAndroidx86onVirtualBox
Howtodevelop Howtoconfigure
Related Linux FAQsDownloadAndroidAppswww.mobogenie.com/AndroidManager
GetAllYourFavoriteApps&GamesInstantlyforAndroidPhone,Tablet
IfanAVDhasbeensuccessfullycreated,youwillseethe
crossplatformmobileappsonLinux
Nagiosforaudioalertsandmobilenotifications
Linux Questions and Answers
HowtoremoveMySQLonUbuntuorDebianHowtoinstallJavaruntimeonLinuxHowtoupgradeFirefoxonUbuntuHowtoupgradegcconCentOSHowtoinstallQt5onLinuxHowtodisableaparticularAppArmorprofileonUbuntuHowtofixunknownurltype:httpserrorineasy_installHowtodisableguestlogininUbuntudesktopHowtoconfigurestaticDNSonCentOS
followingconfirmation.
YoucancheckthelistofavailableAVDsasfollows.
$ ~/android-sdk/android list avds
Available Android Virtual Devices: Name: my_avd Path: /home/xmodulo/.android/avd/my_avd.avd Target: Android 4.2 (API level 17) ABI: armeabi-v7a Skin: 800x1280 Sdcard: 1G
orFedoraHowtocreateaGREtunnelonLinux
Xmodulo List
wxHexEditorKdenliveMeldPhotoRecAdminerApacheHTTPServerKDEConnectCactigcalcliChromiumOS
TolaunchAndroidemulatorwiththeAVDthatyouhavecreated,highlighttheAVDonAVDManager,andclickon"Start"buttonontherightsidebar.
Alternatively,youcanstartAndroidemulatordirectlyfromcommandlineasfollows.Inthiscase,specify"@[your_avd_name]"asanargumenttotheemulator.
$ emulator @my_avd
BootingupAndroidemulatormaybeslow(eventakingminutes)dependingonyourhardware.OnceAndroidemulatorissuccessfullylaunched,youwillseeanrunninginstanceofAndroiddevice.
Subscribe to XmoduloDoyouwanttoreceiveLinuxFAQs,detailedtutorialsand
PythonGUIAppBuilderwww.lianja.com
BuildGUI,WebandMobileApps.FreeDownloadWindows/OSX/Linux
SharethisFAQ:
Compartilhar 3 21Like Tweet 5
Reply
tipspublishedatXmodulo?Enteryouremailaddressbelow,andwewilldeliverourLinuxpostsstraighttoyouremailbox,forfree.DeliverypoweredbyGoogleFeedburner.
Youremailaddress Subscribe
Related FAQs:Howtoinstall.apkfileonAndroidphoneortabletHowtorecordscreenactivitiesonAndroidHowtocopyortransfermultiplefilestoAndroiddevicesHowtochangecameraresolutionprogrammaticallyinAndroidHowtorunVNCserveronAndroidx86
Categories:AndroidTags:emulation
13 thoughts on How to run Android emulator onUbuntu or Debian
walteravonMay6,2013at9:52amsaid:
HiDanNanni,
Toimproveyourhowto,pleaseaddthefollowingsinceacleanubuntuinstallwon'thavethispackage!
Share 1
Reply
Reply
Reply
Reply
sudoaptgetinstallopenjdk7jdk
Thisfixedtheerrorwhenrunning"~/adtbundlelinuxx86_6420130219/sdk/tools/android":java:notfound:
DanNannionMay6,2013at1:32pmsaid:
Thanksforyourcomment.Youareright.Intheoriginalpost,IdidnotgointothedetailsoninstallingAndroidSDK.IupdatedtheposttoincludeinstructionsonhowtoinstallAndroidSDK.
walteravonMay6,2013at10:06amsaid:
Youmightalsoaddthatrunningtheemulatoris"slow"and"booting"theavdcantakeacoupleof
minuteseasilywhileithangsontheandroidscreen.
DanNannionMay6,2013at1:34pmsaid:
Sure,noted.
MaartenonJune23,2013at10:46amsaid:
Thanksforyourmanual.Iamnotfamiliarwithsegfault.Isthereasolution
forthemessageIget?AndoidSDKmanagerstartsupandcanaddanewAVDin
Reply
Reply
Reply
DeviceManager.WhenIstarttheAVD,segfaultoccurswithnoemulatorscreen.OnUbuntu12.04.2LTS:kernel:[15891.120233]emulatorarm[12235]:segfaultat10ipb6f2f294spb55921b0error4inlibGL.so.173.14.36[b6ee5000+88000].
DanNannionJune23,2013at1:17pmsaid:
Areyouusing64bitmachine?Ifso,therearesomeknownissueswithAndroidemulatorproducingsegmentationfaultsdueitspoorsupportforOpenGLESonx86_64.Try32bitmachineorusedifferentversionsofSDK(e.g.,version16).
MaartenonJune29,2013at9:54amsaid:
Iamnotthatfamiliarwiththespecs.Couldthisbea(not)workingcombination?
Linuxdesktop3.5.034generic#55~precise1UbuntuSMPFriJun716:32:06UTC2013i686i686i386GNU/Linux.javaversion"1.6.0_27"OpenJDKRuntimeEnvironment(IcedTea61.12.5)(6b271.12.50ubuntu0.12.04.1)OpenJDKServerVM(build20.0b12,mixedmode)
DanNannionJune29,2013at11:50amsaid:
Reply
Reply
Reply
Reply
Thatshouldbefine.
ChandanonAugust2,2013at9:04amsaid:
Myemulatorstartsbutitshowsablankscreenwithkeysontheside.
Cananyonetellwhyitishappening?
ItayonNovember19,2013at1:16amsaid:
Didyoufigureitout?Igetthesameproblem
HumbertoFerreiraonAugust13,2013at8:53amsaid:
Thankyouverymuch!ItworkedperfectlyonCrunchbang!
Won'tstartatallonSeptember9,2013at9:09pmsaid:
Myemulatorwon'tevenstart.Igetadialoguewith"startingemulatorforAVD'Testing'"witha
progressbar.Theprogressbarreaches100%,andthenafterashortdelay,thedialoguedisappears.Anemulator64armprocessisleftrunningat100%CPUand1.4%memory,apparentlydoingnothing.Noemulatorwindowisshown.
Outputwhenrunmanually:http://paste.debian.net/37622/
ReplyAlekseyonNovember29,2013at4:17pmsaid:
Didyousolvetheproblem?I'veencounteredittoo.
Leave a comment
Youremailaddresswillnotbepublished.Requiredfieldsaremarked*
Name*
Email*
Website
Comment
HowtoloadorimportoarfilesinOpenSim
Howtoresolvesvnconflictcausedbydeletedfile
PostComment
Notifymeoffollowupcommentsbyemail.Notifymeofnewpostsbyemail.
About Advertise Write for Us Contact