1、问题
打包时报:Declaring custom ‘clean’ task when using,即:不允许在使用标准Gradle生命周期插件时声明自定义“clean”任务。
Error:(48, 1) A problem occurred evaluating root project 'NEWAPP'.
> Declaring custom 'clean' task when using the standard Gradle lifecycle plugins is not allowed.
2、解决办法
Declaring custom ‘clean’ task when using the standard Gradle lifecycle plugins is not allowed。翻译一下就是:不允许在使用标准Gradle生命周期插件时声明自定义“clean”任务。不允许就不适用就好了,修改项目文件(build\jsb-default\frameworks\runtime-src\proj.android-studio)下的build.gradle文件!就是把build.gradle中的clean task 无情地注释掉。
//task clean(type: Delete) {
// delete rootProject.buildDir
//}
3、结束语
The End
好了,今天的分享就到这里,如有不足之处,还望大家及时指正,随时欢迎探讨交流!!!
喜欢的朋友们,请收藏、点赞、评论!您的肯定是我写作的不竭动力!