-
-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoSuchFieldError: No field Companion of type #480
Comments
什么情况下出现此问题?打包后?把module结构,及RxHttp依赖配置截图发出 |
在Java还是kotlin环境中调用?依赖的kotlin版本又是多少 |
把kotlin版本改为 |
好的我先试一下再过来回复 |
你好,还是不行加你微信了 |
在已使用ksp依赖 buildscript {
dependencies {
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.48.1'
}
}
plugins {
id("com.google.devtools.ksp") version "1.9.10-1.0.13" apply false
}
2、在module的build.gradle文件中添加以下代码 plugins {
id 'dagger.hilt.android.plugin'
}
dependencies {
implementation "com.google.dagger:hilt-android:2.48.1"
ksp "com.google.dagger:hilt-android-compiler:2.48.1" //kapt或ksp一样有问题
} 3、使用 @HiltAndroidApp
public class AppHolder extends Application {
//省略部分代码
} 项目同步成功后,rebuild一下项目,此时就会出现两个RxHttp类 |
注:使用kapt依赖 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
环境 使用ksp编译 版本3.2.3 ksp版本 1.9.20-1.0.14 无多module依赖 在compose 目前不知道具体问题在什么地方
The text was updated successfully, but these errors were encountered: