Android not build
Hello, since yesterday the Android application has stopped being assembled. Error: License for package SDK Patch Applicer v4 not accepted.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | 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
1 Posted by Vladimir on 11 Aug, 2023 07:39 AM
echo "-----------------------------------------------Install android sdk"
brew install --cask android-commandlinetools
export ANDROID_SDK_ROOT="/usr/local/share/android-commandlinetools/"
ls ANDROID_SDK_ROOT
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 Posted by Vladimir on 11 Aug, 2023 07:41 AM
Error: LinkageError occurred while loading main class com.android.sdklib.tool.sdkmanager.SdkManagerCli
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 Posted by Vladimir on 11 Aug, 2023 11:02 AM
As I understand it, java 17 is needed, but it is not in the preinstalled
Support Staff 4 Posted by Feodor Fitsner on 11 Aug, 2023 04:52 PM
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.
Feodor Fitsner closed this discussion on 11 Oct, 2023 09:03 PM.