最近遇到一个问题: 新安装的Android Studio ,每次打开logcat的时候都报错:
Unable to create Debug Bridge:Unableto start adb server:Unableto detect adb version,exit value:0xc0000135.ADB depenps on the Windows Universal C Runtime,which is usually installed by default via Windows Update. You may need to Manually fetch and install the runtime package here:http://xxxxxxxxxxx
我的 adb 目录在D:\Android\Sdk\platform-tools
我就在adb 目录下看看adb 命令是否可用
发现api-ms-win-crt-private-l1-1-0.dll 文件丢失(这是关键)
找到问题的关键, 那么久简单了,去下载一个api-ms-win-crt-private-l1-1-0.dll文件即可
直接拷贝系统对应的api-ms-win-crt-private-l1-1-0.dll到系统目录里:
1、Windows 95/98/Me系统,将api-ms-win-crt-private-l1-1-0.dll复制到C:\Windows\System目录下。
2、Windows NT/2000系统,将api-ms-win-crt-private-l1-1-0.dll复制到C:\WINNT\System32目录下。
3、Windows XP/WIN7/win10系统(64位系统对应64位dll文件,32位系统对应32位dll文件),将api-ms-win-crt-private-l1-1-0.dll复制到C:\Windows\System32目录下。
4、如果您的系统是64位的请将32位的dll文件复制到C:\Windows\SysWOW64目录。
我的64位系统,所以放在C:\Windows\SysWOW64目录下; 之后问题顺利解决;