question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FAILURE: Build failed with an exception.

See original GitHub issue

Hi folks. I’m kind of a Newbie to Android. I am following Android Kotlin Fundamentals 01.4: Learn to help yourself. I tried to “In Android Studio, open the android-sunflower-master project.”

It wasn’t totally clear to me exactly how to go about that, but here’s what I did using Android Studio 3.6.1…

  1. open Android Studio Welcome
  2. click “open file or project”
  3. nav to C:\1d\AndroidApps\AndroidKotlinFundamentals\4 Task Learn from sample code\sunflower-master\build.gradle
  4. click OK RESULT: … gradle sync finished in 1m 9s
  5. clicked run on Pixel 2 XL API 24 - iPhone7Plus RESULT
> Task :app:kaptDebugKotlin FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:kaptDebugKotlin'.
> Internal compiler error. See log for more details

* 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 56s
19 actionable tasks: 1 executed, 18 up-to-date

Please let me know if there’s anything more I can do to help. Thanks. Love and peace, Joe Dorocak aka Joe Codeswell

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
art-tykhcommented, Apr 28, 2020

@tiembo I am afraid this is not the issue with codelab instructions. I am still getting the same error. Android Studio 3.6.3, Kotlin: 1.3.41, Gradle 5.6.4

1reaction
tiembocommented, Apr 24, 2020

Hi there - thank you for the reports. The codelab might be out of date - here’s how to can load the Sunflower example from Android Studio (tested using Studio 3.6.3):

  • In the welcome screen, click on “Import an Android code sample”
  • In the search box, type in “sunflower”
  • Select any one of the Sunflower entries (they refer to the same sample) and click Next
  • Select a location to store the sample code, and click Finish.

Closing this issue on the Sunflower project as this issue mostly pertains to the codelab instructions. For issues with the Android Fundamentals codelab, please also file an issue here. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

FAILURE: Gradle Build failed with an exception - Stack Overflow
In Android Studio, go to Tools->SDK manager and see that your android version is downloaded or not (for whatever emulator you have chosen...
Read more >
Build failed with an exception. * What went wrong: Could not ...
Facing this issue while running on android FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies ......
Read more >
Help FAILURE: Build failed with an exception - Gradle Forums
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with...
Read more >
FAILURE: Build failed with an exception - Dictionary App Builder
FAILURE: Build failed with an exception · What went wrong: org.slf4j. · Try: Run with --info or --debug option to get more log...
Read more >
FAILURE: Build failed with an exception. - Google Groups
I am building a movie streaming app and when I try to run the app, I get this error. Can anyone help? Compiler...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found