cordova build android和ionic build android的结果是;SyntaxError:意外标记“;蓝屏之后

cordova build android和ionic build android的结果是;SyntaxError:意外标记“;蓝屏之后,cordova,build,ionic,Cordova,Build,Ionic,我已经用“cordova构建android”构建了我的应用程序(cordova,ionic)。但是当它被建造时,我得到了一个蓝色的屏幕。。现在我无法创建应用程序,不能使用“ionic build…”或“cordova build…” 我已经使用npm更新了nodeJS、cordova和IONAL。。但是仍然会出现同样的错误,我甚至从今天早上开始恢复了每日备份,错误仍然存在 错误: C:\***\DEV\App\flugdeck>cordova build android Running

我已经用“cordova构建android”构建了我的应用程序(cordova,ionic)。但是当它被建造时,我得到了一个蓝色的屏幕。。现在我无法创建应用程序,不能使用“ionic build…”或“cordova build…”

我已经使用npm更新了nodeJS、cordova和IONAL。。但是仍然会出现同样的错误,我甚至从今天早上开始恢复了每日备份,错误仍然存在

错误:

C:\***\DEV\App\flugdeck>cordova build android

Running command: "C:\Program Files\nodejs\node.exe" "C:\***\DEV\App\flugdeck\hooks\before_prepare\01_jshint.js" "C:\***\DEV\App\flugdeck"

Linting www/js/app.js
File www/js/app.js has no errors.
-----------------------------------------
Linting www/js/config.js
File www/js/config.js has no errors.
-----------------------------------------
Linting www/js/controllers.js
File www/js/controllers.js has no errors.
-----------------------------------------
Linting www/js/controller_flightlog.js
File www/js/controller_flightlog.js has no errors.
-----------------------------------------
Linting www/js/controller_infotools.js
File www/js/controller_infotools.js has no errors.
-----------------------------------------
Linting www/js/controller_timetools.js
File www/js/controller_timetools.js has no errors.
-----------------------------------------
Linting www/js/directives.js
File www/js/directives.js has no errors.
-----------------------------------------
Linting www/js/factories.js
File www/js/factories.js has no errors.
-----------------------------------------
Linting www/js/filters.js
File www/js/filters.js has no errors.
-----------------------------------------
Linting www/js/mymodules.js
File www/js/mymodules.js has no errors.
-----------------------------------------
Linting www/js/services.js
File www/js/services.js has no errors.
-----------------------------------------
Linting www/js/templates.js
File www/js/templates.js has no errors.
-----------------------------------------

SyntaxError: Unexpected token
    at Object.parse (native)
    at Function.PlatformJson.load (C:\Users\MyUserName\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\util\PlatformJson.js:35:21)
    at Object.handlePrepare (C:\Users\MyUserName\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\prepare.js:48:37)
    at C:\Users\MyUserName\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\prepare.js:105:21
    at Array.map (native)
    at C:\Users\MyUserName\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\prepare.js:70:40
    at _fulfilled (C:\Users\MyUserName\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:787:54)
    at self.promiseDispatch.done (C:\Users\MyUserName\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:816:30)
    at Promise.promise.promiseDispatch (C:\Users\MyUserName\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:749:13)
    at C:\Users\MyUserName\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:557:44
  • 备份项目
  • 麻省理工学院cordova平台rm android die Plattformunterstützung für android entfernen
  • den Physicalischen Ordner项目根/平台/android entfernen
  • 麻省理工学院cordova平台添加android wieder die平台
  • 麻省理工学院cordova运行的安卓系统einmal laufen lassen
  • 在den平台/android Ordner kopieren undüberschreiben中使用aus dem Backup die AndroidManifest.xml
  • 麻省理工学院cordova build android die debug.apk erstellen lassen

  • 我找到了一个解决办法

  • 备份完整的应用程序文件夹
  • 使用命令“cordova platform Remove Android”从应用程序中删除Android支持
  • 删除root/platforms/android文件夹
  • 使用命令“cordova Platform Add android”添加平台支持
  • 使用命令“cordova Run android”运行一次
  • 将备份中现有的“AndroidManifest.xml”复制并覆盖到“root/platforms/android”文件夹中
  • 运行命令“cordova构建android”
  • 备份项目
  • 麻省理工学院cordova平台rm android die Plattformunterstützung für android entfernen
  • den Physicalischen Ordner项目根/平台/android entfernen
  • 麻省理工学院cordova平台添加android wieder die平台
  • 麻省理工学院cordova运行的安卓系统einmal laufen lassen
  • 在den平台/android Ordner kopieren undüberschreiben中使用aus dem Backup die AndroidManifest.xml
  • 麻省理工学院cordova build android die debug.apk erstellen lassen

  • 我找到了一个解决办法

  • 备份完整的应用程序文件夹
  • 使用命令“cordova platform Remove Android”从应用程序中删除Android支持
  • 删除root/platforms/android文件夹
  • 使用命令“cordova Platform Add android”添加平台支持
  • 使用命令“cordova Run android”运行一次
  • 将备份中现有的“AndroidManifest.xml”复制并覆盖到“root/platforms/android”文件夹中
  • 运行命令“cordova构建android”

  • 开始构建时,
    json
    配置文件中存在语法错误开始构建时,
    json
    配置文件中存在语法错误