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
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.
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 .
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.
set ANDROID_SDK_HOME "E:\adt-bundle-windows-x86_64-20140321\sdk"
adb kill-server
adb start-server
After these steps, I was able to see confirmation dialog with RSA fingerprint on my phone :)
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).
If you are on ubuntu, try running the server as root:
sudo adb kill-server
sudo adb start-server
You should delete the file: c:\users\_user_name_\.android\adbkey