这一直困扰着我,阻止我发布我的应用程序。
我有以下package.json文件来显示配置和版本
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "NativeScript Application",
"repository": "<fill-your-repository-here>",
"nativescript": {
"id": "com.pointdeveloper.myAmreli",
"tns-android": {
"version": "2.4.1"
}
},
"dependencies": {
"@angular/common": "2.2.1",
"@angular/compiler": "2.2.1",
"@angular/core": "2.2.1",
"@angular/forms": "2.2.1",
"@angular/http": "2.2.1",
"@angular/platform-browser": "2.2.1",
"@angular/platform-browser-dynamic": "2.2.1",
"@angular/router": "3.2.1",
"nativescript-admob": "^1.3.0",
"nativescript-angular": "1.2.0",
"nativescript-angular-snapshot": "1.2.0-5.2.361-2",
"nativescript-camera": "^0.0.8",
"nativescript-iqkeyboardmanager": "^1.0.1",
"nativescript-localstorage": "^1.1.0",
"nativescript-master-technology": "^1.0.9",
"nativescript-ng2-fonticon": "^1.3.4",
"nativescript-permissions": "^1.2.2",
"nativescript-phone": "^1.2.3",
"nativescript-plugin-firebase": "^3.8.4",
"nativescript-ripple": "^1.1.0",
"nativescript-social-share": "^1.3.1",
"nativescript-theme-core": "^1.0.2",
"nativescript-toast": "^1.4.3",
"reflect-metadata": "~0.1.8",
"rxjs": "5.0.0-beta.12",
"tns-core-modules": "2.4.1"
},
"devDependencies": {
"babel-traverse": "6.20.0",
"babel-types": "6.20.0",
"babylon": "6.14.1",
"lazy": "1.0.11",
"nativescript-dev-android-snapshot": "^0.*.*",
"nativescript-dev-typescript": "^0.3.2",
"typescript": "^2.0.10",
"zone.js": "~0.6.21"
}
}
我的系统上安装了Android API 19以及API 23。
当我在运行API 19的Visual Studio模拟器(hyper-v)上测试我的应用程序时,应用程序运行正常。
但是一旦我在我的设备上测试了我的应用程序,该应用程序有API 22,而另一台设备上有应用API 23,应用程序就会落后很多......我的意思是导航之间会有几秒钟的延迟。
我在这里做错了什么?
关于构建和部署哪些版本的经验法则是什么?
另外,有没有办法在NativeScript中设置min和max sdk版本。
-Thanks