Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix command line tools setup #153

Merged
merged 2 commits into from
Aug 24, 2023
Merged

Fix command line tools setup #153

merged 2 commits into from
Aug 24, 2023

Conversation

rtibbles
Copy link
Member

Fixes command line tools setup.
Tweaks README.md.

@rtibbles rtibbles requested a review from jredrejo August 22, 2023 21:01
Copy link
Member

@jredrejo jredrejo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This version is not compatible with android 8 either. It requires Android 11:

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/prefs/AndroidLocationsProvider has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
52 = Java 8
53 = Java 9
54 = Java 10
55 = Java 11
56 = Java 12
57 = Java 13
58 = Java 14
59 = Java 15
60 = Java 16
61 = Java 17

Could it be you have installed both java 1.8 and 1.11 and are running 1.11 when testing this?

The major version I've found that I've been able to test with java 8 is this one
https://dl.google.com/android/repository/commandlinetools-$(PLATFORM)-9123335_latest.zip
which has this info

───────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: source.properties
───────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ Pkg.Revision=8.0
   2   │ Pkg.Path=cmdline-tools;8.0
   3   │ Pkg.Desc=Android SDK Command-line Tools
───────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

None of the available at https://androidsdkoffline.blogspot.com/p/android-sdk-cmdline-tools-offline.html can run on java 8

@rtibbles rtibbles merged commit ea331b4 into develop Aug 24, 2023
@rtibbles rtibbles deleted the fix_setup branch August 24, 2023 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants