ZacSweers / CatchUp

An app for catching up on things.
Apache License 2.0
1.98k stars 201 forks source link

A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution #193

Closed jaredsburrows closed 5 years ago

jaredsburrows commented 5 years ago

Repro:

git clone https://github.com/ZacSweers/CatchUp cd CatchUp gradlew assembleDebug

Error:

> Task :app:kaptDebugKotlin
warning: Current JDK version 1.8.0_181-b13 has a bug (https://bugs.openjdk.java.net/browse/JDK-8007720) that prevents(source unavailable)
(source unavailable)
(source unavailable)
/Users/<>/repo/CatchUp/app/build/generated/source/kaptKotlin/debug/io/sweers/catchup/data/smmry/model/SuccessJsonAdapter.kt:0: error: cannot find symbol

  symbol:   class Success
  location: class SuccessJsonAdapter(source unavailable)
(source unavailable)
(source unavailable)
/Users/<>/repo/CatchUp/app/build/generated/source/kaptKotlin/debug/io/sweers/catchup/data/smmry/model/SuccessJsonAdapter.kt:0: error: cannot find symbol

  symbol:   class Success
  location: class SuccessJsonAdapter[WARN] Incremental annotation processing requested, but support is disabled because the following processors are not incremental: com.squareup.moshi.kotlin.codegen.JsonClassCodegenProcessor (NON_INCREMENTAL), javaslang.match.PatternsProcessor (NON_INCREMENTAL).

> Task :app:kaptDebugKotlin FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:kaptDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
   > java.lang.reflect.InvocationTargetException (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 45s
ZacSweers commented 5 years ago

I'm not able to reproduce this. Clean and rebuild?

jaredsburrows commented 5 years ago

Running gradlew clean and gradlew assembleDebug now passes.

I still have this warning:

> Task :app:kaptDebugKotlin
warning: Current JDK version 1.8.0_181-b13 has a bug (https://bugs.openjdk.java.net/browse/JDK-8007720) that prevents[WARN] Incremental annotation processing requested, but support is disabled because the following processors are not incremental: com.squareup.moshi.kotlin.codegen.JsonClassCodegenProcessor (NON_INCREMENTAL), javaslang.match.PatternsProcessor (NON_INCREMENTAL).
ZacSweers commented 5 years ago

Both of those are outside the scope of catchup. The Java 8 warning is because you’re probably using a custom install of Java rather than studio’s embedded JDK. Latter is pending next moshi release

On Sun, Sep 29, 2019 at 7:35 PM Jared Burrows notifications@github.com wrote:

Closed #193 https://github.com/ZacSweers/CatchUp/issues/193.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/ZacSweers/CatchUp/issues/193?email_source=notifications&email_token=AAKMJPTPQCYKYRWRAJHYML3QME3T5A5CNFSM4I3UOFAKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOT46ILBA#event-2671543684, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKMJPVRY5ECB4ZXNS74ZV3QME3T5ANCNFSM4I3UOFAA .

jaredsburrows commented 5 years ago

Yes.

$ java -version
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
phoenixsachin commented 4 years ago

please help me if you solved this error.

AjayTaak commented 4 years ago

What went wrong: Execution failed for task ':app:kaptDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution java.lang.reflect.InvocationTargetException (no error message)

please help me if you solved this error.

@phoenixsachin Hi did you manage to find a solution for this error? I been stuck on the same one all day

ZacSweers commented 4 years ago

Folks please take this somewhere else, as this conversation is not constructive nor helpful to the project.