Android studio error java.lang.IllegalArgumentException: Resource name cannot be empty

前端 未结 4 1981
梦毁少年i
梦毁少年i 2020-12-19 15:27

I am attempting to reopen an older Android Studio project in version 3.0.

It compiles and launches just fine, but if I try to edit a layout in the layout designer, i

相关标签:
4条回答
  • 2020-12-19 15:28

    Go to File>Invalidate Caches / Restart.

    It might help! Thank you!

    0 讨论(0)
  • 2020-12-19 15:30

    Maybe you can try it like this: go to setting in AndroidStudio and change values like in this image.

    Then click ok.

    0 讨论(0)
  • 2020-12-19 15:36

    I am able to fix it by Uninstall Android Studio 3.0 and installed Android Studio 3.1. Its working fine.

    0 讨论(0)
  • 2020-12-19 15:54

    This error can occur when you update to Android Studio 3.0. It doesn't affect your ability to build a project, but the error does not allow you to visually see your xml layout files. You will also get the error when committing files to GIT, but you can still commit and push.

    What I found in one of my projects is that a file was added to the "menu" folder automatically upon Android Studio upgrade, and the file had no name. It was named simply ".xml". All you need to do is delete the file and clean your project, allowing a new build of the project. That should take care of the issue.

    0 讨论(0)
提交回复
热议问题