Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Failed to update class list on Android Device #191

Open
shipsywor opened this issue Jun 9, 2021 · 4 comments
Open

Failed to update class list on Android Device #191

shipsywor opened this issue Jun 9, 2021 · 4 comments

Comments

@shipsywor
Copy link

Cloned repo. Added CI token. Built the project in Android Studio. Ran it on Emulator and Device as well, the snackbar displays "Failed to update class list on Android Device"

Why is it not working as intended even after a successful build?

@JakeWharton
Copy link
Owner

Google broke the upstream source of data a year ago or so. I just haven't had the time or desire to try and figure out how to fix it.

@shipsywor
Copy link
Author

Okay! Looking forward to seeing if you get time in the future or some contributor. Thanks!

@wuairc
Copy link

wuairc commented Nov 22, 2022

Class list can be obtained by scanning android.jar(should be easier) or android-stubs-src.jar in the Android SDK directory (~/Library/Android/sdk/platforms/android-33/) , these two files can be downloaded on the fly if the url can be obtained and we know the latest api level. We can also just embed the class list in the project.

@wuairc
Copy link

wuairc commented Nov 22, 2022

  1. Android SDK file list can be found in https://dl.google.com/android/repository/repository2-2.xml, latest one is platform-33_r02.zip
  2. download the zip from https://dl.google.com/android/repository/platform-33_r02.zip (67.3MB in size)
  3. extract android.jar from downloaded platform-33_r02.zip we can get the class list

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants