`
weiqingfei
  • 浏览: 312069 次
  • 性别: Icon_minigender_1
  • 来自: 黑洞
社区版块
存档分类
最新评论

试用NativeScript

阅读更多

基本安装按照官网的步骤来就可以了

 

https://github.com/NativeScript/nativescript-cli

 

有两个需要注意的地方(都是关于android的,真不省心)

 

1.默认试用的SDK版本是4.2.2(API 17),否则会出现以下错误

 

写道
Please install Android target 17. Make sure you have the latest Android tools installed as well. Run "android" from your command-line to install/update any missing SDKs or tools.

 

2.创建一个虚拟机,否则运行会出现以下错误

 

写道
Could not find an emulator image to run your project.

 

查看本地已安装sdk版本

写道
android list target

 

创建一个虚拟机

写道
android create avd -n test -t 1

 

写道
test --虚拟机的名字
1 --上面命令列出的虚拟机的ID

 

运行

 

写道
tns run android --emulator --avd test

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics