On windows:

If you’re developing on Windwos (32-bit only), you need to install the USB driver for adb:

1.  Download the driver ZIP file and unzip it.

2. Connect your Android device via USB. When the Found New Hardware Wizard appears, you’ll be asked if you’d like Windows Update to search for software, select No, not this time and click Next.

3. Select Install from a list or specified location and clieck Next.

4. Select Search for the best driver in these locations. Browse and select the unzipped file.

5. Click Finish. You’re all set.

On Ubuntu Linux

1.
Plug-in your device then exec command ‘lsusb’ then you will see the list of current usb devices

Bus 003 Device 023: ID 18d1:d00d

We will see a device is appeared when it plug-in and disappeared when it plug-out. That device is we wanted and take my environment as an example it is located at line 1, “Bus 003 Device 023: ID 18d1:d00d”, without device provider.

2. Login as root and create this file: /etc/udev/rules.d/50-android.rules

For Gusty/Hardy, edit the file to read:

SUBSYSTEM==”usb”, SYSFS(idVendor)==”18d1“, MODE=”0666″

For Dapper, edit the file to read:

SUBSYSTEM==”usb_device”, SYSFS(idVendor)==”18d1“, MODE=”0666″

P.S. the “18d1” is hard coded in android/kernel/drivers/usb/gadget/android_adb.c
#define DRIVER_VENDOR_ID

2. Nwx execute:

chmod a+rx /etc/udev/rules.d/50-android.rules

3. Restart udev to make the rule active.

 sudo /etc/init.d/udev restart

To construct the Android develop environment in Windows

October 28, 2008 at 3:33 pm | In android | Leave a Comment
Tags:
,

1. Create folder. Ex: C:\Android

2. Download Android SDK. Decompress it and put it in C:\Android\android_sdk

3. Download eclipse  3.4 (Ganymede). Decompress it and put it in C:\eclipse

4. Download and install Java SE Development Kit (JDK 5 or JDK 6).

5. Add the jre path to your path of environment variable. Ex: C:\Program Files\Java\jre1.6.0_05\bin

6. Install Android Eclipse Plugin ADT (Android Development Tools)

7. Installing the Eclipse Plugin (ADT)

  • Decompress it and put it in C:\Android\ADT\
  • Eclipse -> Help -> Software Updates… -> Add site -> Local -> select C:\Android\ADT\ -> OK -> OK
  • Press the check box of C:\Android\ADT and press install
  • Restart Eclipse.

8. Assign the path of Android SDK. Eclipse-> Window -> Preferences -> Android -> SDK Location -> C:\Android\android_sdk.

9. Now, you can create the Android project.

If Console display “Failed to get the adb version: Cannot run program “C:\Android\android_sdk\tools\adb.exe”: CreateProcess error=3″, you can ignore it.

'old > Build Serv' 카테고리의 다른 글

ubuntu android 설치  (0) 2010.03.12
Ubuntu Build Machine Install  (0) 2010.02.04
Posted by jazzlife
,