Moh*_*ari 5 android android-studio android-gradle-plugin android-studio-chipmunk
在导航组件生成的所有“方向”类中将 android studio 更新为花栗鼠版本后,我收到“未解析的参考:R”构建时间错误。R 类未在该类中导入,尽管我可以手动导入它,但类将重新生成,而无需在下一个构建中导入
android gradle 插件版本 = 7.2.0
gradle 包装版本 = 7.3.3-all
有什么解决办法吗?
遇到了同样的问题,我可以通过更新模块 build.grade 中的此依赖项来修复它
buildscript {
dependencies {
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.5.0-rc01")
}
}
Run Code Online (Sandbox Code Playgroud)
我还确保我的 Android Gradle 插件版本和 Gradle 版本都设置为最新版本。(在项目结构->项目中)
归档时间: |
|
查看次数: |
746 次 |
最近记录: |