如何解决适用于 Android Studio 的插件 - Retrofit 依赖问题
我正在为 Intellij 2020.1.4 中的 Android studio 4.1.1 创建自定义插件。问题是,当从 Intellij 运行它时,它工作正常,但在 AS 中将其作为 jar 文件导入时出现错误:
2021-01-28 19:53:41,726 [6064853] ERROR - llij.ide.plugins.PluginManager - retrofit2/Retrofit$Builder
java.lang.NoClassDefFoundError: retrofit2/Retrofit$Builder
at actions.GenerateKeyFrame.getKey(GenerateKeyFrame.kt:223)
at actions.GenerateKeyFrame.access$getKey(GenerateKeyFrame.kt:18)
...
build.gradle 中的依赖
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile 'com.squareup.retrofit2:retrofit:2.9.0'
compile 'com.squareup.retrofit2:converter-gson:2.9.0'
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。