我正在学习并尝试通过cordova来构建应用,并且我正在使用 Ubuntu 17.10 ,现在无法在模拟器上对其进行测试,因此我无法使用新的 API级别28创建另一个ADV ,当前我具有 API级别22 ,它的正常工作现在需要最新版本,因此我按照以下步骤操作:
1. Tools > ADV Manager
2. Create new Device > Set all config.
3. Download latest API 28
现在下载最新的API文件时,出现以下错误
To install:
- Android Emulator (emulator)
- Google Play Intel x86 Atom System Image (system-images;android-28;google_apis_playstore;x86)
Preparing "Install Android Emulator (revision: 27.3.9)".
Downloading https://dl.google.com/android/repository/emulator-linux-4899998.zip
An error occurred while preparing SDK package Android Emulator: Cannot download 'https://dl.google.com/android/repository/emulator-linux-4899998.zip': Read timed out
, response: 200 OK.
"Install Android Emulator (revision: 27.3.9)" failed.
Preparing "Install Google Play Intel x86 Atom System Image (revision: 4)".
Downloading https://dl.google.com/android/repository/sys-img/google_apis_playstore/x86-28_r04.zip
An error occurred while preparing SDK package Google Play Intel x86 Atom System Image: Cannot download 'https://dl.google.com/android/repository/sys-img/google_apis_playstore/x86-28_r04.zip': Read timed out
, response: 200 OK.
"Install Google Play Intel x86 Atom System Image (revision: 4)" failed.
Failed packages:
- Android Emulator (emulator)
- Google Play Intel x86 Atom System Image (system-images;android-28;google_apis_playstore;x86)
所以我手动下载了两个文件
无法下载'https://dl.google.com/android/repository/emulator-linux-4899998.zip
无法下载“ https://dl.google.com/android/repository/sys-img/google_apis_playstore/x86-28_r04.zip”
现在如何手动安装。
我获得了this的系统映像,但获得了 emulator-linux-4899998.zip ,该如何安装?
注意:: 我已经尝试过使缓存无效并重新启动,所以请不要对此发表评论!
快乐编码!