Android Dev Install
2. ½ÃÀÛÇϱâÀü¿¡ ¶Android ±â¹ÝÀÇ ½º¸¶Æ®ÆùÀ» Áö³ ÁÖ¸»¿¡ À常ÇÏ¿´½À´Ï´Ù. ÀÌ°É ±×³É »ç¿ëÀÚ ÀÔÀåÀ¸·Î À常ÇÑ°ÍÀÌ ¾Æ´Ï¾ú½À´Ï´Ù. ¹«¾ð°¡ ¸¸µé¾î ³Ö¾î¾ß ÇÒ °Í °°Àº ¿å±¸°¡ ÇÏ´ÃÀ» Ä¡¼Ú½À´Ï´Ù. ±×·¡¼ ÀÌ·¸°Ô ±× ¸¶À½À» ´ã¾Æ¼ Á¤¸®ÇÕ´Ï´Ù... Âü°í·Î ÇÊÀÚ´Â Windows, Linux ¾çÂÊ¿¡ ¸ðµÎ °³¹ßȯ°æÀ» ¼³Ä¡ÇÏ¿´À¸³ª ÀÌ ¹®¼¿¡¼´Â Windows»ó¿¡¼ÀÇ ¼³Ä¡¸¦ ±âÁØÀ¸·Î ¼³¸íÇÏ·Á ÇÕ´Ï´Ù. ¾Æ¹«°Íµµ ¸ð¸£´Â »óÅ¿¡¼ Àúµµ óÀ½ ½ÃÀÛÇÏ°í Á¤¸®ÇÏ´Â °ÍÀ̱⿡ À߸øµÈ ³»¿ëµµ ºÐ¸íÈ÷ ÀÖÀ» ¼ö ÀÖÀ»°Ì´Ï´Ù. ÀÌ·¯ÇÑ Á¡À» ÃæºÐÈ÷ °¨¾ÈÇϽþî ÀÐÀ¸½Ã¸é ÁÁÀ» µí ÇÕ´Ï´Ù. 3. JDK ¼³Ä¡ ¶JDK°¡ ¼³Ä¡µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì "http://www.oracle.com/technetwork/java/javase/downloads/index.html" ¿¡¼ "Java SE (Standard Edition)"À» ´Ù¿î·Îµå ¹Þ¾Æ¼ ¼³Ä¡ÇÕ´Ï´Ù.
[PNG image (69.23 KB)] [PNG image (56.54 KB)]
4. Eclipse ¼³Ä¡ ¶"http://www.eclipse.org/downloads/" ¿¡¼ Àڽſ¡°Ô ÀûÇÕÇÑ Eclipse Package¸¦ ¼±ÅÃÇÏ¿© ´Ù¿î·Îµå ¹Þ¾Æ ¼³Ä¡ÇÕ´Ï´Ù. (¾î¶²°ÍÀ» ¼±ÅÃÇØ¾ß ÇÒÁö ¸ð¸¥´Ù¸é ±×³É "Eclipse Classic" À» ´Ù¿î·Îµå ÇÏ½Ã¸é µÇ°Ú½À´Ï´Ù.)
5. Subclipse for Eclipse ¼³Ä¡ (¼±ÅûçÇ×) ¶"Subclipse for Eclipse" ´Â Eclipse¿¡¼ Subversion À» »ç¿ëÇÒ ¼ö ÀÖ°Ô ÇÏ´Â PluginÀÔ´Ï´Ù. SubversionÀ» »ç¿ëÇÏÁö ¾ÊÀ¸½Ç °æ¿ì´Â ÀÌ °úÁ¤Àº »ý·«Çϼŵµ µË´Ï´Ù.
Eclipse¸¦ ½ÇÇàÈÄ "Help / Install New Software..." ¸Þ´º¸¦ ¼±ÅÃÇÕ´Ï´Ù. [PNG image (31.56 KB)] "Work with" Ç׸ñÀÇ "Add"¹öÆ°À» Ŭ¸¯ÇÕ´Ï´Ù. [PNG image (23.5 KB)] "Add Site" Æ˾÷âÀÌ Çϳª ¶ß´Âµ¥ ¿©±â¿¡ NameÀ» "Subclipse"·Î ÀÔ·ÂÇÏ°í Location¿¡ "http://subclipse.tigris.org/update_1.6.x" ¶ó°í ÀÔ·ÂÈÄ "OK" ¹öÆ°À» ´©¸¨´Ï´Ù. [PNG image (7.04 KB)] "Core SVNKit Library", "Optional JNA Library (recommended)", "Subclipse" Ç׸ñÀÌ º¸ÀÌ°Ô µË´Ï´Ù. ÀüºÎ ¼±Åà ÈÄ "Next", ..., "Finish" ¹öÆ°À» µû¶ó¼ ´·¯ ¼³Ä¡¸¦ ÁøÇàÇÕ´Ï´Ù. [PNG image (25.86 KB)] [PNG image (23.1 KB)] [PNG image (19.63 KB)] °æ¿ì¿¡ µû¶ó¼ "JavaHL" °ü·Ã ¿ä±¸¹®±¸°¡ º¸À̱⵵ Çϴµ¥ ÀÌ °æ¿ì °ü·Ã Æ˾÷¸Þ¼¼ÁöÀÇ Áö½Ã´ë·Î µû¶óÇÏ½Ã¸é µË´Ï´Ù. ¿¹¸¦ µé¾î¼ Ubuntu LinuxÀÇ °æ¿ì "libsvn-java" ÆÐÅ°Áö°¡ ¼³Ä¡µÇ¾î ÀÖÁö ¾ÊÀ¸¸é ±×·¯ÇÑ ¸Þ¼¼Áö¸¦ º¸°Ô µÉ°Ì´Ï´Ù. ±×¸®°í "libsvn-java" ÆÐÅ°ÁöÀÇ ¼³Ä¡¿Í ÇÔ²² eclipseÀÇ ¼³Á¤ÆÄÀÏÀÎ "eclipse.ini" ÆÄÀÏ¿¡ "-Djava.library.path=/usr/lib/jni" À» Ãß°¡ÇØ¾ß ÇÕ´Ï´Ù. (Âü°í: http://subclipse.tigris.org/wiki/JavaHL) 6. Android SDK ¶http://developer.android.com/sdk/index.html ¿¡¼ SDK¸¦ ´Ù¿î·Îµå ¹Þ¾Æ¼ ÀûÀýÇÑ À§Ä¡(¼³Ä¡µÉ À§Ä¡)¿¡ ¾ÐÃàÀ» ÇØÁ¦ ÈÄ ´ÙÀ½ÀÇ ÀýÂ÷·Î Ãß°¡ÀûÀÎ »çÇ×µéÀ» ´Ù¿î·Îµå ¹Þ½À´Ï´Ù.
[PNG image (71.62 KB)] SDK¸¦ ÀûÀýÈ÷ ¾ÐÃàÀ» Ç®¸é "SDK Readme.txt" ÆÄÀÏÀÌ Àִµ¥ ÀÌ°ÍÀ» Çѹø Àо½Ã°í ±×´ë·Î ÁøÇàÇÏ½Ã¸é µË´Ï´Ù. ¾ÐÃàÇØÁ¦ÇÑ µð·ºÅ丮·Î À̵¿ÇÏ¿© ´ÙÀ½°ú °°ÀÌ ½ÇÇàÇÕ´Ï´Ù. (Windowsȯ°æÀÎ °æ¿ì´Â "SDK Manager.exe"¸¦ ½ÇÇàÇÏ¸é µË´Ï´Ù.) bash# ./tools/android update sdk [PNG image (29.14 KB)] ¼³Ä¡ÇÒ PackageµéÀ» ¹¯´Â Æ˾÷âÀÌ ¶ß´Âµ¥ Ưº°È÷ ¿¹¿Ü»çÇ×ÀÌ ¾Æ´Ï¶ó¸é ±×³É "Accept All"À» ¼±ÅÃÇÏ°í "Install" ¹öÆ°À» ´·¯¼ ´Ù¿î·Îµå ¹Þ½À´Ï´Ù. (¼±Åà ¿©ºÎ¿¡ µû¶ó¼ ´Ù¼Ò ´Ù¿î·Îµå Çϴµ¥ ½Ã°£ÀÌ °É¸³´Ï´Ù.) [PNG image (24.8 KB)] [PNG image (9.46 KB)] [PNG image (6.95 KB)] ±âº»ÀûÀÎ ´Ù¿î·Îµå ¿Ï·á ÈÄ Ãß°¡ÀûÀ¸·Î Package µéÀ» ¼³Ä¡ÇÒ ¼ö Àִµ¥ "Available Packages" Ç׸ñ¿¡¼ Ãß°¡·Î ÇÊ¿ä·Î ÇÏ´Â Package µéÀ» ¼³Ä¡ÇÒ ¼ö ÀÖ½À´Ï´Ù. (Áö±Ý ¼³Ä¡Çصµ µÇ°í ³ªÁß¿¡ ÇÊ¿äÇÒ¶§ ¼³Ä¡Çصµ »ó°ü¾ø½À´Ï´Ù¸¸ ±×³É ÀüºÎ ¼³Ä¡ÇÏ´Â°Ô ÆíÇÒµí ÇÕ´Ï´Ù.) [PNG image (26.45 KB)] [PNG image (12.12 KB)] [PNG image (11.77 KB)] [PNG image (6.95 KB)] ÀÌÁ¦ "Virtual devices"Ç׸ñ¿¡¼ "New"¹öÆ°À» Ŭ¸¯ÇÏ¿© »õ·Î¿î °¡»ó ¿¡¹Ä·¹ÀÌÅ͸¦ »ý¼ºÇÒ Â÷·ÊÀÔ´Ï´Ù. [PNG image (15.54 KB)] ÀûÀýÇÑ Virtual deviceÇ׸ñÀ» ¼±ÅÃÇÏ¿© ÀڽŸ¸ÀÇ °¡»ó½Ã½ºÅÛÀ» ¼³Á¤ÇÏ¿© »ý¼ºÇÕ´Ï´Ù. ¿©±â¼ "Android vXXX"¿Í "Google APIs ... Level XX" °¡ Àִµ¥ Google Map °ú ¿¬µ¿ÇÏ´Â ½Ã½ºÅÛÀ» °³¹ßÇϱâ À§Çؼ´Â "Google APIs..."À» ¼±ÅÃÇϽô °ÍÀÌ ÇÊ¿äÇÕ´Ï´Ù. [PNG image (19.08 KB)] ÀÌÁ¦ »ý¼ºµÈ °¡»ó Android ÀåÄ¡¸¦ ½ÃÀÛÇغ¾´Ï´Ù. Àá½Ã ±â´Ù¸®¸é(¼öÃÊ¿¡¼ ¼öºÐÁ¤µµ °É¸³´Ï´Ù.) ¿À! ³» ½º¸¶Æ®ÆùÇÏ°í ¶È°°Àº ȸé(Reference phoneÇÏ°í ¶È°°À¸¸ç ´ëºÎºÐÀÇ Á¦Á¶»ç ÈÞ´ëÆùÀº ȸéÀÌ ´Ù¼Ò ´Ù¸¦¼ö ÀÖ½À´Ï´Ù.)ÀÌ Ç¥½ÃµÇ°í Á¶ÀÛµµ µË´Ï´Ù. ¿ì¸®´Â ÀÌ °¡»ó½Ã½ºÅÛÀ» ÅëÇؼ °³¹ßÇÑ AppµéÀ» ½ÇÇàÇغ¸°í Å×½ºÆ® Çغ¼ ¼ö ÀÖ½À´Ï´Ù. [PNG image (15.66 KB)] [PNG image (7.59 KB)] [PNG image (289.31 KB)] ¼³Ä¡µÈ À§Ä¡ÀÇ °æ·Î¿¡ Çѱ۰æ·Î°¡ Æ÷ÇÔµÈ °æ¿ì ¹®Á¦°¡ ¹ß»ýÇÏ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù. ¿¹Àü ƯÁ¤ SDK¹öÁ¯ÀÇ ¹ö±×¶ó°í Çϴµ¥¿ä. Çغ¸½Ã°í ¾ÈµÇ´Â ºÐµéÀº °æ·Î¸¦ È®ÀÎÇغ¸¼¼¿ä. 7. Android NDK (Native Development Tools) ¼³Ä¡ (¼±ÅûçÇ×) ¶http://developer.android.com/sdk/ndk/index.html ¿¡¼ SDK¸¦ ´Ù¿î·Îµå ¹Þ¾Æ¼ ÀûÀýÇÑ À§Ä¡(¼³Ä¡µÉ À§Ä¡)¿¡ ¾ÐÃàÀ» ÇØÁ¦ ÈÄ ´ÙÀ½ÀÇ ÀýÂ÷·Î Ãß°¡ÀûÀÎ »çÇ×µéÀ» ´Ù¿î·Îµå ¹Þ½À´Ï´Ù.
[PNG image (64.69 KB)] NDK¸¦ ÀûÀýÈ÷ ¾ÐÃàÀ» Ç®¸é "README.txt" ÆÄÀÏÀÌ Àִµ¥ ÀÌ°ÍÀ» Çѹø Àо½Ã°í ±×´ë·Î ÁøÇàÇÏ½Ã¸é µË´Ï´Ù. 8. Android Development Tools (ADT) Plugin for Eclipse ¶Android Development Tools (ADT) Plugin for Eclipse (http://developer.android.com/sdk/eclipse-adt.html) ¸¦ ¾Æ·¡ÀÇ ¼ø¼·Î ¼³Ä¡ÇÕ´Ï´Ù.
Eclipse¸¦ ½ÇÇàÈÄ "Help / Install New Software..." ¸Þ´º¸¦ ¼±ÅÃÇÕ´Ï´Ù. [PNG image (31.56 KB)] "Work with" Ç׸ñÀÇ "Add"¹öÆ°À» Ŭ¸¯ÇÕ´Ï´Ù. [PNG image (23.5 KB)] "Add Site" Æ˾÷âÀÌ Çϳª ¶ß´Âµ¥ ¿©±â¿¡ NameÀ» "ADT"·Î ÀÔ·ÂÇÏ°í Location¿¡ "https://dl-ssl.google.com/android/eclipse/" ¶ó°í ÀÔ·ÂÈÄ "OK" ¹öÆ°À» ´©¸¨´Ï´Ù. [PNG image (6.84 KB)] "Developer Tools" Ç׸ñÀÌ º¸ÀÌ°Ô µË´Ï´Ù. ¼±Åà ÈÄ "Next", ..., "Finish" ¹öÆ°À» µû¶ó¼ ´·¯ ¼³Ä¡¸¦ ÁøÇàÇÕ´Ï´Ù. [PNG image (24.04 KB)] [PNG image (18.13 KB)] [PNG image (20.08 KB)] "Window / Preferences" ¸Þ´º¸¦ ¼±ÅÃÇϸé Æ˾÷À¸·Î ¼³Á¤Ã¢ÀÌ ¶ß´Âµ¥ ¿©±â¼ Android Ç׸ñÀ» ¼±Åà ÈÄ "SDK Location"¿¡ "Browse" ¹öÆ°À» ´·¯ SDK¸¦ ¼³Ä¡ÇÑ µð·ºÅ丮¸¦ ¼±ÅÃÇÏ°í "Apply"¹öÆ°À» ´©¸¥ÈÄ "OK" ¹öÆ°À» ´©¸¨´Ï´Ù. [PNG image (33.75 KB)] [PNG image (28.53 KB)] ÀÌÁ¦ ´Ù½Ã EclipseÀÇ Windows¸Þ´º¸¦ º¸¸é "Android SDK and AVD Manager" Ç׸ñÀÌ º¸ÀÌ°Ô µÉ°Ì´Ï´Ù. ÀÌ°ÍÀ» ¼±ÅÃÇغ¸¸é SDK ManagerȸéÀÌ ³ª¿À´Â °ÍÀ» º¼ ¼ö ÀÖ½À´Ï´Ù. [PNG image (34.12 KB)] 9. ±â±â ȸé ĸÃÄ ¶±â±âÀÇ È¸éÀ» Á÷Á¢ ĸÃÄ(Capture)ÇØ¾ß ÇÒ¶§°¡ ÀÖ½À´Ï´Ù. ½Ç½ÀÀ» ÇÏ¸é¼ °ü·Ã ȸéÀ» ½ºÅ©·¦ÇÒ ÇÊ¿äµµ ÀÖ±¸¿ä. ÀÌ ¶§ ÀÚ½ÅÀÇ ±â±â¸¦ USB¿¡ ¿¬°áÇÏ°í "Android SDK"ÀÇ "tools"¿¡ º¸¸é "ddms.bat" ÆÄÀÏÀÌ ÀÖ½À´Ï´Ù. ÀÌ°ÍÀ» ½ÇÇàÇϸé "Dalvik Debug Monitor"°¡ ½ÇÇàµÇ´Âµ¥¿ä. ¿©±â¼ MenuÀÇ "Device" / "Screen capture..." ¸¦ ¼±ÅÃÇϸé USB¿¡ ¿¬°áµÈ ±â±âÀÇ È¸éÀ» ĸÃÄÇÒ ¼ö ÀÖ½À´Ï´Ù.
¾Æ·¡´Â ÇÊÀÚÀÇ "Nexus S" ÈÞ´ëÆùÀÇ È¸éÀ» ĸÃÄÇÑ °ÍÀÔ´Ï´Ù.
10. Âü°íÀÚ·á ¹× ¸µÅ© ¶
|