Geocoder Sources for Android API 26 platform not found

I recently opened my application recently after a month break from coding, to find that it is not working properly. I have code to map tokens from a FireBase database to a card that is currently down. Going to Geocoder.class, he says that there are no sources for android api 26, and clicking on the download does nothing. I tried to "reboot" my api source through the wizard in the SDK manager to no avail. Not sure what to do.

+4
source share
1 answer

It’s very difficult not to have API 26 sources, but they should appear shortly after the release of Android O next week. At the moment, I have found the following solution on Reddit , which allows you to use sources for API 25. I think you need to run the following command.

cd SDK/sources
cp -R android-25 android-26
cd android-26
vi/emacs/nano package.xml
# Find/replace 25 with 26
vi/emacs/nano source.properties
# Find/replace 25 with 26

Then restart Android Studio. I have not tried it myself, but I hope this helps you.

+9
source

Source: https://habr.com/ru/post/1683923/


All Articles