Creator打android包報Declaring custom ‘clean’ task when using異常


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
  好了,今天的分享就到這裏,如有不足之處,還望大家及時指正,隨時歡迎探討交流!!!


喜歡的朋友們,請收藏、點贊、評論!您的肯定是我寫作的不竭動力!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章