我正在Windows 10上,并且希望在USB-C连接的Android设备上运行我的应用程序。
我的第一步始终是删除node_modules,hook和platform文件夹以及package.lock.json文件。之后,我运行tns build android。一旦构建完成,我不是运行TNS运行Android或开始通过nativescript搭档演出nativescript-插件,火力应用:建立一个同样的环境下,不强迫准备,在现在这样的目的:
项目成功建立。正在设备5B24000362上安装...已成功在标识为“ 5B24000362”的设备上安装。无法在设备上应用更改:5B24000362。错误是:套接字连接超时。
由于两天前我已经出现此错误,并且无法继续使用该应用程序,因此我更新了nativescript和nativescript-plugin-firebase。
我的package.json
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "NativeScript Application",
"repository": "<fill-your-repository-here>",
"profiling": "timeline",
"nativescript": {
"id": "org.nativescript.project",
"tns-android": {
"version": "5.1.0"
}
},
"dependencies": {
"@angular/animations": "~6.0.0",
"@angular/common": "~6.0.0",
"@angular/compiler": "~6.0.0",
"@angular/core": "~6.0.0",
"@angular/forms": "~6.0.0",
"@angular/http": "~6.0.0",
"@angular/platform-browser": "~6.0.0",
"@angular/platform-browser-dynamic": "~6.0.0",
"@angular/router": "~6.0.0",
"nativescript": "^5.1.1",
"nativescript-accordion": "^5.0.4",
"nativescript-angular": "~6.0.0",
"nativescript-barcodescanner": "^2.7.8",
"nativescript-localstorage": "^1.1.5",
"nativescript-plugin-firebase": "^7.7.0",
"nativescript-push-notifications": "^1.1.4",
"nativescript-theme-core": "~1.0.4",
"nativescript-toast": "^1.4.6",
"nativescript-ui-listview": "^3.5.8",
"nativescript-ui-sidedrawer": "^4.1.1",
"nativescript-urlhandler": "^1.2.2",
"reflect-metadata": "~0.1.8",
"rxjs": "~6.1.0",
"tns-android": "^4.2.0",
"tns-core-modules": "^4.2.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular/compiler-cli": "~6.1.0",
"@ngtools/webpack": "~6.1.0",
"babel-traverse": "6.4.5",
"babel-types": "6.4.5",
"babylon": "6.4.5",
"lazy": "1.0.11",
"nativescript-dev-typescript": "~0.7.0",
"nativescript-dev-webpack": "^0.15.1",
"typescript": "~2.7.2"
}
}