· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Android Dev Install

¾Èµå·ÎÀ̵å(Android) °³¹ßȯ°æ ±¸Ãà

  • ÀÛ¼ºÀÚ
    Á¶ÀçÇõ(Mminzkn@minzkn.com)

  • °íÄ£°úÁ¤
    2011³â 7¿ù 26ÀÏ : óÀ½¾¸


android_logo.png
[PNG image (3 KB)]


2. ½ÃÀÛÇϱâÀü¿¡



Android ±â¹ÝÀÇ ½º¸¶Æ®ÆùÀ» Áö³­ ÁÖ¸»¿¡ À常ÇÏ¿´½À´Ï´Ù. ÀÌ°É ±×³É »ç¿ëÀÚ ÀÔÀåÀ¸·Î À常ÇÑ°ÍÀÌ ¾Æ´Ï¾ú½À´Ï´Ù. ¹«¾ð°¡ ¸¸µé¾î ³Ö¾î¾ß ÇÒ °Í °°Àº ¿å±¸°¡ ÇÏ´ÃÀ» Ä¡¼Ú½À´Ï´Ù. ±×·¡¼­ ÀÌ·¸°Ô ±× ¸¶À½À» ´ã¾Æ¼­ Á¤¸®ÇÕ´Ï´Ù...

Âü°í·Î ÇÊÀÚ´Â Windows, Linux ¾çÂÊ¿¡ ¸ðµÎ °³¹ßȯ°æÀ» ¼³Ä¡ÇÏ¿´À¸³ª ÀÌ ¹®¼­¿¡¼­´Â Windows»ó¿¡¼­ÀÇ ¼³Ä¡¸¦ ±âÁØÀ¸·Î ¼³¸íÇÏ·Á ÇÕ´Ï´Ù.

¾Æ¹«°Íµµ ¸ð¸£´Â »óÅ¿¡¼­ Àúµµ óÀ½ ½ÃÀÛÇÏ°í Á¤¸®ÇÏ´Â °ÍÀ̱⿡ À߸øµÈ ³»¿ëµµ ºÐ¸íÈ÷ ÀÖÀ» ¼ö ÀÖÀ»°Ì´Ï´Ù. ÀÌ·¯ÇÑ Á¡À» ÃæºÐÈ÷ °¨¾ÈÇϽþî ÀÐÀ¸½Ã¸é ÁÁÀ» µí ÇÕ´Ï´Ù.

3. JDK ¼³Ä¡

JDK°¡ ¼³Ä¡µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì "[http]http://www.oracle.com/technetwork/java/javase/downloads/index.html[]" ¿¡¼­ "Java SE (Standard Edition)"À» ´Ù¿î·Îµå ¹Þ¾Æ¼­ ¼³Ä¡ÇÕ´Ï´Ù.

jdk_download.png
[PNG image (69.23 KB)]
jdk_download2.png
[PNG image (56.54 KB)]


  • ¸¸¾à Ubuntu Linux ÀÌ¿ëÀÚÀÇ °æ¿ì ´ÙÀ½°ú °°ÀÌ ¼³Ä¡ÇÒ ¼ö ÀÖ½À´Ï´Ù. (64-bit ¹èÆ÷ÆÇÀ» »ç¿ëÇϽŴٸé "ia32-libs" ÆÐÅ°Áö¸¦ ¸ÕÀú ¼³Ä¡ÇØ¾ß µÉ ¼öµµ ÀÖ½À´Ï´Ù.)
    bash# sudo apt-get install sun-java6-jdk
    
  • ¸¸¾à Gentoo Linux »ç¿ëÀÚÀÇ °æ¿ì ´ÙÀ½°ú °°ÀÌ ¼³Ä¡ÇÒ ¼ö ÀÖ½À´Ï´Ù.
    bash# emerge sun-jdk
    


4. Eclipse ¼³Ä¡

