IntelliJ IDEA - Can't build anything, always get “package R does not exist”

前端 未结 13 558
轻奢々
轻奢々 2020-12-16 09:32

I\'m trying to use IntelliJ IDEA to work on an Android app with a colleague that swears by it, but I\'m unable to build any of the Android projects he sends me because whene

13条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-16 10:09

    I've refactored the packagename and intellij didn't update it in the manifest.

    So if you've refactored the packagename then go to the manifest and update the attribute "package" in the root of the xml file save and rebuild it. If any errors occur then it's probably a wrong packagename in the import (at least this was my case) so just fix them

    hope this helps anyone

提交回复
热议问题