Android studio proxy setting - android-studio

I don't know when jvm property socksProxyHost has been set to 127.0.0.1, and how to reset it to default . Please tell me how to let the warning go.THANKS.
Following is the snapshot:

Just try Invalidate Caches / Restart in Menu File, it works for me.
If you're using Gradle, maybe you want to check the file under $USER/.gradle/gradle.properties to see weather there are some configurations about proxy.

macOS, I solve this as below:
System preferences -> network -> Ethernet or wifi -> Advanced -> proxies, uncheck proxy you have enabled before.

I am currently working on android studio mac so i don't really know much about windows side, but as Kevin Liu mentioned just click file on your nav bar on top and look for "Invalidate Caches / Restart" it will ask you were you want to restart or Invalidate and Restart you can select either and it should work, but i went with invalidate and restart
Hope this helps,and good luck !

Related

Android studio cant download sdk with v2ray

I am an Android developer in Iran
There are too many restrictions for the Internet
Fortunately, V2ray
has solved the problem to some extent, but Android Studio has serious problems with V2ray
no library is downloaded, it does not even allow to download SDK.
I have tried all the VPNs but none of them work
IN IRAN no VPN is working to use for android studio these days , only proxy is available , do it this way inside AS :
IN WINDOWS GO TO Setting >
Appearance & Behavior ->System Settings -> Http Proxy
http proxy
Manual proxy configuration
MORE :
https://dazhyarco.net/%D9%86%D8%B5%D8%A8-%D8%A7%D9%86%D8%AF%D8%B1%D9%88%DB%8C%D8%AF-%D8%A7%D8%B3%D8%AA%D9%88%D8%AF%DB%8C%D9%88/#
CHANGE :
Host name > fodev.org
Port number > 8118
Apply AND OK
.
Thank you #iDeveloper
even you can use the auto-detect proxy setting and android studio use the proxy setting of os that you run v2ray
Like you, I am in Iran
use this dns in your pc :
178.22.122.100
185.51.200.2
AND turn off v2ray.
or use similar site of shekan.ir

How to fix "Unable to locate adb" error in AVD Manager?

I can not find any solution for this error when starting virtual device.
There are some similar topics here, I know, but it seems that none of them solves my issue.
I tried:
uninstall/install Android SDK Platform Tools in SDK Manager
add Platform Tools path to system PATH variable (windows)
set ANDROID_ADB_SERVER_PORT
download Platform Tools from https://developer.android.com/studio/releases/platform-tools and install it
For me extending my path helped.
%ANDROID_SDK%\emulator
%ANDROID_SDK%\platform-tools
%ANDROID_SDK%\tools
%ANDROID_SDK%\tools\bin
See https://stackoverflow.com/a/54030970/16364154
I just did this today
1>First of all disable fast restart from here
2>Then enable VT-x from here
3>Third go to your antivirus. If AVG, open the menu options and click quarantine.Else see where to find quaratine chestbox for your antivirus And then there should be something whose file name will be adb.exe. Yes, even if it it shows in the platform tools, there will be a file with file location Idead or something like that and restore it
4>Then go to your android studio and go to file in the top left corner. Click invalidate/caches and then Invalidate and Restart. Then try.
5> Also go to the sdk manager and update everything that isn't updated.
6>Should work\
If this does not work, just comment it and I will find a new way

Atom installation error on Windows 10

I was getting this error when trying to install Atom using the installer.
I tried to run as Administrator but ever having the same error.
So I opened the Setup Log and found this line in many places of the log:
Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\david\AppData\Local\slack\packages\RELEASES'.
To resolve this problem, I simply tried to change the AppData folder properties, unchecking the Attribute "Read-Only" and applying to subfolders.
After that, I could install the application and everything is working well.
I don't know whether what I did was the best solution, but it fixed my problem :)
Hope this help someone
If you have anti-virus installed on your system. Please disable it and try it once. Hope this will work for you because this worked for me like a charm.
One more thing you can check that your windows update service is also running. You check it out in Task Manager ->
So do this thing and check it out.
This is a permission related issue. Could be you don't have permission to write, in that case run as Administrator.
Right Click on the installer and select Run As Administrator.
If you still have the issue, disable your antivirus, defender or whatever you have to protect your PC from threats. Once Installed Enable it BACK
if you have Dropbox opened, close it.
You can try this:
open control panel
Windows firewall
click allow an app or feature through windows firewall
In that at right bottom click allow another app
Browse the downloaded atom.exe file and click open and click ok
first uninstall or disable the antivirus. In my case Guardian net secure was handling all the things of windows firewall. so i was not able to allow the app through windows firewall. therefore, it is necessary to uninstall these. then restart your laptop.
after restarting open control panel. go to windows firewall. on left top you will see
allow an app or feature through windows firewall . click on it. dialog box appears. click on change settings. at bottom click allow another app. then browse the downloaded file atom.exe. then install it
What worked for me was closing Slack and terminating any of it's processes in Task Manager.
This was what worked for me (Windows 11):
Go to properties>compatability on the installation file. Run the troubleshooter for compatibility, and it shoul provide a solution, wait, and if it works, select that it did so, and you’re all done.
To resolve this problem, I simply tried to change the AppData folder properties, unchecking the Attribute "Read-Only" and applying to subfolders.
After that, I could install the application and everything is working well.
This worked for me on Windows 11 home version.
Hope this helps
I managed to install by finding an older version.

