Another possible cause of this is having a second .uproject file in a directory. We downloaded a package from the store that had its own project file for demo purposes, but this really confused UBT and made our app give this “Unable to determine module type” error. Deleting the second .uproject file fixed it for us.