gradle sync failed : Could not connect to server - java

i installed the new version of android studio . version 3.1.1 and i have new error in gradle sync:
Could not connect to server [fc3d9512-540e-47b4-9cb0-8d3b0c134fbe port:5736, addresses:[/127.0.0.1]]. Tried addresses: [/127.0.0.1].
i am using windows 10
I think it's not related to connection because i can update sdk from sdk manager but when i want to sync gradle this message was displayed.
screenshot :
screenshot

Make sure your firewall setting is turned off. It works for me I am using Android Studio 4.1.2 over Windows 10 and antivirus as Quick Heal, i just turned off quick heal firewall off and problem has resolved.

If you have any antivirus installed on your pc eg. Quick Heal, so make sure you turn off your firewall setting. In my case, it works and Gradle sync was done successfully.

Related

Android Studio - INSTALLATION DID NOT SUCCEED

How to Fix This Error while using physical device as emulator.....???????
Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
List of apks:
[0] 'C:\Users\username\AndroidStudioProjects\MyApplication\app\build\outputs\apk\debug\app-debug.apk'
Installation failed due to: 'null'
I use Android Studio Version 4.1.2
Go to the device emulator and click on troubleshoot device connections.
If it doesn't automatically scans your device rescan it again,
Then on the next part just click on restart ADB server finally click on finish.
I think it will fix the issue with install parse.

Android Studio not giving error on install of App on Vm

I recently made my project, worked fine and the recently I've been getting the following error:
Installation failed due to: 'closed'
Any idea on how do I go about fixing this ?
If any extra info is needed I'll be glad to provide.
Read your error carefully, it says Installation failed due to: 'closed', closed what? the device on which you are running your application has been closed before the installation of your Application.
Now there are two possibilities:
If you are running it on Physical Mobile Phone then its might be a problem in your wire plugins
Or if running on Virtual Machine then Read this Run apps on the Android Emulator and reinstall your VM.
and Also read this Configure hardware acceleration for the Android Emulator

GRPC Server error while running android app on emulator

So, I am new to android and trying to run my first app. Created an empty activity project and tried to run it using the emulator. I am getting the following error:
23:20 Emulator: emulator: WARNING: EmulatorService.cpp:448: Cannot
find certfile: C:\Users\myUser\.android\emulator-grpc.cer security
will be disabled.
23:20 Emulator: Started GRPC server at 127.0.0.1:8554
I am have tried installing the latest SDK from SDK tools, restarted the system. Still not good. Can Someone help?
Android Studio Details:
Android Studio 3.6.1
Build #AI-192.7142.36.36.6241897, built on February 27, 2020
Runtime version: 1.8.0_212-release-1586-b04 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1246M
Cores: 4
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins:
This seems to be quite a frequent recent problem, there are a few threads about it, for example: here and here among others.
I have had this problem myself, and what worked for me was to keep the emulator running, uninstall the app you just tried to run from within the emulator, and then re-run it from Android Studio (which will re-install it in the Android device in the emulator). When re-installed, it works fine.
Others in the aforementioned threads seemed to have luck with choosing:
File -> Invalidate Caches / Restart in Android Studio, but this did not make any difference for me.
I hope you find a solution.
A "Cold Boot Now" of AVD helps me. Tools > AVD Manager > "The drop-down on rigth side" > Cold Boot Now.
I still get the certfile error, but grpc works.
Issue fixed now with the newest Updates for Canary Release of Android Studio (Emulator 30.0.10 Canary)!
See Release Updates:
Removed prints about certs and GRPC on startup.

Processing 3 - Android Mode - Blank window "Cannot find an Android SDK"

I've installed android studio and processing 3, and I can't use Android mode. I can't select anything in this blank window and can't close it. Any fixes? You to use Android Mode?
Distro: Arch
Processing - 3.5 linuxX64
I did face the same problem using Processing 3 in Ubuntu 16.04 .
The problem solved when I added the following lines in /home/<username>/.processing/preferences.txt
android.emulator.image.abi=x86
android.sdk.gvr=1.150.0
android.sdk.path=/home/<username>/sketchbook/android/sdk
android.sdk.play_services=11.0.4
android.sdk.support=26.0.2
android.sdk.target=26
android.sdk.wear=2.1.0
Then, I ran Processing 3 and I chose Android from the list.
This time, the window about the android sdk appeared with text.
PS. I had not created the android.sdk.path prior the installation.
I came across that issue and solve it. But if u do that you may be lost all sketches. Firstly, remove /home//.processing/ and /home//sketchbook. Than execute ./uninstall.sh which is your installation folder.(for me /opt/processing-3.5.3 ). than install 3.4 version from processing download page . Than extract it where you want and execute ./install.sh. Open processing IDE. Check version it should be 3.4. Than install android mode it will be ask for sdk and download manually. Than go 3.4 version installation folder execute ./uninstall.sh than install 3.5.5 version. It works for me.

Android Studio error running app: Unable to obtain debug bridge

My antivirus seems to have deleted or removed my adb.exe file from my SDK folder. Permission errors is preventing me to update my platform tools or installing the SDK platform tools. "Stopping ADB server failed (code -1)" "unzip failed \adb.exe. (access is denied)". I have tried restarting my Android studio and but it didn't work. Anyone any ideas on how to fix this problem?
Download file from http://adbshell.com/downloads and paste in :\Users\\AppData\Local\Android\sdk\platform-tools\adb.exe Hope this will resolve your problem
First of all, restart your computer. Next try to launch sdk manager and run update. If it fail, try to install SDK platform tools in another place and make sure that you set new location in Android studio.

Categories