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


文書ディレクトリ
  • 1、問題
  • 2、解決方法
  • 3、終了語
  • 1、問題
     梱包時報:Dellaring 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」タスクを宣言することはできません.許可されなければ適用されず、プロジェクトファイル(buildjsb-defaultframeworksruntime-srcproj.android-studio)の下のbuildを変更します.gradleファイル!つまりgradleのclean taskは非情に注釈した.
    //task clean(type: Delete) {
    //    delete rootProject.buildDir
    //}
    

    3、終わりの言葉
    The End
    好きな友达、コレクション、いいね、コメントをしてください!あなたのはきっと私の書く尽きない動力に違いありません!