程序问答   发布时间:2022-06-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Nativescript + Angular:运行“tns run android”时无法启动清理过程错误大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决Nativescript + Angular:运行“tns run android”时无法启动清理过程错误?

开发过程中遇到Nativescript + Angular:运行“tns run android”时无法启动清理过程错误的问题如何解决?下面主要结合日常开发的经验,给出你关于Nativescript + Angular:运行“tns run android”时无法启动清理过程错误的解决方法建议,希望对你解决Nativescript + Angular:运行“tns run android”时无法启动清理过程错误有所启发或帮助;

我正在 macOS Big Sur 上用 Nativescript + Angular 构建一个项目。我无法运行或构建该项目的 androID 版本。我不断收到此错误:

Error while reporTing exception: Error: Unable to start Cleanup process.

有人熟悉这个错误吗?我成功运行了 tns clean 以及 tns platform remove androIDtns platform add androIDtns prepare androID,但是如果我运行 tns build androIDtns run androID,我会收到上述错误。

这是我的 package.Json。如果有任何有用的文件,请告诉我。

    {
  "name": "@nativescript/template-Hello-world-ng","main": "main.Js","version": "7.0.8","author": "NativeScript Team <oss@nativescript.org>","description": "NativeScript Application","license": "SEE liCENSE IN <your-license-filename>","publishConfig": {
    "access": "public"
  },"keywords": [
    "nativescript","mobile","angular","{N}","template"
  ],"repository": "<fill-your-repository-here>","BUGs": {
    "url": "https://github.com/NativeScript/NativeScript/issues"
  },"dependencIEs": {
    "@angular/animations": "~11.0.0","@angular/common": "~11.0.0","@angular/compiler": "~11.0.0","@angular/core": "~11.0.0","@angular/forms": "~11.0.0","@angular/platform-browser": "~11.0.0","@angular/platform-browser-dynamic": "~11.0.0","@angular/router": "~11.0.0","@nativescript-community/ui-chart": "^1.1.29","@nativescript/angular": "~11.0.0","@nativescript/core": "^7.3.0","@nativescript/firebase": "^11.1.3","@nativescript/theme": "~3.0.0","nativescript": "^7.2.0","nativescript-carousel": "^7.0.1","nativescript-custom-bottomsheet": "^1.0.6","nativescript-Fontawesome": "^1.0.0","nativescript-ngx-Fonticon": "^7.0.0","nativescript-ui-chart": "^8.0.2","nativescript-ui-dataform": "^7.0.4","reflect-Metadata": "~0.1.12","rxJs": "^6.6.0","sass": "^1.32.7","zone.Js": "~0.11.1"
  },"devDependencIEs": {
    "@angular/compiler-cli": "~11.0.0","@nativescript/androID": "7.0.1","@nativescript/ios": "8.0.0","@nativescript/types": "~7.0.0","@nativescript/webpack": "~3.0.0","@ngtools/webpack": "~11.0.0","typescript": "^4.0.2"
  },"githead": "41a7254d3bc134fd3c258761f3c6e1c3d54e6d41","private": "true","readme": "NativeScript Application"
}

解决方法

终于得到一个有用的错误信息:

/Users/***/Documents/GitHub/RexChange_private/platforms/android/app/src/main/res/drawable-xhdpi/facebookLogo.png: Error: 'L' is not a valid file-based resource name character: File-based resource names must contain only lowercase a-z,0-9,or underscore

重命名我的图像资源解决了这个问题。我想这个错误是一个包罗万象。

大佬总结

以上是大佬教程为你收集整理的Nativescript + Angular:运行“tns run android”时无法启动清理过程错误全部内容,希望文章能够帮你解决Nativescript + Angular:运行“tns run android”时无法启动清理过程错误所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:+run