Error retrieving parent for item

I get multiple “Error retrieving parent for item” errors while trying to compile my app. There is one theme about this error already – link. Proposed solution does not seem to work. Changing API version to 21 results in crash during application startup. Here’s stackoverflow thread on this type of crash – link – which advises to build app using 19th API, and using 19th API returns me to the first errror.

I know that Cocos2d-x 3.10 ships GPS library now which solves this error, but I need to implement some Google Cast based functionality, so I’m forced to use libs provided by sdk. And those libs cause “Error retrieving parent for item” issue.

Thanks in advance for any help.