I followed Naitors advice and it worked for me I was having the same error try and see if that helps:

Gonna pin this here to anyone that's having trouble building an Android app, this should work...