AAPT2 aapt2-3.5.2-5435860-windows Daemon #0: Daemon startup failed
Jenkins打包android APK时报错:Jenkins中报错只是说资源文件编译失败了,并没有任何提示说找不到资源文件,于是尝试了网上的各种办法全都没用,最终在一篇文章中看到了路径过长的问题,终于解决了!那篇博文已经找不到了,就不贴地址了~FAILURE: Build failed with an exception.* What went wrong:Execution failed fo
·
Jenkins打包android APK时报错:
Jenkins中报错只是说资源文件编译失败了,并没有任何提示说找不到资源文件,于是尝试了网上的各种办法全都没用,最终在一篇文章中看到了路径过长的问题,终于解决了!那篇博文已经找不到了,就不贴地址了~
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Multiple task action failures occurred:
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> AAPT2 aapt2-3.5.2-5435860-windows Daemon #0: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> AAPT2 aapt2-3.5.2-5435860-windows Daemon #3: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> AAPT2 aapt2-3.5.2-5435860-windows Daemon #2: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> AAPT2 aapt2-3.5.2-5435860-windows Daemon #1: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> AAPT2 aapt2-3.5.2-5435860-windows Daemon #4: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> AAPT2 aapt2-3.5.2-5435860-windows Daemon #5: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> AAPT2 aapt2-3.5.2-5435860-windows Daemon #6: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> AAPT2 aapt2-3.5.2-5435860-windows Daemon #7: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
产生原因:
jenkins默认工作空间路径比较长 比如我的项目资源文件目录
C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\android_driver\android\app\src\main\res
所以由于项目中资源文件路径过长,jenkins访问不到造成的,这就比较坑了,自己默认的自己找不到
解决办法:
指定Jenkins工作空间就可以了
看图
更多推荐
已为社区贡献1条内容
所有评论(0)