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.

Rework kotlin class detection in AGP3

See original GitHub issue

Add the kotlin output directory to the classpath Instead of copying kotlin classes to intermediates folder. Was able to do it in Spek’s AS plugin by using an API provided by AS3 (see https://github.com/raniejade/spek-idea-plugin/blob/master/plugin-studio3.0/src/main/kotlin/org/jetbrains/spek/studio/SpekAndroidParameterPatcher.kt). Probably the same API is available in AGP3. Some users are reporting issues caused by the copy during dexing, removing the copy tasks fixes the issue.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
raniejadecommented, Nov 11, 2017

Here’s one: https://github.com/spekframework/spek/issues/256#issuecomment-343136918. I don’t think it’s an IDE-specific patch, the JavaArtifact#additionalSourcesDir is probably used somehow in AGP3.

0reactions
mannodermauscommented, Nov 20, 2017

Released in 1.0.20.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data classes
To ensure consistency and meaningful behavior of the generated code, data classes have to fulfill the following requirements: The primary ...
Read more >
kezong/fat-aar-android: A gradle plugin that merge ...
A gradle plugin that merge dependencies into the final aar file works with AGP 3.+ - GitHub - kezong/fat-aar-android: A gradle plugin that...
Read more >
How to detect values changed in Data class Kotlin?
In such situation, how to detect when Age or name is changed? data class Person(var Name: String, var Age: Int).
Read more >
Deep Dive Into Kotlin Data Classes for Android
In this Kotlin data classes tutorial, you'll learn when and how to use data ... You need to update the class to use...
Read more >
Kotlin style guide
All source files must be encoded as UTF-8. Naming. If a source file contains only a single top-level class, the file name should...
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