ÉϴνéÉÜÍêAndroidÖ®ºó£¬Á¬ÎÒ×Ô¼º¶¼±»×Ô¼ºËµ¶¯ÁË£¬×¼±¸Ç××Ô³¢ÊÔÒ»ÏÂÕâÍæÒ⣬µ±È»²»ÊÇΪÁËÄÇ10000000ÃÀ½ð?£¬ËùÓÐÈÏʶµÄÈ˶¼ÖªµÀÎÒ²»Óà Java¡£Ö»ÊÇÎÒ±¾Éí¶ÔÕâ¸öƽ̨ºÜ¸ÐÐËȤ£¬Ò²Ï£Íû¿´Ò»¿´ÆäÉϲã¿âÓëµ×²ãLinux½áºÏµÄ»úÖÆ£¬¾ÍÏëÊÔÒ»ÏÂÁË¡£Æäʵ¶ÔJavaÒ»Ö±³Ö±È½ÏÅųâµÄ̬¶ÈµÄ£¬×ܾõµÃC²ÅÊÇÕýͳÓÃÀ´×÷ǶÈëʽµÄÓïÑÔ£¬²»¹ýû°ì·¨£¬ËÈÃÊÇÈ˼Ҷ¨±ê׼Ĩ£¬¿¼Âǵ½Ò»´Î±àÒëµ½´¦ÔËÐеĻúÖÆ£¬GoogleÑ¡ÔñJava»¹ÊÇÂùÓеÀÀíµÄ¡£
OK£¬Ê×ÏÈ£¬¾ÍÊǰ²×°EclipseÒÔ¼°JDKºÍJRE¡£
sudo apt-get install eclipse
sudo apt-get install sun-java6-jdk
sudo apt-get install sun-java6-jre
È»ºó¾ÍÊÇÈ¥×ÜÕ¾ÏÂÔØandroid_sdk_linux_m3-rc20a£¨www.android.com£¬ÎÒÏÂÔØµÄÎļþÊÇandroid-sdk_m5-rc15_linux-x86.zip£©£¬½âѹ£¬ÄÜ¿´µ½½âѹ³öÁ˼¸¸öÎļþºÍĿ¼¡£¼Çס½âѹ³öÀ´µÄtoolsÕâ¸öÎļþ¼ÐµÄ·¾¶£¬ÔÚ.bashrcÎļþÖУ¬½«¸Ã·¾¶Ôö¼Óµ½Path±äÁ¿¡£Èç¹û.bashrcÖб¾À´Ã»ÓжÔPathµÄ¶¨Ò壬ÔòÖ±½ÓÌí¼ÓÒ»¾äexport PATH=${PATH}:/tools¼´¿É£¨PATH=$PATH:/etc/android/tools/:.£©¡£ÕâÑù×÷µÄÄ¿µÄ£¬ÊÇÈÃÄãÎÞÐë½øÈëÕâ¸ötools¾Í¿ÉÒÔʹÓÃAndroid Debug Bridge (adb)ÒÔ¼°ÆäËûһЩÃüÁîÐй¤¾ß¡£Ë³±ãҪעÒ⣬µ±Õâ¸ö·¾¶¸Ä±ä»òÕßÉý¼¶ÄãµÄSDKµÄʱºò£¬Òª¼Çס¸üÐÂÕâ¸öpath±äÁ¿¡£Ôõô֪µÀ³É¹¦Ã»ÓÐÄØ£¿ÖØ¿ªÖÕ¶Ë»òÕßsourceÒ»ÏÂеÄ.bashrc£¬È»ºóÔÚÖÕ¶ËÖÐÖ´ÐÐacp£¨acpûÓÐÁË£¬¿ÉÒÔÓÃadb£©£¬Ò»µ©ÓгÌÐòÓ÷¨Ìáʾ£¬¾Í±íʾpath±äÁ¿Ð޸ijɹ¦¡£
½ÓÏÂÀ´¾ÍÓ¦¸Ã°²×°Eclipse Plugin£¨ADT£©ÁË¡£Õâ¸öÊÇÕë¶ÔÏ£ÍûÄãÅclipse×÷Ϊ¿ª·¢IDEµÄÅóÓѵģ¬ÊÂʵÉÏ£Çoogle¹Ù·½ÍƼöÓÃEclipseÀ´×÷ΪÄãµÄ¿ª·¢IDE£¬¿ÉÒÔÀí½â£¬±Ï¾¹ÊÇJava¿ª·¢Ã´£¬²»¹ýÎÒ¹À¼Æ¹ýÁ½Ì컹ÊÇ»á̽Ë÷һϲ»ÓãÅclipse¿ª·¢µÄ·½·¨¡£Õâ¸öADTÊÇAndroid Development Tools£¬Ôö¼ÓÁ˶ÔÓÚAndroid projectsºÍtoolsµÄ¼¯³É»¯Ö§³Ö£¬ÆäÖаüÀ¨Á˸÷ÖÖ¸÷ÑùµÄÇ¿´óµÄÀ©Õ¹£¬ÄÜÈÃÄã¸ü¿ìºÍ¸ü·½±ãµØ´´½¨ÔËÐÐÒÔ¼°µ÷ÊÔAndroidÓ¦ÓóÌÐò¡£
To create the project, follow these steps:
1. Start Eclipse, then select Help > Software Updates > Find and Install¡.
2. In the dialog that appears, select Search for new features to install and press Next.
3. Press New Remote Site.
4. In the resulting dialog box, enter a name for the remote site (e.g. Android Plugin) and enter this as its URL:
https://dl-ssl.google.com/android/eclipse/
Press OK.
5. You should now see the new site added to the search list (and checked). Press Finish.
6. In the subsequent Search Results dialog box, select the checkbox for Android Plugin > Eclipse Integration > Android Development Tools and press Next.
7. Read the license agreement and then select Accept terms of the license agreement, if appropriate. Press Next.
8. Press Finish.
9. The ADT plugin is not signed; you can accept the installation anyway by pressing Install All.
10. Restart Eclipse.
11. After restart, update your Eclipse preferences to point to the SDK directory:
1. Select Window > Preferences¡ to open the Preferences panel. (Mac OS X: Eclipse > Preferences)
2. Select Android from the left panel.
3. For the SDK Location in the main panel, press Browse¡ and locate the SDK directory.
4. Press Apply, then OK
To update the ADT plugin to the latest version, follow these steps:
1. Select Help > Software Updates > Find and Install¡.
2. Select Search for updates of the currently installed features and press Finish.
3. If any update for ADT is available, select and install.
Alternatively,
1. Select Help > Software Updates > Manage Configuration.
2. Navigate down the tree and select Android Development Tools
3. Select Scan for Updates under Available Tasks.
OK£¬ÎÒÃÇÏÖÔÚÒѾÅäÖÃÍê³ÉÁË¿ª·¢»·¾³£¬½ÓÏÂÀ´¾ÍÊÇн¨Ò»¸öAndroidÓ¦ÓóÌÐò£¬ÔËÐк͵÷ÊÔËü¡£µ±È»ÊÇÕë¶ÔAndroid for Eclipse ²å¼þ½øÐеģ¬ÒòΪÎÒ»¹Ã»ÓÐÑо¿±ðµÄ·½Ê½¡£
Òª¿ª·¢Ò»¸öAndroid³ÌÐò£¬Ê×Ïȵ±È»ÊÇ´´½¨¹¤³ÌÁË¡£Èç¹ûÄãÇ°Ãæ°²×°Ë³Àû£¬ÄÇôFile > New > ProjectÀïÃæ¾Í»á³öÏÖAndroidµÄÑ¡Ïһ·ѡÏÂÈ¥£¬ÉèÖúã¬Finishºó¾Í¿ÉÒÔÔÚ¹¤³ÌĿ¼Ï¿´µ½ÏîÄ¿ÅäÖÃÎļþ AndroidManifest.xmlÒÔ¼°´æ·ÅÔ´´úÂëºÍ¿âµÈ¶«Î÷µÄÎļþ¼Ð¡£ÏȲ»¹ÜÕ⣬ÊÔÒ»ÏÂÔËÐк͵÷ÊÔ°É¡£Ñ¡ÔñRun > Run£¬µ¯³öµÄ¶Ô»°¿òÖÐÑ¡ÔñAndroid Application££¡·New_configuration£¬ÊôÐÔ¿òÀïÃæAndroid±êǩϰÑProjectºÍActivityÑ¡ÉÏ£¬ÁíÍâÁ½¸ö±êÇ©ÏȲ»¹Ü£¬Apply¾ÍÐÐÁË¡£
×îºó£¬µã»÷Õâ¸ö¶Ô»°¿òÏÂÃæµÄRun£¬ºÙºÙ£¬¸æËßÎÒ£¬Äã¿´¼ûÁËʲô¡£
szzfq61 ÓÚ 2011-07-13 15:38:27·¢±í:
Õâ¸ö²½ÖèºÜÏêϸ¡£¡£¡£
W_hy ÓÚ 2011-05-08 12:59:21·¢±í:
²ËÄñ±íʾֱ½Ó°´ÕÕreadme×öµÄÈ»ºóÒ»Çи㶨£¬²»¹ýÈ«ÊÇEnglish