JakeWharton / butterknife

Bind Android views and callbacks to fields and methods.
http://jakewharton.github.io/butterknife/
Apache License 2.0
25.56k stars 4.6k forks source link

butterknife-gradle-plugin:8.8.1 build failed #1086

Closed shingohu closed 7 years ago

shingohu commented 7 years ago

The root build.gradle dependencies { classpath 'com.android.tools.build:gradle:2.3.3' //lambda classpath 'me.tatarka:gradle-retrolambda:3.7.0'

    classpath 'com.jakewharton:butterknife-gradle-plugin:8.8.1'

    classpath 'com.antfortune.freeline:gradle:0.8.7'
    classpath 'io.objectbox:objectbox-gradle-plugin:1.0.1'
    //classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2' // add plugin
    // NOTE: Do not place your application base here; they belong
    // in the individual module build.gradle files
    classpath 'com.bugtags.library:bugtags-gradle:latest.integration'
}

FAILURE: Build failed with an exception.

but The com.jakewharton:butterknife-gradle-plugin:8.5.1 is ok

JakeWharton commented 7 years ago

Paste the entire stack trace

On Wed, Sep 20, 2017, 10:56 PM shingohu notifications@github.com wrote:

The root build.gradle dependencies { classpath 'com.android.tools.build:gradle:2.3.3' //lambda classpath 'me.tatarka:gradle-retrolambda:3.7.0'

classpath 'com.jakewharton:butterknife-gradle-plugin:8.8.1'

classpath 'com.antfortune.freeline:gradle:0.8.7'
classpath 'io.objectbox:objectbox-gradle-plugin:1.0.1'
//classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2' // add plugin
// NOTE: Do not place your application base here; they belong
// in the individual module build.gradle files
classpath 'com.bugtags.library:bugtags-gradle:latest.integration'

}

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task '👨processAllDebugResources'.

com.github.javaparser.ast.CompilationUnit.getTypes()Lcom/github/javaparser/ast/NodeList;

but The com.jakewharton:butterknife-gradle-plugin:8.5.1 is ok

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JakeWharton/butterknife/issues/1086, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEEEU_Tw3_CfymKFBWGCmOUfE1K7LGmks5skdBygaJpZM4Peu-8 .

shingohu commented 7 years ago

Executing tasks: [:app:generateTtDebugSources, :app:mockableAndroidJar, :app:prepareTtDebugUnitTestDependencies, :app:generateTtDebugAndroidTestSources, :jsbridge:generateAllDebugSources, :jsbridge:generateAllDebugAndroidTestSources, :jsbridge:prepareAllDebugUnitTestDependencies, :jsbridge:mockableAndroidJar, :man:generateAllDebugSources, :man:prepareAllDebugUnitTestDependencies, :man:mockableAndroidJar, :man:generateAllDebugAndroidTestSources]

