I have a vague memory that I had a similar problem a long time ago... I think the problem was that some entries were missing in the res/values/styles.xml file, or some other similar configuration file.
In other words, the system was looking for some value in an XML file, or in a configuration file, get an empty string, try to convert the empty string to integer, and cause that problem.
I don't know if you problem is the same, but it looks similar.
I suggest that you try from the beginning to create a new projects with a more narrow range of versions (i.e. don't use a very old earliest compatible version) or with different settings, and hopefully one of those settings will work. I think this is I solved my similar problem when I had it.