离子cordova运行android失败,错误为任务':app:processDebugResources'执行失败

时间:2019-11-20 12:33:42

标签: cordova ionic-framework npm

无法在设备上运行ionic 4应用程序,我在ionic 4的ionic cordova run android中出现错误,因为任务':app:processDebugResources'的执行失败。

错误日志

* What went wrong:
**Execution failed for task ':app:processDebugResources'.**
> Android resource linking failed
  error: resource style/TextAppearance.Compat.Notification.Info (aka io.ionic.starter:style/TextAppearance.Compat.Notification.Info) not found.
  error: resource style/TextAppearance.Compat.Notification.Info (aka io.ionic.starter:style/TextAppearance.Compat.Notification.Info) not found.
  error: resource style/TextAppearance.Compat.Notification.Info (aka io.ionic.starter:style/TextAppearance.Compat.Notification.Info) not found.
  error: resource style/TextAppearance.Compat.Notification (aka io.ionic.starter:style/TextAppearance.Compat.Notification) not found.
  error: resource style/TextAppearance.Compat.Notification (aka io.ionic.starter:style/TextAppearance.Compat.Notification) not found.
  error: resource style/TextAppearance.Compat.Notification (aka io.ionic.starter:style/TextAppearance.Compat.Notification) not found.
  error: resource style/TextAppearance.Compat.Notification.Time (aka io.ionic.starter:style/TextAppearance.Compat.Notification.Time) not found.
  error: resource style/TextAppearance.Compat.Notification.Time (aka io.ionic.starter:style/TextAppearance.Compat.Notification.Time) not found.
  error: resource style/TextAppearance.Compat.Notification.Time (aka io.ionic.starter:style/TextAppearance.Compat.Notification.Time) not found.
  error: resource style/TextAppearance.Compat.Notification.Title (aka io.ionic.starter:style/TextAppearance.Compat.Notification.Title) not found.
  error: resource style/TextAppearance.Compat.Notification.Title (aka io.ionic.starter:style/TextAppearance.Compat.Notification.Title) not found.
  error: resource style/TextAppearance.Compat.Notification.Title (aka io.ionic.starter:style/TextAppearance.Compat.Notification.Title) not found.
  error: failed linking references.\

无法构建或运行ionic 4应用,请帮助我解决此问题

ionic version

npm version

Ionic:

   Ionic CLI                     : 5.2.7 (C:\Users\Developer\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.11.5
   @angular-devkit/build-angular : 0.801.3
   @angular-devkit/schematics    : 8.1.3
   @angular/cli                  : 8.1.3
   @ionic/angular-toolkit        : 2.1.1

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 8.1.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 5 other plugins)

Utility:

   cordova-res : 0.8.1
   native-run  : 0.2.9

System:

   NodeJS : v10.16.3 (C:\Program Files\nodejs\node.exe)
   npm    : 6.9.0
   OS     : Windows 7

0 个答案:

没有答案