This is the right solution, thank you so much. Disabling Android 31.0.0 and enabling 28.0.3 solved the error.