Parallel execution with configuration on demand is an incubating feature. Incremental java compilation is an incubating feature. Jack is disabled, but one of the plugins you are using supports Java 8 language features. Jack is disabled, but one of the plugins you are using supports Java 8 language features. Jack is disabled, but one of the plugins you are using supports Java 8 language features. Jack is disabled, but one of the plugins you are using supports Java 8 language features. :app:objectboxPrepareBuild :jsbridge:preBuild UP-TO-DATE :jsbridge:preAllDebugBuild UP-TO-DATE :app:preBuild :app:preTtDebugBuild :app:checkTtDebugManifest :app:preProductDebugBuild :app:extractProguardFiles :app:preProductReleaseBuild :app:preTtReleaseBuild :app:prepareComAliyunAmsAlicloudAndroidPush3011Library :jsbridge:checkAllDebugManifest :jsbridge:prepareAllDebugDependencies :jsbridge:compileAllDebugAidl :app:prepareComAliyunAmsAlicloudAndroidThirdPush304Library :app:prepareComAliyunDpaOssAndroidSdk242Library :jsbridge:compileAllDebugAidl UP-TO-DATE :jsbridge:compileAllDebugNdk UP-TO-DATE :jsbridge:compileLint :app:prepareComAndroidSupportAnimatedVectorDrawable2531Library :man:preBuild UP-TO-DATE :jsbridge:compileLint UP-TO-DATE :jsbridge:copyAllDebugLint :man:preAllDebugBuild :app:prepareComAndroidSupportAppcompatV72531Library :man:preAllDebugBuild UP-TO-DATE :jsbridge:copyAllDebugLint UP-TO-DATE :jsbridge:mergeAllDebugShaders :man:checkAllDebugManifest :app:prepareComAndroidSupportDesign2531Library :jsbridge:mergeAllDebugShaders UP-TO-DATE :app:prepareComAndroidSupportExifinterface2531Library :jsbridge:compileAllDebugShaders :man:preAllDebugAndroidTestBuild UP-TO-DATE :man:preAllDebugUnitTestBuild :jsbridge:compileAllDebugShaders UP-TO-DATE :man:preAllDebugUnitTestBuild UP-TO-DATE :app:preProductDebugAndroidTestBuild :jsbridge:generateAllDebugAssets UP-TO-DATE :man:extractProguardFiles :app:preTtDebugAndroidTestBuild :jsbridge:mergeAllDebugAssets :app:prepareComAndroidSupportMultidex101Library :jsbridge:mergeAllDebugAssets UP-TO-DATE :app:prepareComAndroidSupportPercent2531Library :jsbridge:mergeAllDebugProguardFiles UP-TO-DATE :jsbridge:packageAllDebugRenderscript UP-TO-DATE :jsbridge:compileAllDebugRenderscript UP-TO-DATE :jsbridge:generateAllDebugResValues UP-TO-DATE :jsbridge:generateAllDebugResources UP-TO-DATE :jsbridge:packageAllDebugResources UP-TO-DATE :jsbridge:processAllDebugManifest UP-TO-DATE :jsbridge:generateAllDebugBuildConfig UP-TO-DATE :jsbridge:processAllDebugResources UP-TO-DATE :jsbridge:generateAllDebugSources UP-TO-DATE :jsbridge:incrementalAllDebugJavaCompilationSafeguard :app:prepareComAndroidSupportRecyclerviewV72531Library :app:prepareComAndroidSupportSupportCompat2531Library :app:prepareComAndroidSupportSupportCoreUi2531Library :app:prepareComAndroidSupportSupportCoreUtils2531Library :man:preAllReleaseBuild :man:preAllReleaseUnitTestBuild :app:prepareComAndroidSupportSupportFragment2531Library :man:preAllReleaseUnitTestBuild UP-TO-DATE :man:prepareComAndroidSupportAnimatedVectorDrawable2531Library :app:prepareComAndroidSupportSupportMediaCompat2531Library :app:prepareComAndroidSupportSupportV42531Library :man:prepareComAndroidSupportAppcompatV72531Library :man:prepareComAndroidSupportDesign2531Library :app:prepareComAndroidSupportSupportVectorDrawable2531Library :man:prepareComAndroidSupportRecyclerviewV72531Library :app:prepareComAndroidSupportTransition2531Library :man:prepareComAndroidSupportSupportCompat2531Library :app:prepareComApkfunsLogutilsLibrary151Library :man:prepareComAndroidSupportSupportCoreUi2531Library :jsbridge:javaPreCompileAllDebug :jsbridge:compileAllDebugJavaWithJavac :man:prepareComAndroidSupportSupportCoreUtils2531Library :app:prepareComBinaryforkSpanny104Library :app:prepareComBirbitAndroidPriorityJobqueue201Library :man:prepareComAndroidSupportSupportFragment2531Library :app:prepareComBlankjUtilcode190Library :app:prepareComBugtagsLibraryBugtagsLib231Library :jsbridge:compileAllDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.). :app:prepareComGithubChrisbanesPhotoviewLibrary124Library :man:prepareComAndroidSupportSupportMediaCompat2531Library :app:prepareComGithubCymChadBaseRecyclerViewAdapterHelper2928Library :man:prepareComAndroidSupportSupportV42531Library :app:prepareComGithubDouglasjuniorAndroidSimpleTooltip020Library :man:prepareComAndroidSupportSupportVectorDrawable2531Library :app:prepareComGithubLuckSiegePictureSelectorLightV207Library :man:prepareComAndroidSupportTransition2531Library :app:prepareComGithubYatatsuAutobundle410Library :man:prepareComApkfunsLogutilsLibrary151Library :app:prepareComGithubYatatsuAutobundleCommon410Library :app:prepareComGoogleAndroidFlexbox030Library :man:prepareComBlankjUtilcode190Library :man:prepareComBugtagsLibraryBugtagsLib231Library :app:prepareComJakewhartonButterknife881Library :man:prepareComGithubYatatsuAutobundle410Library :app:prepareComJakewhartonRxbinding2Rxbinding200Library :man:prepareComGithubYatatsuAutobundleCommon410Library :app:prepareComJakewhartonTimberTimber451Library :man:prepareComJakewhartonButterknife881Library :app:prepareComMakeramenRoundedimageview230Library :man:prepareComJakewhartonTimberTimber451Library :app:prepareComSquareupLeakcanaryLeakcanaryAndroid151Library :man:prepareComSquareupLeakcanaryLeakcanaryAndroid151Library :app:prepareComTbruyelleRxpermissions2Rxpermissions094Library :app:prepareComTheartofdevEdmodoAndroidImageCropper246Library :man:prepareComTbruyelleRxpermissions2Rxpermissions094Library :man:prepareComTrelloRxlifecycle2RxlifecycleAndroid210Library :app:prepareComTrelloRxlifecycle2RxlifecycleAndroid210Library :man:prepareComTrelloRxlifecycle2RxlifecycleComponents210Library :man:prepareIoReactivexRxjava2Rxandroid201Library :app:prepareComTrelloRxlifecycle2RxlifecycleComponents210Library :app:prepareComTubbSmrvSwipemenuRecyclerview540Library :man:prepareMeYokeywordFragmentationCore116Library :man:prepareMeYokeywordFragmentationSwipeback116Library :app:prepareIoObjectboxObjectboxAndroid101Library :man:prepareAllDebugDependencies :app:prepareIoReactivexRxjava2Rxandroid201Library :man:compileAllDebugAidl :app:prepareMeGrantlandAutofittextview021Library :app:prepareMeYokeywordFragmentationCore116Library :app:prepareMeYokeywordFragmentationSwipeback116Library :man:compileAllDebugAidl UP-TO-DATE :app:prepareTechMichaelxAuthcodeAuthcode101Library :man:compileAllDebugNdk :app:generateTtDebugBuildConfig :man:compileAllDebugNdk UP-TO-DATE :man:compileLint UP-TO-DATE :man:copyAllDebugLint UP-TO-DATE :man:compileAllDebugRenderscript :app:generateTtDebugBuildConfig UP-TO-DATE :man:compileAllDebugRenderscript UP-TO-DATE :app:generateTtDebugResValues :man:generateAllDebugBuildConfig :app:generateTtDebugResValues UP-TO-DATE :app:mockableAndroidJar :man:generateAllDebugBuildConfig UP-TO-DATE :app:mockableAndroidJar UP-TO-DATE :man:generateAllDebugResValues :app:preTtDebugUnitTestBuild :man:generateAllDebugResValues UP-TO-DATE :app:prepareTtDebugUnitTestDependencies :man:generateAllDebugResources UP-TO-DATE :man:mergeAllDebugResources :app:prepareComAndroidSupportMultidexInstrumentation101Library :app:prepareComAndroidSupportTestEspressoEspressoCore222Library :app:prepareComAndroidSupportTestEspressoEspressoIdlingResource222Library :app:prepareComAndroidSupportTestExposedInstrumentationApiPublish05Library :app:prepareComAndroidSupportTestRules05Library :app:prepareComAndroidSupportTestRunner05Library :app:prepareTtDebugAndroidTestDependencies :app:compileTtDebugAndroidTestAidl UP-TO-DATE :app:processTtDebugAndroidTestManifest UP-TO-DATE :app:compileTtDebugAndroidTestRenderscript :app:generateTtDebugAndroidTestBuildConfig :app:generateTtDebugAndroidTestResValues :app:generateTtDebugAndroidTestResources :app:mergeTtDebugAndroidTestResources :app:processTtDebugAndroidTestResources :man:mergeAllDebugResources UP-TO-DATE :man:processAllDebugManifest UP-TO-DATE :man:processAllDebugResources :app:generateTtDebugAndroidTestSources

