Android - Inner element must either be a resource reference or empty

前端 未结 8 1393
天涯浪人
天涯浪人 2020-11-29 04:00

Error Details

AGPBI: {\"kind\":\"error\",\"text\":\"error: \\u003citem\\u003e inner element must either be a resource reference or empty         


        
8条回答
  •  天涯浪人
    2020-11-29 04:21

    I had below error

    error:  inner element must either be a resource reference or empty.
    

    In my case I created new test project and deleted the toolbar and fab from activity_main.xml file but these were also in ids.xml file. After deleting both ids from ids.xml file I was able to run. In your ids.xml file you may have lots of ID's but as I created a new project So, It has No IDs.

    In above screenshot you can see the exact file location.

提交回复
热议问题