I found a solution after spending the 3 day. Replace your current adb with another working adb. Click here to download adb.
Steps:->
1> First download adb file for the above link .
2> To add adb file in platform-tools inside Sdk folder in android studio.
3> Open Android Studio and go to Tools and inside Tools there is a SDK Manager.
click on SDK Manager as shown below:--
4> Copy the Android SDK Location address (path is as like as C:UsersAPPPPPPPPPPPPPPPAppDataLocalAndroidSdk ) shown below
5> Search the copy address in the search bar of Windows OS,then a Platform-Tools folder is show under Sdk folder.
6> Open the Platform-Tools delete the existing adb.exe file and add the downloaded adb.exe file is pasted in the Platform-tools folder.
After placing the adb.exe file.Open Android Studio and create a new project of use existing project and click on Run in the menu bar or Run button and you see that in Event Log the error of unable to detect adb version,adb output is removed and you successfully run the project either by using AVD emulator OR Real devices like android smartphones.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…