You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我们的Android Studio 的版本迎来了Bumblebee
先不管feature,反正颜值高就是了
然后我们的原有项目都prompt了升级提示
Hilt插件报错
结果一下就报错了
* Exception is:
java.lang.NoClassDefFoundError: com/android/build/api/extension/AndroidComponentsExtension
at dagger.hilt.android.plugin.HiltGradlePlugin.configureTransformASM(HiltGradlePlugin.kt:237)
at dagger.hilt.android.plugin.HiltGradlePlugin.configureHilt(HiltGradlePlugin.kt:79)
at dagger.hilt.android.plugin.HiltGradlePlugin.access$configureHilt(HiltGradlePlugin.kt:50)
at dagger.hilt.android.plugin.HiltGradlePlugin$apply$1.execute(HiltGradlePlugin.kt:57)
at dagger.hilt.android.plugin.HiltGradlePlugin$apply$1.execute(HiltGradlePlugin.kt:50)
at org.gradle.configuration.internal.DefaultUserCodeApplicationContext$CurrentApplication$1.execute(DefaultUserCodeApplicationContext.java:123)
at org.gradle.api.internal.DefaultCollectionCallbackActionDecorator$BuildOperationEmittingAction$1.run(DefaultCollectionCallbackActionDecorator.java:110)
Caused by: java.lang.ClassNotFoundException: com.android.build.api.extension.AndroidComponentsExtension
... 193 more
Your project has set android.useAndroidX=true, but configuration debugRuntimeClasspath still contains legacy support libraries, which may cause runtime issues.
我们的Android Studio 的版本迎来了Bumblebee
先不管feature,反正颜值高就是了
然后我们的原有项目都prompt了升级提示
Hilt插件报错
结果一下就报错了
看报错信息云里雾里,不过基本能定位是Hilt这个插件执行不了。
解决方案
看StackOverflow看不出啥端倪,看mvnrepository这Hilt的组件已经升到2.41了,成功了。看来组件库的定期升级是需要的
警告信息
Your project has set
android.useAndroidX=true
, but configurationdebugRuntimeClasspath
still contains legacy support libraries, which may cause runtime issues.gradle.properties里面加上android.enableJetifier=true
The text was updated successfully, but these errors were encountered: