Android Studio: jump to definition (cmd+click) from android code to kotlin/native code goes to decompiled .class instead of .kt
Asked Answered
T

0

4

I have a project for android that uses an own library with kotlin/native to share it with iOS app. I started it with this tutorial.

It's working perfectly, already on production, so I'm very happy with it but I have one problem that I'm not able to solve: In Android Studio, when I cmd+click a kotlin/native function from the android project class (also kotlin) it goes to decompiled .class file instead of the .kt file. This make it much slower to debug or just implement new functions.

I tried to add enableFeaturePreview("GRADLE_METADATA") to settings.gradle but it doesn't help.

I'm pretty sure that I'm missing some configuration property but I'm not able to find it out.

Trexler answered 17/3, 2020 at 19:56 Comment(3)
duplicate of #61231281Griffiths
@Patrick my question has been made before, so yours is the duplicated ;) but thanks, I will check your question in case it has any good feedback.Trexler
yes, we can close one once it has answer. Wanted to link to the bug report.Griffiths

© 2022 - 2024 — McMap. All rights reserved.