It was the MobileIAP plugin that was causing the problem.
It exported the APK but it looks like I have to sign it manually. It would be great if we could do all of the signing in C3 and then export it then upload it.
Is there an easy way to sign the APK generated in C3 in Android studio instead of going to the terminal?