1.Android Studio 导入目录时R文件标红,但是能正常运行
解决方案:
- 搜索进入bin目录找到idea.properties文件,修改 idea.max.intellisense.filesize ,使其变大就:比如目前是2500,那就改成5000,重启Android studio
- 上面方案若不成功,则更新Android Studio为最新版本~ 问题解决
2.错误提示: More than one file was found with OS independent path 'META-INF/androidx.localbroadcastmanager_localbroadcastmanager.version’
在 build.gradle (Module app) 的 android {} 目录下添加:
packagingOptions {
exclude 'META-INF/androidx.legacy_legacy-support-core-utils.version'
exclude 'META-INF/androidx.loader_loader.version'
}