之前安装的android模拟器可以正常运行,后来因为需要在本地进行app打包,安装了Android Studio后,就无法打开android模拟器,检查了环境变量没啥问题。SDK Manager本质上是执行tools目录下面的android命令。遂在cmd中执行android.bat命令发现提示如下图,原来是Google将原来的SDK Manager弃用了。
百度了一番才找到一个简单的解决方法,修改android sdk文件夹下的tools里面的android.bat文件内容就可以恢复成之前的形式。
ps:请先备份之前的android.bat文件,然后替换成如下内容:
@echo off
rem Copyright (C) 2007 The Android Open Source Project
rem
rem Licensed under the Apache License, Version 2.0 (the "License");
rem you may not use this file except in compliance with the License.
rem You may obtain a copy of the License at
rem
rem http://www.apache.org/licenses/LICENSE-2.0
rem
rem