I was using AS perfectly without any issues. When I imported a project downloaded via github. And after resolving some build issues I managed to ran the program but it caused problem with AS and I had close it forcefully. When I restarted my AS it pop up firstly with this error.
cannot start internal http server. git integration, javascript debugger and liveedit may operate with errors. please check your firewall settings and restart android studio
Then I googled and found some solutions of which I tried these:
Disable Antivirus or firewall.
Run network command netsh winsock reset
Remove all gradle related files and restart.
Remove all android related files(SDK, .android folder etc) and reinstall android with no previous settings.
All of these didn't work and another problem came up.
Gradle 'My Aplication' project refresh failed - Error:Protocol family unavailable
For this problem I added following line in my environment variables
_JAVA_OPTIONS = -Djava.net.preferIPv4Stack=true
but this didn't resolved my issue. So I again reinstalled AS from beginning.
Now I am having two issues
Gradle 'My Aplication' project refresh failed. <br>
Error:Could not connect to server [ff117fd1-1e60-4433-87c8-b03c2c38eba0 port:55537, addresses:[/127.0.0.1]]. Tried addresses: [/127.0.0.1].
And other issue is
cannot start internal http server. git integration, javascript debugger and liveedit may operate with errors. please check your firewall settings and restart android studio
I have searched everywhere but couldn't find any solution for these two issues.
Windows 10 OS
Android Version : Android Studio 2.3.3
Build #AI-162.4069837
Wamp Server is installed and working
Please help me with this issue. Thanks in advance.
Actually I found the solution to my problem. I don't know what exactly worked for me but after following these steps my problem was resolved.
Uninstall Android Studio(save the user settings if you want to).
Uninstall other programs which uses server port on the system.(like wamp)
Disable/uninstall antivirus on the system.
Delete all related folders (.gradle,.android,.AndroidStudioProjects etc from user's folder Android folder from local folder in app data) and restart system.
Install android studio and make sure firewall/antivirus is disabled.
Import settings if you want but don't import settings for gradle, httpserver, internal server, git, javascript debugger and others which were causing problem earlier.
Install the SDK and Emulator and other SDK tools.
Enjoy
Related
I just downloaded and installed Android Studio. I've tried running it, but there's some internal error. I've tried uninstalling, deleting the JDK, and reinstalling, but I'm still having this same problem. I also tried to download the new installer and install it again but same problem happened.
Here's the error:
java.util.concurrent.CompletionExecption:org.picocontainer.PicoRegistrationException:Keyio.flutter.settings.FlutterSettings duplicated
at java.base/util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at...(many more errors)
at...(many more errors)
First of all, I will like to know which OS you are on. But try this;
If you have anti-virus, you want to disable it till after a successful installation because some anti-virus delete some files at installation time because those files are read as treat to your PC.
If you are on MacOS ,then try deleting the marketplace directory which contains plugins.
rm -Rf ~/Library/Application\ Support/AndroidStudio2020.3.1/marketplace/
or
~/Library/Application Support/Google/AndroidStudio202.3.1/plugins
There can be Android Studio under Application Support but that is not the correct one.
If you use Windows then , try the following ways:-
Changing these lines of code
Open the folder where you installed Android Studio:
ex: C:Program FilesAndroidAndroid Studiobin
Find and edit idea.properties. You can edit this with use notepad++ or
any similar application that allows text editing.
Add this line as the final in the file:
disable.android.first.run=true
Now run Android Studio again.
Opening in Offline Mode
Close Android Studio Turn off Internet connection and be sure of it.
Start Android Studio. You will see a popup box with Cancel option in it.
Then Click cancel.
Reinstalling JAVA, PYTHON
Downloading new package of ANDRIOD STUDIO and installing it again after deleting all the previous files
Adding bin directory to the enviornment variables
JAVA PYTHON JRE-AndriodStudio
Deleting the user plugins that we have in Andriod Studio. [But as its my first time of installation, I am not having them]
Even tried restarting my system
Closing all other instances running via java, to ensure it not disturbing that particular port number
But no programmes were running in the process that took the use of java
Windows Credits:- https://ittone.ma/ittone/start-failed-fresh-installation-android-studio/
I am facing an issue with Instant Run when using an Emulator.
I follow the directory and delete that
"slice_8" But it's still The Same Error Message ?!
Any ideas how I can solve it?
Disable(uncheck) instant run in settings > build,execution,deployment > Instant run
then clean your project in Build > clean project
if still problem not solved, then build > make project
run app
Most likely, you installed the currently installed APK from Google Play or some other source that means the certificate used to sign doesn't fully match the existing. A debug and a release certificate is different. The solution is simple. Uninstall it. Press OK and install the app. You can also uninstall it manually from the device/emulator.
If you keep getting the same error even though the certificate is the same, that is a different issue
It has to do with the flavors of the app. For an instance debug and release. Debug has one certificate, release has a different one. While the package may match, and from the ANdroid OS point of view, these apps are the same. But the one you install compared to the existing APK. The apps are the same, but the certificates do not match. So you need to uninstall the existing, as you cannot install an APK if there is a certificate mismatch.
If you're using BlueStacks as an emulator, you could go into Settings >> Preferences, then scroll down to Platform Settings and check (enable) "Enable Android Debug Bridge (ADB)".
I assume it's the same type of deal if you are using another emulator, just make sure the ADB is on.
Every time I run Android Studio, this loading screen pops up, but Android Studio stays here and doesn't load. It's like this following picture except that the loading bar is loaded all the way but stuck there. I am running Windows 10.
I have tried many things, including setting the system variables JDK_HOME to where my JDK is located and the same for JAVA_HOME. I have also set a path. I ran as admin many times and let AS through a firewall.
I have also restarted and reinstalled countless times.
The version of AS is 2.0, and I am running the latest versions of Java.
Any help?
Open file Android Studio setup directory/bin/idea.properties
Add disable.android.first.run=true to end
Restart Android Studio
PLEASE NOTE: This will break patch updating to the next version. We
now check full binary checksums on the whole installation to prevent
various install corruption bugs as well as to preserve application
signatures. Therefore, make a copy of this file first, and before
updating, put it back.
Please try the following method to fix that issue:
Find the folder of your AndroidStudio: based on the following directory
macOS: ~/Library/Application Support/Google/AndroidStudio[version]
Delete the AndroidStudio folder.
Restart
Ref:https://developer.android.com/studio/known-issues#studio-config-directories
In order to know how to debug the problem, I executed the bin\studio.bat script in the terminal and inspected the actual Idea exceptions in order to fix the problem.
For me, this was the issue:
ERROR - llij.ide.plugins.PluginManager - java.net.BindException: Address already in use: bind
java.util.concurrent.CompletionException: java.net.BindException: Address already in use: bind
This means the plugin manager is trying to listen on a port that is not available. Is something listening on that port? For me, it was the stupid "excluded ports" by Windows, so I simply stopped the service:
net stop winnat (as administrator), and confirmed that Android Studio started to work.
No need to re-install, delete precious configuration (and plugins, etc.). Just read the log provided by the bin\studio.bat script, and I was able to fix the issue.
I wanted to start some Android app development with my friend recently. I've installed the latest Android Studio 0.8.1 and cloned github repo. Then, when I try to build the project using Gradle, it is failing with the message:
Caused by: org.gradle.api.GradleException: Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/1.12/userguide/gradle_daemon.html
I am using Windows 8.1 64bit, JDK jdk1.7.0_60 64bit and gradle 1.12
I tried to:
- disable firewall and antivirus - didn't help
- download gradle manually, unzip and copy to .gradle in my home directory - didn't help
- when I open a blank new app I have same problem
- I moved the app to different directory as my user name contains 'ł' - same issue
Can anyone look at the log and try to help? This is the most annoying kind of issues developer can face - env is refusing to work and you can't code :(
<<< link to log >>>
Finally, after quite long fight last night, I have managed to run Android studio and build project with Gradle... and I hope it will stay so.
So, as #Eugen pointed out, this could be related to the fact that first installation of Android Studio was done for "only current user". Even I have uninstalled it and installed again it was still failing. Last night, I decided to uninstall it and also, manually, remove all remains of android stuff by simply deleting every directory with android, gradle etc. in its name ;)
I have also updated java to 7.65. and installed stand alone Gradle 2.0 and add it to PATH and check it is working.
After that, I done a clean install of android studio and open simple new MyApp project... and it works! Then I opened my other project - also working! I removed Gradle from PATH - still working.
I have no idea what was wrong... probably first installation of Android Studio was not completely correct. And unistalling it, didn't removed everything.
So, I have no clear answer for my issues, but I thought it could be helpful to describe the story. :)
I updated eclipse, and android then started giving the error Please ensure that adb is correctly located at 'C:\Users\Christian\AppData\Local\Android\android-sdk\platform-tools\adb.exe' and can be executed. adb.exe is in fact at that location and it can be executed. I have tried reinstalling the android sdk at that location, and reinstalling the android eclipse plugin.
As I'm not able to post comments yet, I'll share with you some responses from other thread:
Kill the adb.exe process located in Task Manager and then restart Eclipse.
If it does not work, try to reset adb in Devices. Clean up the project may would help too.