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

只谈情不闲聊 提交于 2020-04-16 02:59:07

问题


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.

来源:https://stackoverflow.com/questions/60729337/android-studio-jump-to-definition-cmdclick-from-android-code-to-kotlin-nativ

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!