ADB Android Device Unauthorized

后端 未结 30 1435
伪装坚强ぢ
伪装坚强ぢ 2020-11-22 14:36

Since I reinstalled Eclipse (simply deleted and downloaded it again) I can\'t debug my applications on Samsung Galaxy i9001 (with CyanogenMod - Android 4.4.2). It worked fin

相关标签:
30条回答
  • 2020-11-22 15:13

    I had a similar problem. However, it was solved using a different solution. I thought I might share this here as well. Let me describe my problem first.

    I had the Android SDK in my ubuntu. The path to the android SDK was not in the environment variable path. I installed adb using a apt-get command and it could not find the sdk home folder and hence, it was showing the unauthorized error and the device was not popping up anything as well. I got stuck here.

    Then I uninstalled the adb using apt-get purge which I installed earlier. The Android SDK has the adb program in the platform-tools folder. I just add the path to the environment variable and it worked like a charm.

    export PATH=${PATH}:/home/YOUR-USERNAME/path/to/adb
    adb devices
    List of devices attached
    f7f716d56905    device
    

    Hence the problem was not setting the Android SDK to the environment variable path.

    0 讨论(0)
  • 2020-11-22 15:14

    Steps that worked for me:
    1. Disconnect phone from usb cable
    2. Revoke USB Debugging on phone
    3. Restart the device
    4. Reconnect the device

    The most important part was rebooting the device. Didn't work without it .

    0 讨论(0)
  • 2020-11-22 15:17

    Ohhh finally I figured it out! After removing Eclipse directory I installed it into another directory.

    echo %ANDROID_SDK_HOME%
    

    has displayed wrong path to sdk directory.

    1. set ANDROID_SDK_HOME "E:\adt-bundle-windows-x86_64-20140321\sdk"
    2. unplug device
    3. adb kill-server
    4. adb start-server
    5. plug device

    After these steps, I was able to see confirmation dialog with RSA fingerprint on my phone :)

    0 讨论(0)
  • 2020-11-22 15:17

    What I've done to solve the issue was to disconnect and reconnect the usb cable to the USB port again (done with another port on my machine).

    Then I have chose to charge and that's it. The mobile device asked me to grant access for the machine, I agreed and that's solved the issue.

    When running adb devices, I saw the device in the list.

    (Done in Windows 10 home).

    0 讨论(0)
  • 2020-11-22 15:18

    If you are on ubuntu, try running the server as root:

    sudo adb kill-server
    
    sudo adb start-server
    
    
    0 讨论(0)
  • 2020-11-22 15:19

    You should delete the file: c:\users\_user_name_\.android\adbkey

    0 讨论(0)
提交回复
热议问题