Android studio 問題總結 (持續更新)

1.Android Studio 導入目錄時R文件標紅,但是能正常運行
解決方案:

  1. 搜索進入bin目錄找到idea.properties文件,修改 idea.max.intellisense.filesize ,使其變大就:比如目前是2500,那就改成5000,重啓Android studio
  2. 上面方案若不成功,則更新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'
    }
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章