注: /Users/hujie/MEGA/SVN/xgs/android/shenluntiku/shenluntiku/jsbridge/src/main/java/com/github/lzyzsd/jsbridge/BridgeWebViewClient.java使用或覆盖了已过时的 API。 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。

:jsbridge:processAllDebugJavaRes UP-TO-DATE :jsbridge:transformResourcesWithMergeJavaResForAllDebug :jsbridge:transformClassesAndResourcesWithSyncLibJarsForAllDebug :jsbridge:mergeAllDebugJniLibFolders :jsbridge:transformNativeLibsWithMergeJniLibsForAllDebug :jsbridge:transformNativeLibsWithStripDebugSymbolForAllDebug :jsbridge:transformNativeLibsWithSyncJniLibsForAllDebug :jsbridge:bundleAllDebug UP-TO-DATE :jsbridge:preAllDebugAndroidTestBuild UP-TO-DATE :jsbridge:prepareAllDebugAndroidTestDependencies :jsbridge:compileAllDebugAndroidTestAidl UP-TO-DATE :jsbridge:processAllDebugAndroidTestManifest UP-TO-DATE :jsbridge:compileAllDebugAndroidTestRenderscript UP-TO-DATE :jsbridge:generateAllDebugAndroidTestBuildConfig UP-TO-DATE :jsbridge:generateAllDebugAndroidTestResValues UP-TO-DATE :jsbridge:generateAllDebugAndroidTestResources UP-TO-DATE :jsbridge:mergeAllDebugAndroidTestResources UP-TO-DATE :jsbridge:processAllDebugAndroidTestResources UP-TO-DATE :jsbridge:generateAllDebugAndroidTestSources UP-TO-DATE :jsbridge:preAllDebugUnitTestBuild UP-TO-DATE :jsbridge:prepareAllDebugUnitTestDependencies :jsbridge:mockableAndroidJar UP-TO-DATE :man:processAllDebugResources FAILED

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 2.882 secs

JakeWharton commented 7 years ago

Can you paste the output of ./gradlew :app:dependencies? (or at least the annotation processor configuration of it?)

JakeWharton commented 7 years ago

From that message it looks like you have a too-old or too-new version of JavaParser on the classpath. Or maybe none at all.