"[http]http://www.eclipse.org/downloads/[]" ¿¡¼­ Àڽſ¡°Ô ÀûÇÕÇÑ Eclipse Package¸¦ ¼±ÅÃÇÏ¿© ´Ù¿î·Îµå ¹Þ¾Æ ¼³Ä¡ÇÕ´Ï´Ù. (¾î¶²°ÍÀ» ¼±ÅÃÇØ¾ß ÇÒÁö ¸ð¸¥´Ù¸é ±×³É "Eclipse Classic" À» ´Ù¿î·Îµå ÇÏ½Ã¸é µÇ°Ú½À´Ï´Ù.)

  • ¸¸¾à Ubuntu Linux ÀÌ¿ëÀÚÀÇ °æ¿ì ´ÙÀ½°ú °°ÀÌ ¼³Ä¡ÇÒ ¼ö ÀÖ½À´Ï´Ù.
    bash# sudo apt-get install eclipse
    
  • ¸¸¾à Gentoo Linux »ç¿ëÀÚÀÇ °æ¿ì ´ÙÀ½°ú °°ÀÌ ¼³Ä¡ÇÒ ¼ö ÀÖ½À´Ï´Ù.
    bash# emerge eclipse-sdk
    


    eclipse_download.png
    [PNG image (121.25 KB)]


    ±×¿Ü »ç¿ëÀÚÀÇ °æ¿ì ´Ù¿î·Îµå ¹Þ¾Æ ÀûÀýÈ÷ ¿øÇÏ´Â Directory¿¡ ¾ÐÃàÀ» ÇØÁ¦ÇÏ°í »ç¿ëÇÏ½Ã¸é µË´Ï´Ù. (Ưº°ÇÑ ¼³Ä¡°úÁ¤Àº ¾ø½À´Ï´Ù. ±×³É ¾ÐÃàÀ» ǬÈÄ eclipse* ½ÇÇàÆÄÀÏÀ» ½ÇÇàÇÏ½Ã¸é µË´Ï´Ù.)

    eclipse.png
    [PNG image (75.27 KB)]


    ¸¸¾à C/C++ °³¹ßµµ ÇÔ²² ÇϽðíÀÚ ÇϽŴٸé "Help / Install New Software..."¸¦ ¼±ÅÃÇÏ¿© "Work wih"¿¡¼­ "--All Available Sites-- "¸¦ ¼±ÅÃÈÄ "Programming Languages / Eclipse C/C++ Development Tools"¸¦ ¼±ÅÃÇÏ¿© "Next", ..., "Finish" ¹öÆ°À» µû¶ó¼­ ´­·¯ ¼³Ä¡¸¦ ÁøÇàÇÏ½Ã¸é µË´Ï´Ù. ¼³Ä¡¿Ï·á ÈÄ "Window / Open Perspective / Other..." ¸Þ´º¿¡ "C/C++" Ç׸ñÀÌ º¸ÀÏ°Ì´Ï´Ù. ÀÌ°ÍÀ» ¼±ÅÃÈÄ "OK" ¹öÆ°À» ´©¸£½Ã¸é µË´Ï´Ù. °°Àº ¹æ½ÄÀ¸·Î ´Ù¸¥ Programming Languages¸¦ Ãß°¡·Î ¼±ÅÃÇÏ¿© ÀÚ½ÅÀÌ ÇÊ¿ä·Î ÇÏ´Â °³¹ß¾ð¾î¸¦ Ãß°¡ÇÒ ¼ö ÀÖ½À´Ï´Ù.

5. Subclipse for Eclipse ¼³Ä¡ (¼±ÅûçÇ×)

"Subclipse for Eclipse" ´Â Eclipse¿¡¼­ Subversion À» »ç¿ëÇÒ ¼ö ÀÖ°Ô ÇÏ´Â PluginÀÔ´Ï´Ù. SubversionÀ» »ç¿ëÇÏÁö ¾ÊÀ¸½Ç °æ¿ì´Â ÀÌ °úÁ¤Àº »ý·«Çϼŵµ µË´Ï´Ù.