Unable to access Android SDK add-on list

I'm new to Android programming. I was installing the Android studio and it got stuck at one point during installation showing the following message.
So, don't to how to proceed, I searched about it, but couldn't get explanation about this specific condition.
Can someone explain what to do next?
Screenshot:
Note: I'm using Windows 7, Installed JDK 7 before installing Android studio.
Update: I tried to click upon "Setup Proxy" and then just clicked ok without doing anything and it worked, don't know how, but it did.
Try that if any one face the same.
Add the following code to C:\Program Files\Android\Android Studio\bin\idea.properties
disable.android.first.run=true
Just open the file and press Ctrl+F and type run then you will find this run=false, change it to true.
1) click on set up proxy.
2) Select option Auto Detect proxy.
3) Click continue, it will work!!
All the best
I clicked Cancel at this screen and process of setup continued. I saw it on Linux after copying android studio folder from one PC to another. By the way, I started studio not connected to Internet cause I try to be able to work offline.
I just hit this same problem - I was on a VPN.
I tried setting a proxy with 'auto detect proxy settings' but it did not help.
Then I tried disconnecting from the VPN with no proxy set - this resolved the problem for me.
good luck.
You can set the right proxy to solve this problem.
Set proxy ->
Manule...
Https and port
Sometimes,if you use Shadowsocks on your macOS, maybe you will have the same problem.You can turn Shadowsocks off to deal with this problem.
I finally solved the problem by following the Steps:
Add the following code to "C:\Program Files\Android\Android Studio\bin\idea.properties"
Open idea.properties with notepad
Then, enter the code below anywhere on a new line in the file (see attached image)
Code :
disable.android.first.run=true
Save the file
Run the application
Clear your DNS if there is any dns server settings like google, comodo,
symantec etc.
Check your firewall settings if you are using tinywall, zonealarm etc.
If your computer and network connection doesn't have any dns settings and firewall; then check your internet connection maybe there is an update process to slowing down your internet speed. So if there is a process stop or wait for it. And try again. Good luck...
Yet another reason why this can happen is when your time and date settings are not synchronized correctly. I installed android studio inside a virtual machine linux guest that didn't properly synchronize the time with the windows host and as a consequence the above message occured even though my internet connection was working fine.

"Check update" is not working in android studio

I have tried to "check update" in android studio
Help>Check for Updates
but it says
Connection failed. Please check your network connection and try again
But my Internet is working fine. .I've also tried to switch off my firewall. Is this bug of google service?
Update : Whenever updates | installations are failed, start the android studio as administrator.
Old Answer:
This is possibly a bug of Android Studio.
The following steps may help to fix this issue:
Open configuration
Select Settings
Select HTTP Proxy
Set to use no proxy
Restart Andriod studio
start the android studio as administrator. that helps me in android studio whenever updates/installations are failed.
Maybe u can try: Settings -> System settings -> HTTP Proxy -> auto-detect proxy settings.
I had the same problem. To fix I had to manually download a newer version from https://developer.android.com/studio/.
I'm currently running Android Studio 3.2.1 and it updates fine.
Also, in Preferences > Appearance & Behavior > System Settings > HTTP Proxy make sure that Auto-detect proxy settings is checked.
Check Screenshot
It doesn't seem to be a bug. I can confirm that the update worked perfectly fine on my home network. When on my office network, trying to update gives a connection error.
Must have something to do with the firewall...or some service that's not Checked to handle connections based on domain/home/public policies.
I tried no proxy option at both office and home network.
At home, "Check Update" works fine, but getting the error you mentioned with office network.
To avoid this error, you need to provide the proxy details from your office IT administrator.
It may be an also problem for VPN connected users. Try to disconnect and check for updates it will work. It worked for me

Resources