Android not build

Vladimir's Avatar


11 Aug, 2023 07:38 AM

Hello, since yesterday the Android application has stopped being assembled. Error: License for package SDK Patch Applicer v4 not accepted.

  1. 1 Posted by Vladimir on 11 Aug, 2023 07:39 AM

    Vladimir's Avatar

    echo "-----------------------------------------------Install android sdk"

    brew install --cask android-commandlinetools
    export ANDROID_SDK_ROOT="/usr/local/share/android-commandlinetools/"

    echo "------------------------------------- Setup sdk"
    (echo y) | Android\Sdk\tools\bin\sdkmanager --update
    (echo y) | sdkmanager --licenses
    (echo y) | sdkmanager "build-tools;31.0.0"
    (echo y) | sdkmanager "build-tools;30.0.2"
    (echo y) | sdkmanager "build-tools;29.0.2"
    (echo y) | sdkmanager "build-tools;28.0.3"
    (echo y) | sdkmanager "platforms;android-29"
    (echo y) | sdkmanager "platforms;android-30"
    (echo y) | sdkmanager "platforms;android-31"
    (echo y) | sdkmanager "platforms;android-33"

  2. 2 Posted by Vladimir on 11 Aug, 2023 07:41 AM

    Vladimir's Avatar

    Error: LinkageError occurred while loading main class
    java.lang.UnsupportedClassVersionError: com/android/sdklib/tool/sdkmanager/SdkManagerCli has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 60.0

  3. 3 Posted by Vladimir on 11 Aug, 2023 11:02 AM

    Vladimir's Avatar

    As I understand it, java 17 is needed, but it is not in the preinstalled

  4. Support Staff 4 Posted by Feodor Fitsner on 11 Aug, 2023 04:52 PM

    Feodor Fitsner's Avatar

    What macOS image are you running this on? You can install Java 17 with brew, but AFAIK Android SDK Manager does not require the latest Java. Quite the opposite it runs fine on Java 8.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac


13 Sep, 2023 06:05 AM
10 Sep, 2023 03:43 PM
09 Sep, 2023 05:53 PM
08 Sep, 2023 07:10 PM
31 Aug, 2023 07:59 PM
13 Aug, 2023 04:55 AM