Eclipse¸¦ ½ÇÇàÈÄ "Help / Install New Software..." ¸Þ´º¸¦ ¼±ÅÃÇÕ´Ï´Ù.

eclipse_install_new_software.png
[PNG image (31.56 KB)]


"Work with" Ç׸ñÀÇ "Add"¹öÆ°À» Ŭ¸¯ÇÕ´Ï´Ù.

eclipse_install_add.png
[PNG image (23.5 KB)]


"Add Site" Æ˾÷âÀÌ Çϳª ¶ß´Âµ¥ ¿©±â¿¡ NameÀ» "Subclipse"·Î ÀÔ·ÂÇÏ°í Location¿¡ "[http]http://subclipse.tigris.org/update_1.6.x[]" ¶ó°í ÀÔ·ÂÈÄ "OK" ¹öÆ°À» ´©¸¨´Ï´Ù.

eclipse_install_add_repository.png
[PNG image (7.04 KB)]


"Core SVNKit Library", "Optional JNA Library (recommended)", "Subclipse" Ç׸ñÀÌ º¸ÀÌ°Ô µË´Ï´Ù. ÀüºÎ ¼±Åà ÈÄ "Next", ..., "Finish" ¹öÆ°À» µû¶ó¼­ ´­·¯ ¼³Ä¡¸¦ ÁøÇàÇÕ´Ï´Ù.

eclipse_subclipse_install.png
[PNG image (25.86 KB)]
eclipse_subclipse_install_next.png
[PNG image (23.1 KB)]
eclipse_subclipse_install_accept.png
[PNG image (19.63 KB)]


°æ¿ì¿¡ µû¶ó¼­ "JavaHL" °ü·Ã ¿ä±¸¹®±¸°¡ º¸À̱⵵ Çϴµ¥ ÀÌ °æ¿ì °ü·Ã Æ˾÷¸Þ¼¼ÁöÀÇ Áö½Ã´ë·Î µû¶óÇÏ½Ã¸é µË´Ï´Ù.

