Gradle 踩过的坑

com.android.application 9.1.0 与 com.google.dagger.hilt.android 2.57.1 不兼容

在gradle sync时报Failed to apply plugin 'com.google.dagger.hilt.android'

shell 复制代码
An exception occurred applying plugin request [id: 'com.google.dagger.hilt.android']
> Failed to apply plugin 'com.google.dagger.hilt.android'.
   > Android BaseExtension not found.

解决方法:

将com.google.dagger.hilt.android升级到2.59,com.google.devtools.ksp升级到2.3.4

kotlin 复制代码
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {

    id("com.google.devtools.ksp") version "2.3.4" apply false
    id("com.google.dagger.hilt.android") version "2.57.1" apply false
}
相关推荐
土星碎冰机5 小时前
ai自学笔记(3.安卓篇,制作app
android·笔记·ai
随遇丿而安5 小时前
专题:Glide / Coil / Fresco,不是三种写法,而是三套图片加载思路
android
只可远观6 小时前
Android 自动埋点(页面打开 / 关闭 + 点击事件)完整方案
android·kotlin
私人珍藏库7 小时前
【Android】小小最新AI--千变万化扮演任何角色--沉浸式互动
android·app·工具·软件·多功能
zh_xuan7 小时前
Android MVI架构
android·mvi
测试开发-学习笔记8 小时前
Airtest+Poco快速上手
android·其他
李斯维8 小时前
Android Jetpack 简介:由来和演进
android·android studio·android jetpack
阿巴斯甜8 小时前
ARouter 的使用:
android
沐言人生8 小时前
ReactNative 源码分析9——Native View初始化
android·react native