{"id":89,"date":"2011-07-19T20:34:07","date_gmt":"2011-07-19T18:34:07","guid":{"rendered":"http:\/\/jaran.de\/goodbits\/?p=89"},"modified":"2011-07-19T20:36:51","modified_gmt":"2011-07-19T18:36:51","slug":"installing-the-android-sdk-on-windows-and-saying-hello-to-the-android-world","status":"publish","type":"post","link":"http:\/\/jaran.de\/goodbits\/2011\/07\/19\/installing-the-android-sdk-on-windows-and-saying-hello-to-the-android-world\/","title":{"rendered":"Installing the Android SDK on Windows and saying Hello to the Android world"},"content":{"rendered":"<p>Having owned an Android device for more than a year I never found the time (and motivation) to start developing for the Android plattform. With holidays ahead I thought I finally might find the time and with some ideas in the head motivation wasn&#8217;t far. So here are my experiences of installing the Android SDK and getting to run the traditional &#8220;Hello World&#8221; application:<br \/>\n<!--more--><br \/>\nBasically I followed the steps on the Android Developers page <a href=\"http:\/\/developer.android.com\/sdk\/installing.html\" title=\"Installing the Android SDK\" target=\"_blank\">&#8220;Installing the SDK&#8221;<\/a>, which for me meant:<\/p>\n<ol>\n<li><strong>Install the Eclipse IDE<\/strong>. I chose the Eclipse IDE for Java Developers in its newest &#8220;Indigo&#8221; version.<br \/>\n(Since I&#8217;m a Java Developer I had Eclipse already installed albeit an older version which was already cluttered with plugins and whatnot. I chose to do a fresh install with the latest version of the Eclipse IDE)<\/li>\n<li><a href=\"http:\/\/developer.android.com\/sdk\/index.html\" title=\"Download the Android SDK\" target=\"_blank\"><strong>Get and install the Android SDK<\/strong><\/a><br \/>\nWhen the installation was done it gave me options to install additional packages. This is step 4 on the Android Developers page linked to above and I installed the packages for my particular Android device (version 2.2), the USB driver, the documentation and the Android SDK Tools<\/li>\n<li><a href=\"http:\/\/developer.android.com\/sdk\/eclipse-adt.html#installing\" title=\"ADT Plugin for Eclipse\" target=\"_blank\"><strong>Install the ADT plugin<\/strong><\/a><br \/>\nUnfortunately this didn&#8217;t work, since some required org.maven.ide.eclipse plugin could not be found. <a href=\"http:\/\/groups.google.com\/group\/maven-android-developers\/browse_thread\/thread\/3b463cf80edc41e3\" target=\"_blank\">I searched the web and found I&#8217;m not the only one<\/a>: it worked when I started Eclipse as an administrator (this is Windows Vista)<\/li>\n<\/ol>\n<p>Having installed a clean Eclipse IDE and the Android SDK I worked my way through the <a href=\"http:\/\/developer.android.com\/resources\/tutorials\/hello-world.html\" title=\"Hello, World (Android tutorial)\" target=\"_blank\">&#8220;Hello, World&#8221; tutorial<\/a>.<br \/>\nHowever, when trying to run the Hello-World-Application I received the following error in the Eclipse console:<\/p>\n<blockquote><p>\n[2011-07-19 20:07:18 &#8211; Emulator] invalid command-line parameter: Files.<br \/>\n[2011-07-19 20:07:18 &#8211; Emulator] Hint: use &#8216;@foo&#8217; to launch a virtual device named &#8216;foo&#8217;.<br \/>\n[2011-07-19 20:07:18 &#8211; Emulator] please use -help for more information\n<\/p><\/blockquote>\n<p><a href=\"http:\/\/www.wallpaperama.com\/forums\/_wlxpee.html\" title=\"fix android error - invalid command-line parameter: files\" target=\"_blank\">Luckily someone else had already figured out the solution<\/a> and it worked for me too: hint, if you don&#8217;t know the 8.3 filename of your program files folder you can open a good old command prompt console and find it out using &#8220;dir \/x&#8221;.<\/p>\n<p>And it worked indeed:<br \/>\n<a href=\"http:\/\/jaran.de\/files\/pics\/20110719_helloandroid\/HelloAndroid.png\"><img src=\"http:\/\/jaran.de\/files\/pics\/20110719_helloandroid\/HelloAndroid.png\" alt=\"Hello Android: screenshot of the android virtual device\" \/><\/a><\/p>\n<p><strong>Conclusion:<\/strong> If you are able to find your way out of some Windows quirks setting up the Android SDK is quite simple. Luckily the solutions to the two problems above were easy to find if you entered the correct search queries and not only skimmed the resulting pages but read them more thoroughly. Actually what took most time was installing the packages of the Android SDK and writing this blog entry here in parallel.<br \/>\nLooking forward to some Android programming!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Having owned an Android device for more than a year I never found the time (and motivation) to start developing for the Android plattform. With holidays ahead I thought I finally might find the time and with some ideas in &hellip;<\/p>\n<p class=\"read-more\"><a href=\"http:\/\/jaran.de\/goodbits\/2011\/07\/19\/installing-the-android-sdk-on-windows-and-saying-hello-to-the-android-world\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[10,5,9],"tags":[11,13,15,12,14],"_links":{"self":[{"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/posts\/89"}],"collection":[{"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":10,"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":99,"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/posts\/89\/revisions\/99"}],"wp:attachment":[{"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}