¿¹¸¦ µé¾î¼­ Ubuntu LinuxÀÇ °æ¿ì "libsvn-java" ÆÐÅ°Áö°¡ ¼³Ä¡µÇ¾î ÀÖÁö ¾ÊÀ¸¸é ±×·¯ÇÑ ¸Þ¼¼Áö¸¦ º¸°Ô µÉ°Ì´Ï´Ù. ±×¸®°í "libsvn-java" ÆÐÅ°ÁöÀÇ ¼³Ä¡¿Í ÇÔ²² eclipseÀÇ ¼³Á¤ÆÄÀÏÀÎ "eclipse.ini" ÆÄÀÏ¿¡ "-Djava.library.path=/usr/lib/jni" À» Ãß°¡ÇØ¾ß ÇÕ´Ï´Ù. (Âü°í: [http]http://subclipse.tigris.org/wiki/JavaHL[])

6. Android SDK

[http]http://developer.android.com/sdk/index.html[] ¿¡¼­ SDK¸¦ ´Ù¿î·Îµå ¹Þ¾Æ¼­ ÀûÀýÇÑ À§Ä¡(¼³Ä¡µÉ À§Ä¡)¿¡ ¾ÐÃàÀ» ÇØÁ¦ ÈÄ ´ÙÀ½ÀÇ ÀýÂ÷·Î Ãß°¡ÀûÀÎ »çÇ×µéÀ» ´Ù¿î·Îµå ¹Þ½À´Ï´Ù.

sdk_download.png
[PNG image (71.62 KB)]


SDK¸¦ ÀûÀýÈ÷ ¾ÐÃàÀ» Ç®¸é "SDK Readme.txt" ÆÄÀÏÀÌ Àִµ¥ ÀÌ°ÍÀ» Çѹø Àо½Ã°í ±×´ë·Î ÁøÇàÇÏ½Ã¸é µË´Ï´Ù.
¾ÐÃàÇØÁ¦ÇÑ µð·ºÅ丮·Î À̵¿ÇÏ¿© ´ÙÀ½°ú °°ÀÌ ½ÇÇàÇÕ´Ï´Ù. (Windowsȯ°æÀÎ °æ¿ì´Â "SDK Manager.exe"¸¦ ½ÇÇàÇÏ¸é µË´Ï´Ù.)
bash# ./tools/android update sdk


sdk_fetch.png
[PNG image (29.14 KB)]

¼³Ä¡ÇÒ PackageµéÀ» ¹¯´Â Æ˾÷âÀÌ ¶ß´Âµ¥ Ưº°È÷ ¿¹¿Ü»çÇ×ÀÌ ¾Æ´Ï¶ó¸é ±×³É "Accept All"À» ¼±ÅÃÇÏ°í "Install" ¹öÆ°À» ´­·¯¼­ ´Ù¿î·Îµå ¹Þ½À´Ï´Ù. (¼±Åà ¿©ºÎ¿¡ µû¶ó¼­ ´Ù¼Ò ´Ù¿î·Îµå Çϴµ¥ ½Ã°£ÀÌ °É¸³´Ï´Ù.)

sdk_accept.png
[PNG image (24.8 KB)]
sdk_install_archives.png
[PNG image (9.46 KB)]
sdk_adb_restart.png
[PNG image (6.95 KB)]


±âº»ÀûÀÎ ´Ù¿î·Îµå ¿Ï·á ÈÄ Ãß°¡ÀûÀ¸·Î Package µéÀ» ¼³Ä¡ÇÒ ¼ö Àִµ¥ "Available Packages" Ç׸ñ¿¡¼­ Ãß°¡·Î ÇÊ¿ä·Î ÇÏ´Â Package µéÀ» ¼³Ä¡ÇÒ ¼ö ÀÖ½À´Ï´Ù. (Áö±Ý ¼³Ä¡Çصµ µÇ°í ³ªÁß¿¡ ÇÊ¿äÇÒ¶§ ¼³Ä¡Çصµ »ó°ü¾ø½À´Ï´Ù¸¸ ±×³É ÀüºÎ ¼³Ä¡ÇÏ´Â°Ô ÆíÇÒµí ÇÕ´Ï´Ù.)

sdk_available_packages.png
[PNG image (26.45 KB)]
sdk_available_packages_accept.png
[PNG image (12.12 KB)]
sdk_available_packages_installing_archives.png
[PNG image (11.77 KB)]
sdk_adb_restart.png
[PNG image (6.95 KB)]


ÀÌÁ¦ "Virtual devices"Ç׸ñ¿¡¼­ "New"¹öÆ°À» Ŭ¸¯ÇÏ¿© »õ·Î¿î °¡»ó ¿¡¹Ä·¹ÀÌÅ͸¦ »ý¼ºÇÒ Â÷·ÊÀÔ´Ï´Ù.

new_virtual_device_new.png
[PNG image (15.54 KB)]


ÀûÀýÇÑ Virtual deviceÇ׸ñÀ» ¼±ÅÃÇÏ¿© ÀڽŸ¸ÀÇ °¡»ó½Ã½ºÅÛÀ» ¼³Á¤ÇÏ¿© »ý¼ºÇÕ´Ï´Ù. ¿©±â¼­ "Android vXXX"¿Í "Google APIs ... Level XX" °¡ Àִµ¥ Google Map °ú ¿¬µ¿ÇÏ´Â ½Ã½ºÅÛÀ» °³¹ßÇϱâ À§Çؼ­´Â "Google APIs..."À» ¼±ÅÃÇϽô °ÍÀÌ ÇÊ¿äÇÕ´Ï´Ù.

new_virtual_device_create.png
[PNG image (19.08 KB)]


ÀÌÁ¦ »ý¼ºµÈ °¡»ó Android ÀåÄ¡¸¦ ½ÃÀÛÇغ¾´Ï´Ù. Àá½Ã ±â´Ù¸®¸é(¼öÃÊ¿¡¼­ ¼öºÐÁ¤µµ °É¸³´Ï´Ù.) ¿À! ³» ½º¸¶Æ®ÆùÇÏ°í ¶È°°Àº È­¸é(Reference phoneÇÏ°í ¶È°°À¸¸ç ´ëºÎºÐÀÇ Á¦Á¶»ç ÈÞ´ëÆùÀº È­¸éÀÌ ´Ù¼Ò ´Ù¸¦¼ö ÀÖ½À´Ï´Ù.)ÀÌ Ç¥½ÃµÇ°í Á¶ÀÛµµ µË´Ï´Ù. ¿ì¸®´Â ÀÌ °¡»ó½Ã½ºÅÛÀ» ÅëÇؼ­ °³¹ßÇÑ AppµéÀ» ½ÇÇàÇغ¸°í Å×½ºÆ® Çغ¼ ¼ö ÀÖ½À´Ï´Ù.

new_virtual_device_start.png
[PNG image (15.66 KB)]
new_virtual_device_launch_options.png
[PNG image (7.59 KB)]
new_virtual_device_screen.png
[PNG image (289.31 KB)]


¼³Ä¡µÈ À§Ä¡ÀÇ °æ·Î¿¡ Çѱ۰æ·Î°¡ Æ÷ÇÔµÈ °æ¿ì ¹®Á¦°¡ ¹ß»ýÇÏ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù. ¿¹Àü ƯÁ¤ SDK¹öÁ¯ÀÇ ¹ö±×¶ó°í Çϴµ¥¿ä. Çغ¸½Ã°í ¾ÈµÇ´Â ºÐµéÀº °æ·Î¸¦ È®ÀÎÇغ¸¼¼¿ä.

7. Android NDK (Native Development Tools) ¼³Ä¡ (¼±ÅûçÇ×)

[http]http://developer.android.com/sdk/ndk/index.html[] ¿¡¼­ SDK¸¦ ´Ù¿î·Îµå ¹Þ¾Æ¼­ ÀûÀýÇÑ À§Ä¡(¼³Ä¡µÉ À§Ä¡)¿¡ ¾ÐÃàÀ» ÇØÁ¦ ÈÄ ´ÙÀ½ÀÇ ÀýÂ÷·Î Ãß°¡ÀûÀÎ »çÇ×µéÀ» ´Ù¿î·Îµå ¹Þ½À´Ï´Ù.

ndk_download.png
[PNG image (64.69 KB)]


NDK¸¦ ÀûÀýÈ÷ ¾ÐÃàÀ» Ç®¸é "README.txt" ÆÄÀÏÀÌ Àִµ¥ ÀÌ°ÍÀ» Çѹø Àо½Ã°í ±×´ë·Î ÁøÇàÇÏ½Ã¸é µË´Ï´Ù.

8. Android Development Tools (ADT) Plugin for Eclipse

Android Development Tools (ADT) Plugin for Eclipse ([http]http://developer.android.com/sdk/eclipse-adt.html[]) ¸¦ ¾Æ·¡ÀÇ ¼ø¼­·Î ¼³Ä¡ÇÕ´Ï´Ù.

Eclipse¸¦ ½ÇÇàÈÄ "Help / Install New Software..." ¸Þ´º¸¦ ¼±ÅÃÇÕ´Ï´Ù.

eclipse_install_new_software.png
[PNG image (31.56 KB)]


"Work with" Ç׸ñÀÇ "Add"¹öÆ°À» Ŭ¸¯ÇÕ´Ï´Ù.

eclipse_install_add.png
[PNG image (23.5 KB)]


"Add Site" Æ˾÷âÀÌ Çϳª ¶ß´Âµ¥ ¿©±â¿¡ NameÀ» "ADT"·Î ÀÔ·ÂÇÏ°í Location¿¡ "[https]https://dl-ssl.google.com/android/eclipse/[]" ¶ó°í ÀÔ·ÂÈÄ "OK" ¹öÆ°À» ´©¸¨´Ï´Ù.

eclipse_install_add_repository_adt.png
[PNG image (6.84 KB)]


"Developer Tools" Ç׸ñÀÌ º¸ÀÌ°Ô µË´Ï´Ù. ¼±Åà ÈÄ "Next", ..., "Finish" ¹öÆ°À» µû¶ó¼­ ´­·¯ ¼³Ä¡¸¦ ÁøÇàÇÕ´Ï´Ù.

eclipse_adt_install.png
[PNG image (24.04 KB)]
eclipse_adt_install_next.png
[PNG image (18.13 KB)]
eclipse_adt_install_accept.png
[PNG image (20.08 KB)]


"Window / Preferences" ¸Þ´º¸¦ ¼±ÅÃÇϸé Æ˾÷À¸·Î ¼³Á¤Ã¢ÀÌ ¶ß´Âµ¥ ¿©±â¼­ Android Ç׸ñÀ» ¼±Åà ÈÄ "SDK Location"¿¡ "Browse" ¹öÆ°À» ´­·¯ SDK¸¦ ¼³Ä¡ÇÑ µð·ºÅ丮¸¦ ¼±ÅÃÇÏ°í "Apply"¹öÆ°À» ´©¸¥ÈÄ "OK" ¹öÆ°À» ´©¸¨´Ï´Ù.

eclipse_preferences.png
[PNG image (33.75 KB)]
eclipse_preferences_android_sdk_location.png
[PNG image (28.53 KB)]


ÀÌÁ¦ ´Ù½Ã EclipseÀÇ Windows¸Þ´º¸¦ º¸¸é "Android SDK and AVD Manager" Ç׸ñÀÌ º¸ÀÌ°Ô µÉ°Ì´Ï´Ù. ÀÌ°ÍÀ» ¼±ÅÃÇغ¸¸é SDK ManagerÈ­¸éÀÌ ³ª¿À´Â °ÍÀ» º¼ ¼ö ÀÖ½À´Ï´Ù.

eclipse_window_android_menu.png
[PNG image (34.12 KB)]


9. ±â±â È­¸é ĸÃÄ

±â±âÀÇ È­¸éÀ» Á÷Á¢ ĸÃÄ(Capture)ÇØ¾ß ÇÒ¶§°¡ ÀÖ½À´Ï´Ù. ½Ç½ÀÀ» Çϸ鼭 °ü·Ã È­¸éÀ» ½ºÅ©·¦ÇÒ ÇÊ¿äµµ ÀÖ±¸¿ä. ÀÌ ¶§ ÀÚ½ÅÀÇ ±â±â¸¦ USB¿¡ ¿¬°áÇÏ°í "Android SDK"ÀÇ "tools"¿¡ º¸¸é "ddms.bat" ÆÄÀÏÀÌ ÀÖ½À´Ï´Ù. ÀÌ°ÍÀ» ½ÇÇàÇϸé "Dalvik Debug Monitor"°¡ ½ÇÇàµÇ´Âµ¥¿ä. ¿©±â¼­ MenuÀÇ "Device" / "Screen capture..." ¸¦ ¼±ÅÃÇϸé USB¿¡ ¿¬°áµÈ ±â±âÀÇ È­¸éÀ» ĸÃÄÇÒ ¼ö ÀÖ½À´Ï´Ù.

¾Æ·¡´Â ÇÊÀÚÀÇ "Nexus S" ÈÞ´ëÆùÀÇ È­¸éÀ» ĸÃÄÇÑ °ÍÀÔ´Ï´Ù.

booting_x.png
[PNG image (35.73 KB)]
lock.png
[PNG image (319.03 KB)]
main.png
[PNG image (311.76 KB)]

10. Âü°íÀÚ·á ¹× ¸µÅ©


ID
Password
Join
Recent investments will yield a slight profit.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2012-01-19 12:24:20
Processing time 0.0134 sec