Reputation: 87
When trying to build my Android app, I get an error that says "Cause: not a valid name: class"
. It doesn't give me any other information at all.
Stacktrace: https://pastebin.com/4guRqdLu
Upvotes: 2
Views: 1742
Reputation: 121
this error happened to me, and I solved it in an easy way.
In one XML file, I set an id in the Kiril alphabet like кр
after changing this ID, this problem was solved. So check your XML file and ids and ensure every ID and name is in the Latin alphabet.
Upvotes: 0
Reputation: 41
I had the same problem with a different word than 'class' mine was '1kg'. The problem was that I used '_1kg' as an id in XML so make sure you didn't use 'class' in your XML at all. (as id or even for extract string resource)
Upvotes: 3