Just installed Android Studio and was trying to add an AVD. When I reached the "Select a system image" there were some to choose from, and I picked one and it started installing. However, the installation failed because my harddrive ran out of space. I cleaned up my harddrive and tried to add an AVD again. However, this time, when I reach the "Select a system image", there are no system images to choose from. Instead I see the message:
"No System image available. Are you connected to the internet?"
And yes, my internet is connected, and restarting Android studio did not help. How can I troubleshoot this issue?
Its to easy to do: Go to SDK Manager. Check the Show Package Details Checkbox. Check the System Image checkboxes based on your CPU architecture (x86 or x64) and your needs ( Google play)
In case you get an error like "Intel virtualization technology (vt,vt-x) is not enabled". Go to your BIOS settings and enable Hardware Virtualization. 3) Restart Android Studio and then try to start the AVD again.
Start the SDK manager (Tools -> Android -> SDK Manager) and install some images.
Checking the "Show Package Details" checkbox allows for finer selections of what you need.
Its to easy to do:
4.Click on apply and Let it be downloaded
Done!
It worked for me hope will work for yours.
Give the answer on this site for the first time, so perhaps I can`t express clearly.
Once I happened this issue, and I run the sdkmanager application in android-sdk-path
cd ~/Library/Android/sdk/tools/bin/sdkmanager;
and I got this output.
Warning: java.net.UnknownHostException: dl.google.com
Warning: Failed to connect to host: https://dl.google.com/android/repository/addons_list-3.xml
Warning: Failed to connect to host: https://dl.google.com/android/repository/addons_list-2.xml
Warning: Failed to connect to host: https://dl.google.com/android/repository/addons_list-1.xml
Warning: Failed to download any source lists!
the reason I got this is that my network can't connect the dl-google website. So I search the valid IP address, and I got this '203.208.41.36'.enter image description here. I changed the hosts file and save it.
203.208.41.36 dl.google.com
Then I run the avd manager again, and it worked. enter image description here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With