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'
}