<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Calvin's Tech Space

    成于堅忍,毀于浮躁

       :: 首頁 :: 聯系 :: 聚合  :: 管理
    當真機通過usb連接到電腦后,運行adb devices顯示no permission錯誤,需要進行如下步驟(文檔 Developing on a Device ): 
     

    Setting up a Device for Development

    With an Android-powered device, you can develop and debug your Android applications just as you would on the emulator. There are just a few things to do before you can start.

    1. Declare your application as "debuggable" in your Android Manifest.

      In Eclipse, you can do this from the Application tab when viewing the Manifest (on the right side, set Debuggable to true). Otherwise, in theAndroidManifest.xml file, add android:debuggable="true" to the <application> element.

    2. Turn on "USB Debugging" on your device.

      On the device, go to the home screen, press MENU, select Applications > Development, then enable USB debugging.

    3. Setup your system to detect your device.
      • If you're developing on Windows, you need to install a USB driver for adb. Follow the steps below for Installing the WinUsb Driver.
      • If you're developing on Mac OS X, it just works. Skip this step.
      • If you're developing on Ubuntu Linux, you need to add a rules file:
        1. Login as root and create this file: /etc/udev/rules.d/51-android.rules.

          For Gusty/Hardy, edit the file to read: 
          SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"

          For Dapper, edit the file to read: 
          SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0bb4", MODE="0666"

        2. Now execute:
          chmod a+rx /etc/udev/rules.d/51-android.rules

    You can verify that your device is connected by executing adb devices from your SDK tools/ directory. If connected, you'll see the device name listed as a "device."

    If using Eclipse, select run or debug as usual. You will be presented with a Device Chooser dialog that lists the available emulator(s) and connected device(s). Select the device to install and run the application there.

    If using the Android Debug Bridge (adb), you can issue commands with the -d flag to target your connected device.

    posted on 2010-03-14 20:02 calvin 閱讀(2082) 評論(0)  編輯  收藏 所屬分類: Android
    主站蜘蛛池模板: 免费无毒a网站在线观看| 免费国产黄网站在线观看可以下载| 免费看黄网站在线看| 一本色道久久88亚洲综合| 亚洲第一福利网站| 亚洲精品av无码喷奶水糖心| 亚洲精品免费视频| 亚洲国产精品一区二区三区久久| 亚洲av无码专区在线观看亚 | 99免费观看视频| 亚洲人成色777777精品| 黄色成人免费网站| 亚洲第一AAAAA片| 在线91精品亚洲网站精品成人| 国产大片免费网站不卡美女 | 特级毛片爽www免费版| 国产一区二区三区免费视频| 亚洲AV无码一区二区三区人| 99久久久国产精品免费蜜臀| 亚洲av无码专区在线观看亚| 久久亚洲AV成人无码电影| a级毛片免费高清毛片视频| 亚洲伊人成无码综合网 | 色天使亚洲综合一区二区| 国产精品免费综合一区视频| 亚洲日韩精品无码专区加勒比 | 色播精品免费小视频| 一级午夜a毛片免费视频| 中文字幕亚洲日韩无线码| 一本一道dvd在线观看免费视频 | 亚洲XX00视频| 中文字幕无码免费久久99| 亚洲av无码专区在线| 亚洲精品无码av人在线观看 | 24小时免费直播在线观看| 一本天堂ⅴ无码亚洲道久久| 成人免费毛片视频| 亚洲国产成人精品无码区二本| 亚洲综合婷婷久久| 亚洲AV无码乱码国产麻豆穿越 | 波多野结衣中文字幕免费视频|