Hello everyone, I just installed android studio (t...
# community-support
m
Hello everyone, I just installed android studio (the latest ladybug version a few days ago) and at the end of the installation of SDK (which was automatic) I got these two errors: Intel® HAXM installation failed. To install Intel® HAXM follow the instructions found at: https://github.com/intel/haxm/wiki/Installation-Instructions-on-Windows Running Android Emulator hypervisor driver installer Android Emulator hypervisor driver installation failed. To install Android Emulator hypervisor driver follow the instructions found at: https://github.com/google/android-emulator-hypervisor-driver I followed the instructions and installed both haxm and emulator manually (enabled virtualization on Intel cup, disabled hyper v etc), but now when I run android studio I get this error: FAILURE: Build failed with an exception. Plugin [id: 'com.android.application', version: '8.7.1', apply: false] was not found in any of the following sources: - Gradle Core Plugins (plugin is not in 'org.gradle' namespace) - Included Builds (No included builds contain this plugin) - Plugin Repositories (could not resolve plugin artifact 'com.android.applicationcom.android.application.gradle.plugin8.7.1') Searched in the following repositories: Google MavenRepo Gradle Central Plugin Repository I searched a lot and did everything but it just doesn't get solved! Can anyone help me with this issue?
v
As the artifact that is searched is available in the listed "Google" repository, this most often means that it is some "network" issue on your side. For example some Firewall or AntiVirus disturbing, or that you need some proxy to access the outworld but do not have it configured for Gradle. If you run with
--info
or
--debug
(and additionally with
--refresh-dependencies
so that Gradle does not remember the "not found"), you might get more information on what exactly is happening.
m
Thank you very much for your response; indeed, when I open android studio it does ask me for proxy authentication (user login and password for 127.0.0.1) which I don't know why! However, the fact is that I do get connected from Iran and I have tried it both with and without proxy, and neither was a solution. I do get the same results when I run with --info and --debug. I also ran ./gradlew clean build --refresh-dependencies and got the same results. Is there any way to do what is supposed to be done manually to prevent such network issue (if you are sure it is on the network's side)?
v
I did not say those options would change the outcome. I said you might get more information like seeing what is returned and so on. I'm pretty sure it is somewhere on your side yes, as the thing it searches is available in the place where it said it searched for. Fix up your proxy settings for Gradle, and it should probably work.
m
I did set Android Studio's HTTP Proxy setting to "No Proxy" and tried it with both my own vpn on and off, and neither worked. I also tried the same with "Auto-detect proxy settings" and it did not work as well. Finally, I turned off systems proxy settings (switched off the "Use a proxy" in manual proxy setup, and got no positive feedback. Is there any other specific way I could fix proxy settings for Gradle?
v
Well, changing Android Studio's proxy settings is quite pointless. I said configure the proxy for Gradle, not for Android Studio. https://docs.gradle.org/current/userguide/networking.html