Issue: You face error such as

    FAILURE: Build failed with an exception.

    License for package SDK Patch Applier v4 not accepted

    License for package Google Repository not accepted

Cause: This is unrelated with accepting Android licenses, but related with needing additional components in the Android SDK Manager.

Solution: Contact our support with your agent name so we can upgrade the necessary Android SDK components for you.

Reference: Ionic error with license - Stackoverflow