Welcome to my tutorial on how to Install Android Development Tools. I received many requests on how to do this and it is a great topic to cover right before I start my Android Development Tutorial.
I’ll cover how to install Googles ADT plugin, all of the common errors people get and take you through running your first app. Many important things need to be pointed out like the fact that Googles emulators are terribly slow. If you haven’t installed Eclipse yet, definitely checkout my tutorial Install Eclipse for Java first.
If you like videos like this, it helps to tell Google + with a click here [googleplusone]
Step-by-Step Way to Install Android Development Tools
Installing the Android SDK on Mac and PC 1. Don't get the Android Developer Tools at http://developer.android.com/sdk/index.html 2. Install Eclipse for Java - Eclipse IDE for Java Developers - http://www.eclipse.org/downloads/packages/release/indigo/sr2 a. Make sure the path to Eclipse doesn't contain any spaces. If it does then expect errors. Here is mine in Windows C:\Users\Derek\Documents\eclipse-java-indigo-SR2-win32-x86_64\eclipse 3. Eclipse - Help - Install New Software a. Work with: Click Add b. Name: Android Developer Tools c. Location: http://dl-ssl.google.com/android/eclipse/ d. Shows list of plugins - Click Next e. Accept the license agreement - Next - Finish f. Restart Eclipse g. Help - Check for Updates to update the ADT 4. Create a new project - File - New - Project - Android Project Application a. Application Name: HelloWorld b. Replace example in Package Name with your web address c. Define the version of the Android SDK you plan to develop with 5. Setup an Android Virtual Device a. Windows users will have to open the Android SDK Manager b. Select the chosen emulator and click start c. Wait it is terribly slow and it normally crashes the first 3 times 6. If you have trouble executing check in folders res - layout. If you see a file named activity_main.out.xml delete it. Then click Project - Clean in the top menu bar a. Select HelloWorld in the Package Explorer and then run the emulator b. You can help solve this error by going : Preferences - Run/Debug - Launching - Launch Operation and then check Always Launch Previously....
Carnt wait for the Android development tutorials…
hope it will it be a short game App… a Androids Asteroids Game perhaps.
cool let me kno.. cya
I’m going to cover everything imaginable in it. Feel free to leave requests. I will definitely make an asteroids type game because it is a great game to teach with. I hope you like it
please i don’t get it the download thing i mean can you please help me get another simple way to download it. and am a beginner i love you python programming lecture is more advance.
What specifically are you having trouble downloading? I’ll try to help
why wont you use netbeans 7.3?
I the IDE I use in tutorials is normally the one I found easiest to install on every OS. I found Eclipse was easier to install then NetBeans.
Cause i need a the url for netbeans like the respository
Hey derek it is a request,please can you develope a racing app like need for speed that takes about 15-20 mb of space on your phone for free
I’ll be starting my Android game tutorial soon. Everything I make will be 100% free.
Hi Derek,
You really kind and thank you… i really love your work it is very nice… thank you man really am.
Thank you very much for the nice compliments 🙂 I greatly appreciate them.
I’ve been wanting for Android Development tutorials explained by you. Thanks Derek! =)
Thank you for checking out my site 🙂 I’m always very happy to be able to help
I had an error. It says location of the Android SDK has not been set up in the preferences. What do I do?
Check out the new video Solving Android SDK problems. I cover that
or it says cannot find ‘tools’ inside SDK C:\Users\MYACCOUNTNAME\android-sdks
Does that directory exist? Mine actually is stored in my documents folder. Search for android-sdks on your system
I’m looking forward to these tutorials. Will be watching them and hopefully developing Android apps soon!
I’ll cover everything imaginable. I’m glad your excited about it 🙂
When i run the hello world application, the emulator runs but then i never get “hello world!” printed on the screen, and the screen shows this text: “charging 50%”.
What can i do to fix this ?
Try clicking on Run Configurations instead of Run. I show you how to solve that problem and others in this tutorial Solving Android SDK Problems
Hi Derek,
I came across your tutorials and I really like them. Looking forward to see some real application development examples. Thank you for sharing the knowledge with the Android community. I really appreciate.
Thanks,
Raj
You are very welcome 🙂 I will keep making Android apps until I have covered most everything. Thank you for visiting my little website
i have already installed ecpilse and android enumlater ,but of old version. So i should remove it or go for upgrade???
If it still works for you feel free to use what ever you are comfortable with
Hello Derek,
I wish to learn app development for Android . But I guess I have to learn Java first before jumping straight to Android app development …
Tell me what should I do . I am learning Java from “Head First Java” .
Should I also watch your Java tutorials first ??
Do reply ..
Thaank You.. 🙂
You just need to understand the basics of Java to program with Android. Here is my Java video tutorial. All you need to watch are parts: 1 -7, 9, 11 – 18 and you should be ready to go. Feel free to ask questions
thank you very much for this information. this is what i was asking about
Great I’m glad I could help. You’re very welcome 🙂
Derek, many thanks for the Java, Android tutorial series. I had Eclipse installed previously and it had worked flawlessly. However, after having installed Android Studio recently, the Eclipse stopped working (couldn’t find java). I’d tried to reinstalled Eclipse following your steps, however, now I just got Eclipse flashing for a second, then nothing happened. The 2nd time on, nothing happened.
I also tried to uninstall Android Studio and then reinstalled Eclipse, but still cannot start Eclipse.
Many thanks in advance!
Joe
Joe, You are very welcome 🙂 I’m happy that you are enjoying the tutorials. Yes Android Studio is a nightmare and it will probably continue to be so for some time. I have 2 tutorials that should set everything straight. Look at Install Eclipse for Java and then Solving Android SDK Problems. Together they should fix everything up.
Thank you very much for your tutorials. They are great!!
My problem is that my Android Virtual Device (came along with ADT) runs very very slow. It takes about 5 minutes to start, and keeps terribly lagging then.
You’re very welcome 🙂 I show you how to solve that in this tutorial Solving Android SDK Problems
I get this message. I am not able to complete the install. What are your thoughts? Thanks!!
Cannot complete the install because one or more required items could not be found.
Software being installed: Android Native Development Tools 22.0.1.v201305230001–685705 (com.android.ide.eclipse.ndk.feature.group 22.0.1.v201305230001–685705)
Missing requirement: Android Native Development Tools 22.0.1.v201305230001–685705 (com.android.ide.eclipse.ndk.feature.group 22.0.1.v201305230001–685705) requires ‘org.eclipse.cdt.feature.group 0.0.0’ but it could not be found
Check this video out Solving Android SDK Problems
I followed the instruction and so far the only problem I see is that, the “status” column in Android Device Manager has different icon for “Installed” packages. The check icons in front of the word Inslled are all red instead of usual green. Is this a problem?
Thanks,
I wouldn’t worry about that if everything runs
Hello Derek,
Great tutorials you have. The best I’ve ever seen!
What I’d really like to see as a tutorial is what to do if I already have an .apk file (from an app building site) and all I need to do is preview it on the emulator – what software to download and use just for that purpose.
Thanks!
Hello, Thank you very much 🙂 An APK file can be opened with a zip utility tool and then loaded into the emulator. I hope that helps
Hello Derek,
Apologies, but I’m totally lost with this.
What software would I need to install (for PC) to get the ** emulator only** up and running. (I don’t need anything but the emulator for screenshots of the app)
And how would I load the unzipped .apk file into the emulator (looks like several files unzipped)?
Thanks!
This guy developed a stand alone Android Emulator that may help?
why eclipse not Android Studio?
Android Studio is still buggy and looks the same as Eclipse which is less buggy. You can use it with this tutorial
where can i find the SDK location? on what folder? I installed eclipse indigo and followed your instructions but its looking for an android preferences
. Pls I need your help.
Try the following
Window - Preferences – Android – SDK Location – Locate the folder (Run SDK Manager to find path OR search for a folder named sdk on your computer)
OR Help - Check for Updates
More things to try stackoverflow. com/questions/6219588/eclipse-ÂÂÂÂwill-not-find-adb-exe-or-sdÂkÂ
hello sir
I have problem while launching emulator for AVD MyNexus7.It gives the Error of emulator-arm.exe has stopped work and Failed to allocate memory: 8
This application has requested the Runtime to terminate it in an unusual way.
Please tell me what should I do.
Hello,
I show exactly how I set up my emulator on this page Solving Android SDK Problems. Scroll past the video and you’ll see it. You may have to delete your other emulators first and then start from the beginning
This is the error i’m getting while trying to install ADT plugin
Cannot complete the install because one or more required items could not be found.
Software being installed: Android Native Development Tools 22.0.5.v201307292155–757759 (com.android.ide.eclipse.ndk.feature.group 22.0.5.v201307292155–757759)
Missing requirement: Android Native Development Tools 22.0.5.v201307292155–757759 (com.android.ide.eclipse.ndk.feature.group 22.0.5.v201307292155–757759) requires ‘org.eclipse.cdt.feature.group 0.0.0’ but it could not be found
Check this out solving Android SDK problems. You are probably missing some libraries you need to install with the SDK Manager
Thank you!!!
You’re very welcome 🙂
Thank you !!!
Hello..Great work with your tutorials..
One question..
What do you mean I don’t have to download sdktools from google?
ADT-plugin doesn’t install.. that’s why everybody can’t find the SDK location..
Thank you 🙂 I prefer to use the plugin like I demonstrated here. The download from Google was hard for a bunch of people to install for some reason, so I looked for the easiest solution
Hey just curious as to what the difference between the version of eclipse is that is bundled with the Android SDK and Eclipse IDE? Cheers 🙂
I’m not sure, but I think Android Studio (which is the newest Android IDE) is built on Eclipse Juno
Hi Derek,
Thanks for your tutorial!
The link for the plugin download os broken – can you supplay another one insead?
(https://dl-ssl.google.com/android/eclipse)
Thanks in advance and keep up!!!
Hi, You’re very welcome. I changed the link. Thank you for pointing that out 🙂
Hey, got the bug where I couldn’t finish setting up the Android Virtual Device but when I went into the Android SDK manager the Mips System image isnt stated under Android 4.3 and when selecting an Android version to base the virtual device off that is the only version I am allowed to choose. What should I do?
As a heads up all I had to do was restart eclipse again. Thanks anyway.
I’m glad you got it fixed! Sorry it took so long to get back to you
Dear Mr. Banas,
Hello from Egypt.
First of all i would like to thank you very much for every thing you publish here in your site … everything is simply useful.
i don’t have too much experience in JAVA, but i’m taking your Java Tutorial these days. do i need to finish the whole Java tutorial before i begin in Android development tutorial?
i really love to be an Android Developer… Any advice ?
Sorry if My English is not so good
and thank you in advance.
Mohamed S. Ali
Hi Mohamed,
Thank you for all the kind compliments 🙂 I very much appreciate them!
You don’t need to watch all of the Java tutorials for Android. You need 1 – 7, 9, 11 - 13, 17, 18 and parts 1 and 2 of my design patterns tutorial. Watch parts 1 and 2 of the design patterns tutorial after part 9 of Java and you’ll be ready for Android.
Here is my Java Video Tutorial and here is the Design Patterns Video Tutorial. I hope you find them useful.
Derek
I appreciate your reply and i wish you a wonderful life
Best regards ..
Thank you 🙂 You’re very kind.
Dear Mr. Banas,
Hello again
what do you think about the (MIT app inventor)?
http://appinventor.mit.edu/
i’m studying the tutorials and planing to continue.
for me it’s a lot of fun to know how things works, of course it’s a little difficult for my average mind, but i’m trying to hang in there (:
Hi, I haven’t looked at the course, but I’m sure it is probably very good. I think it is a great idea to watch tutorials and read articles from many different sources. Stick with Android and you’ll get it. It is only complicated in the beginning.
Terrific work! This is the type of info that should be shared across the net. Shame on the seek engines for no longer positioning this publish upper! Come on over and visit my site . Thanks =)
Thank you 🙂 I’m glad it helped.
Hi Derek,
Thanks for the huge effort you’ve put into making such great Android tutorials. I just can’t get enough of watching them and following along.
They are definitely the exact kind of thing to get me going with Android app development. I consider your tutorials to be the best thing around in this field, especially when it comes to getting started from nothing.
Thanks again,
Victor
Hi Victor,
Thank you for the nice compliments. I’m working harder then ever to make sure each Android tutorial is good. I structured to to make sure you actually learn how to make apps. You’re very welcome 🙂
Hi Derek.
i did everything the tutorial said but when i restart eclipse to start a new project it says i need something called SDK. i don’t know what that is and you don’t seem to get that message in your video so i was wondering if you could explain what i should do..
thanx for any reply 🙂
Hi,
In Eclipse Click Window – SDK Manager. You’ll find the location of your SDK there.
If that isn’t an option, Eclipse – Help – Install New Software
a. Work with: Click Add
b. Name: Android Developer Tools
c. Location: http://dl-ssl.google.com/android/eclipse/
d. Shows list of plugins – Click Next
e. Accept the license agreement – Next – Finish
f. Restart Eclipse
g. Help – Check for Updates to update the ADT
Tell me if that doesn’t work
Hey Derek , thank u for all this great tutorial , really appreciate your amazing effort , i wanna be a professional in the android Development where i must start? is java and xml necessary and if yes for any level ?
thank you again , keep it up . peace
Thank you 🙂 You basically need to understand the basics of Java. If you watch parts 1 – 7, 9, and 11 through 18 of my Java video tutorial you should be ready to go. You don’t need to be an expert at using XML, but I have an XML tutorial if you’d like to look at it. I wish you the best!
Is it same for linux?
Yes the Linux install is very similar to Mac.
Another fine tutorial. My compliments. I am looking to develop iOS applications on a Linux platform. If this capability becomes available, I would apprecite tutorials on that subject matter. Thanks for the great tutorials Derek.
Thank you 🙂 I haven’t been making iOS apps for the past 2 years. All my clients want personalized apps and iOS doesn’t allow for that. As per your question on whether you can develop for iOS on Linux I found this http://try.macbuildserver.com/
I hope that helps 🙂
hello admin i got error while starting up the emulator
Failed to allocate memory: 8
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application’s support team for more information.
????
Fixed it
v have edit conif file dat was the soltn 🙂
I followed the steps and got the emulator to run, but I don’t see the Hello World display. When I unlock the screen it just takes me to the Android main screen where I can scroll around.
I’m thinking it might be the package name I used when creating the project. I didn’t have a web address so I also just used com.newthinktank.helloworld. Would that affect it?
Take a look at part 26 of my Android tutorial. I show how to install all of the newest tools in it.
Hi Derek,
Thanks a lot for your tutorials.
You recommend to use Eclipse Indigo, what about the new versions of Eclipse like Kepler ?
I try to use it but there is a lot of troubles when installing the SDK
Thanks
Yair
You’re very welcome 🙂 Here is my tutorial on installing the newest Android / Eclipse. I hope it helps.
I installed Eclipse and plugin successfully. But when I open Eclipse it displays message “Could not find SDK folder”. Do I need to install SDK anyway? Thanks
Go to Preferences->Android and browse to your SDK folder. You may also want to try my new tutorial in which I cover how to install the newest Android tools.
hello derek
i have problem with the emulator when i try to open
the emulator it says Failed to install kkkokkojjj.apk on device ’emulator-5556! do you know how to fix it?
I show an improved way to install all the new Android development tools in this tutorial. i hope it helps 🙂
Sir in my layout folder I’m now seeing an activity_main.xml file along with a “fragment_main.xml”
This is the code im seeing for both:
activity_main.xml:
fragment_main.xml–>
#Also each time I create a new project, I get “appcompat_v7, appcompat_v7_3…etc” each time i create a new project. whats the reason for all of that? Thanks in advanced!
I cover how to install all the new Android tools in this tutorial. That should fix your problem.
Sigh…im having the same problem and I can’t even get to click ok when creating An AVD
I have a new tutorial on how to install the newest Android tools.
Can I use eclipse juno or kepler, or i have to use indigo for your tutorial?
I cover how to install the recommended tools in this tutorial.
Hi Derek,
I already have eclipse Kepler on my computer. Is there specific reason to use indigo or shall I continue using Kepler. Not sure what all these version mean.
Thanks
Yusuf
I made a new tutorial that shows how to install the newest ADT tools. I hope it helps 🙂
Derek,
You can ignore both my earlier questions. I think I solved the problem after I downloaded and unpacked the SDK from the developer website. Thanks.
Sorry i couldn’t get to you quicker. I’m glad you fixed it 🙂
hi there!
when i open up activity_main (or anything else)
in the description i get 14 errors, and “Loading data for Android L (preview) has encountered a problem”. Parsing data for android-L failed”
Do you no why this is happening?
thanks!
Change your target SDK to 19 in your manifest and that will go away
Do you have a tutorial on how to convert websites to android application.?
No, but I plan on covering that soon
Hi Derek,
I really appreciate what you are doing.Your tutorials really are helpful…I thank you so much and keep up the good work.
You’re very welcome 🙂 I’m happy that I can help.