每次我运行这个命令:ionic cordova build android --release
我正在使用cordova -v 7.0.1
我收到这个错误:
The config file (.\ionic.config.json) is not valid JSON format.
Please fix any JSON errors in the file.
这是我的文件:
{
"app_id": "12345",
"name": "myApp",
"type": "ionic1"
}
我不确定这里发生了什么。
此命令运行良好:cordova build android --release
我不确定 ionic 是怎么回事。
最佳答案
转到此路径 - C:/Users/{your_username}/.ionic
找到文件 ionic.config
并删除它。
它将由 CLI 自动重新生成。
关于json - 配置文件 (.\ionic.config.json) 不是有效的 JSON 格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44568997/