Android Studio Error Java.lang.illegalargumentexception: Resource Name Cannot Be Empty
Solution 1:
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.
Solution 2:
Solution 3:
I am able to fix it by Uninstall Android Studio 3.0 and installed Android Studio 3.1. Its working fine.
Solution 4:
Maybe you can try it like this: go to setting in AndroidStudio and change values like in this image.
Then click ok.
Post a Comment for "Android Studio Error Java.lang.illegalargumentexception: Resource Name Cannot Be Empty"