Project 'bin' not found in root project 'MyApp'

I’m using Microsoft Appcenter for my Android build. Locally the build works fine, but in Appcenter, I get the following error. I understand that Appcenter will run a build for any build.gradle it finds so I was thinking perhaps I need to remove the /bin folder in my android app, but it looks like it doesn’t have any influence on the build error.

Any thoughts on this?