首页 > 解决方案 > 为 nativescript-vue 设置 android 模拟器

问题描述

我想开始玩 nativescript-vue,我安装了 nativescript 和所有需要的依赖项,现在我正在使用 avdmanager 设置一个 android 模拟器,下载包 aimage 后我运行了这个命令:

avdmanager create avd -n test -k "system-images;android-25;google_apis;x86

现在安装程序问我所有这些问题,我不知道他们在做什么,因此我只是按了下一个问题,这是否会以安装混乱结束?...,我在我的本地 Windows 开发机器上。

它一直在运行,有没有办法进行预定义的安装,这样我就可以跳过大量的问题?

C:\Users\gabo_>sdkmanager --channel=3 emulator
[=======================================] 100% Unzipping... emulator/NOTICE.txt
C:\Users\gabo_>avdmanager create avd -n test -k "system-images;android-25;google_apis;x86"
Auto-selecting single ABI x86===========] 100% Fetch remote repository...
Do you wish to create a custom hardware profile? [no] yes

PlayStore: Does the device supports Google Play?
PlayStore.enabled [no]:yes

avd home that was used during the construction of this hardware.ini: This can be used by post processing tools to migrate snapshots
android.avd.home []:

sdk root that was used during the construction of this hardware.ini: This can be used by post processing tools to migrate snapshots
android.sdk.root []:

ID of the AVD being run:
avd.id [<build>]:

Name of the AVD being run:
avd.name [<build>]:test

Cache partition support: Whether we use a /cache partition on the device.
disk.cachePartition [yes]:yes

Cache partition: Cache partition to use on the device. Ignored if disk.cachePartition is not 'yes'.
disk.cachePartition.path []:no

Cache partition size:
disk.cachePartition.size [66MB]:

Initial data partition: If not empty, its content will be copied to the disk.dataPartition.path file at boot-time.
disk.dataPartition.initPath []:

Path to data partition file: Path to data partition file. Cannot be empty. Special value <temp> means using a temporary file. If disk.dataPartition.initPath is not empty, its content will be copied to the disk.dataPartition.path file at boot-time.
disk.dataPartition.path [<temp>]:

Ideal size of data partition:
disk.dataPartition.size [0]:

Path to encryption key partition file: Path to encryption key partition file. Should be at least 16K bytes empty disk without any filesystem on it.
disk.encryptionKeyPartition.path []:

Path to the ramdisk image: Path to the ramdisk image.
disk.ramdisk.path []:

Path to snapshot storage: Path to a 'snapshot storage' file, where all snapshots are stored.
disk.snapStorage.path []:

Initial system partition image:
disk.systemPartition.initPath []:

Path to runtime system partition image:
disk.systemPartition.path []:

Ideal size of system partition:
disk.systemPartition.size [0]:

Initial vendor partition image:
disk.vendorPartition.initPath []:

Path to runtime vendor partition image:
disk.vendorPartition.path []:

Ideal size of vendor partition:
disk.vendorPartition.size [0]:

Always use cold boot: If set, AVD will always use the full cold boot instead of snapshot-based quick boot process
fastboot.forceColdBoot [no]:

它不停地前进……

标签: javascriptjavaandroidnativescript

解决方案


是的,有一种方法可以通过选择 [no] 作为答案来进行预定义安装:

“您希望创建自定义硬件配置文件吗?[否]”

我为此苦苦挣扎,发现选择默认值并继续前进会更容易。


推荐阅读