我一直在尝试在 kotlin 中编写一个库,一旦在 Android Studio 中打开它时将库构建生成为 aar 文件,它并没有向我展示我的类的确切外观以及方法是如何在其中实现的。
// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available
package com.mypackage.dexter
public final class Test private constructor() {
public final fun testMethod(): kotlin.Unit { /* compiled code */ }
}
我在 android studio 中尝试过 Java 反编译器插件,Kotlin 字节代码(如果相同的代码是用 Java 编写的,这也不会以我们得到的相同格式显示)。通过查看代码,我想实现的最终目标是,我想在库中使用调试器并在运行集成了该库的应用程序时评估事物。