我必须格式化Windows笔记本电脑,所以我复制了SDK文件夹(因为它的大小约为30 GB),然后将其粘贴到新Windows副本的同一位置。

现在,当我启动Android Studio和SDK Manager时,一切看起来一切正常,所有工具


模拟器上缺少Google Play Services应用。该库仅是根据Google Play服务API \\'编译项目所必需的。

根据设置Google Play服务中的参考文档:

If you want to test your app on the emulator, expand the directory for
Android 4.2.2 (API 17) or a higher version, select Google APIs, and
install it. Then create a new AVD with Google APIs as the platform
target.

因此,您需要使用Google API作为目标SDK设置。


下载Google Play服务7.0并通过adb shell或简单地通过拖放将其安装在模拟器中。

我推荐GenyMotion模拟器,因为它们相对较快且易于访问。