If for some reason, the device fails to recognize this key then it will pop you the ADB error. Edit Environment Variables Then click new and paste in the path to the ADB directory which should be USERPROFILE\AppData\Local\Android\sdk\platform-tools And hit OK Adding ADB path You should be good now. Once you have done that, go ahead and open up the Android Studio again. From the start menu search for Edit environment variables for your account Click Path and then Edit. Opening Task Manager In the Task Manager window, under Processes, look for the ADB.exe process and end it. From the menu that appears, choose Task Manager. android/adbkey.pubĪDB vendor key helps to connect your USB to devices. First of all, close the Android Studio and then open up the Task Manager by right-clicking your taskbar. Step 4: Manually copy the ADB key from Computer. android/adbkey adb I 47453 711886 adb_auth_host.cpp:220] generate_key '.android/adbkey' adb I 47453 711886 adb_auth_host.cpp:173] Writing public key to '.android/adbkey.pub' Step 3: Create new ADB keypair by entering this command adb keygen. Step 2: Remove existing ADB key by entering this command rm -v. You can regenerate your ADB key from your computer i.e Mac, Linux or Windows from a command shell. Step 7: Scroll down to USB debugging mode and enable the option Step 7: You will see a small pop-up of Developer mode enabled.