gpt4 book ai didi

android - ionic 运行android-错误评估CordovaLib

转载 作者:行者123 更新时间:2023-12-03 04:21:39 26 4
gpt4 key购买 nike

我正在尝试使用以下命令在Android设备上运行Ionic

ionic cordova run android --device

不幸的是,我收到一个我不知道如何解决的构建错误。尝试卸载/安装cordova和ionic,但这并没有帮助

“什么地方出了错:
评估项目CordovaLib时发生问题。”

当我遇到与Windows用户配置文件有关的问题时,问题就开始了。我将所有用户文件复制到其他目录,设置新用户,然后从备份复制回所有文件。看起来不是一个明智的举动

请帮忙!
enter image description here
谢谢

这是Package.json和 ionic 信息:
{
"name": "TowerJazzApp",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "5.0.3",
"@angular/compiler": "5.0.3",
"@angular/compiler-cli": "5.0.3",
"@angular/core": "5.0.3",
"@angular/forms": "5.0.3",
"@angular/http": "5.0.3",
"@angular/platform-browser": "5.0.3",
"@angular/platform-browser-dynamic": "5.0.3",
"@ionic-native/app-version": "^4.5.3",
"@ionic-native/core": "4.4.0",
"@ionic-native/in-app-browser": "^4.6.0",
"@ionic-native/launch-navigator": "^4.5.3",
"@ionic-native/splash-screen": "4.4.0",
"@ionic-native/status-bar": "4.4.0",
"@ionic/storage": "2.1.3",
"angular2-logger": "^0.7.0",
"cordova-android": "7.0.0",
"cordova-plugin-actionsheet": "^2.3.3",
"cordova-plugin-app-version": "^0.1.9",
"cordova-plugin-device": "^2.0.1",
"cordova-plugin-dialogs": "^2.0.1",
"cordova-plugin-inappbrowser": "^2.0.2",
"cordova-plugin-ionic-keyboard": "^2.0.5",
"cordova-plugin-ionic-webview": "^1.1.16",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-whitelist": "^1.3.3",
"ionic-angular": "3.9.2",
"ionicons": "3.0.0",
"rxjs": "5.5.2",
"sw-toolbox": "3.6.0",
"uk.co.workingedge.phonegap.plugin.launchnavigator": "^4.1.5",
"zone.js": "0.8.18"
},
"devDependencies": {
"@ionic/app-scripts": "3.1.8",
"typescript": "2.4.2"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-app-version": {},
"uk.co.workingedge.phonegap.plugin.launchnavigator": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {},
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-inappbrowser": {}
},
"platforms": [
"android"
]
}
}

enter image description here

最佳答案

只需从CordovaLib中删除platform/android文件夹

并重新运行您的应用

关于android - ionic 运行android-错误评估CordovaLib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50121681/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com