eclipse ADT slowdown and error - java

after updating my ADT to the latest version, i am having frequent slowdowns and crashes..
lately this error happens more frequently than not. i had to force quit it resulting to unsaved activities..
i have already close all projects/libraries that isn't in use, its still slowing down even if there is only one project that is opened.
should i reinstall eclipse? what would happen to all of my projects and libraries? this is my first eclipse and this is the first time that this happened to me...

Change Target SDK in your manifest to 18 for the time being to avoid the crashes. Issue is with android-19. Wait for another update before switching back.

Remove all errors and warnings from your layouts.
Make sure you are running the eclipse in admin mode (windows users)
Go to your eclipse folder location -> open eclipse.ini file then change.
-Dosgi.requiredJavaVersion=1.6 -Xms256m-Xmx512m
to
-Dosgi.requiredJavaVersion=1.6-Xms512m-Xmx1024m
this may help you a little bit.

Related

Eclipse neon hangs loading org.eclipse.ui.navigator

Researching existing answers to problems with eclipse hanging on startup, I have not found anything that seems applicable to my problem. Neither have the responses so far been helpful.
The splash screen appears and seems to be conducting a normal startup process, but when the status message reports
Loading org.eclipse.ui.navigator
all progress halts, apparently forever.
REACTIONS TO ADVICE AND DIAGNOSTICS:
A related question caused me to add -clean to the shortcut. This did not help.
The first actual answer suggested reinstalling Eclipse. This did not help.
The second response suggested that I look at Eclipse log files. The first file suggested was most recently updated May 5, long before the problems started, and the second suggested file did not exist.
Moving the old workspace to a different file name and reinstalling Eclipse again with a brand-new workspace enabled me to launch Eclipse successfully, but if I switch workspaces to the new workspace, it hangs (at the same point).
The problem appears to be loading a plugin named org.eclipse.ui.navigator. There is no such plugin in {workspace}\.metadata\.plugins, in either the old workspace or the new workspace. I don't know why Eclipse is trying to load that nonexistent plugin when it tries to run from the old workspace but not from the new workspace. As far as I can tell I need to find some way to install the navigator plugin in the old workspace (without being able to run Eclipse from that workspace), or somehow tell Eclipse not to try to load it. I have no idea how to do either.
Running Eclipse Neon, on a Win10 machine; Eclipse ran normally as of a few days earlier and only started hanging May 22.
Had the same problem today. It was resolved after removing the following folders from the [workspace]/.metadata/.plugins folder:
org.eclipse.e4.ui.workbench.swt
org.eclipse.e4.workbench

Suddenly can't open any of my java programs in Intelliji

Everytime I attempt to click on my java applications nothing comes up:
I did not have this issue before. I was able to previously open my java class files and run the program with no issues.
Please close the current project and also exit IntelliJ IDEA (better to invalidate cache and restart)
Try to re-import the project.
This seems to be the fault of the new update.
Three possible solutions could be either switching back to an older version until they have it fixed, or wait until they fix it, or try a different IDE for a little.

Unable to save settings : IntelliJ IDEA

I use IntelliJ IDEA 15 and have a problem with the auto-saving. For example I make a new configuration, e.g. Show the line number. When I close IntelliJ and reopen my IDE, it doesn't save my configuration and shows me this message:
Unable to save settings : Failed to save settings . Please restart IntelliJ IDEA
I get this too (IntelliJ 15.0.5), but only when the "Markdown support" plugin is used. Once a .md file is visualised the error starts appearing.
For future reference current version: 2016.1.20160405.143
Not a very solution-oriented post, but maybe this can help someone further pinpoint the source of the error.
This workaround allows you continue using "Markdown Support".
Uninstall the latest version of "Markdown Support" and install version "8.0.0.20160127.143.1" from https://plugins.jetbrains.com/plugin/7793?pr=idea. Everything works fine.
I was receiving the error with:
IntelliJ v15.0.6
"Markdown support" plugin version 2016.1.20160405.143
I uninstalled the Markdown support plugin (IntelliJ IDEA > Preferences... > Plugins > Markdown support), restarted IntelliJ, and am now able to save without error.
I have tried everything from this SO thread but it did not work. I solved it by deleting the .idea folder from my project's Windows path and then restarting intellij.
This can also happen when the disk drive where the currently opened project is stored is full (0 bytes left on device). The system tries to write to the .idea folder but cannot, so it gives the same error as if there were no access rights.
This happened to me as there was a process writing to disk in the background until it was full.
I delete this file : .IntelliJIdea
When I launch ./idea I should reconfigure all IntelliJ system (config/ extention/ theme/ licence ...)
So It's okay now but I think is not a good solution ...
Workaround for Windows users.
My installation is located in:
"C:\Program Files\JetBrains\phpstorm"
The location gives it problems with the saving of files. (probably to do with user rights and UAC, not totally figured out what rights the folder needs, but for easy resolving I removed and reinstalled Phpstorm to
"C:\development\phpstorm" and it resolved the issue.
For those who have a simular issue on windows machines:
I have applied the "hidden" property for the .[IntelliJ-Produkt][Version] folder in Users/[Username] folder. This was causing the issue. Don't do that.
I encountered this problem when I open up IDEA for the first time after copying the old config files backed up with my Live CD USB before reinstalling my Ubuntu. I think it is because I copied the files from the old OS and to the new OS as root, so the ownership of the folder is changed. Now when I want to write to it as another user, it blocks me from doing it.
Change the ownership to your user and change permission to add write solves it. You use chown and chmod.
On OSX, I've uninstalled PhpStorm, and then have installed it again, always by using the JetBrains TOOLBOX.
Hope it helps!
Windows Defender was the issue
Windows defender has a protection component called ransomware protection (details: https://www.makeuseof.com/tag/protect-ransomware-windows-defender/)
This restricts folder access (for selected folders) to some programs only.
Add Webstorm to allowed applications
Excerpt is below. Full guide with pictures are here: https://www.windowscentral.com/how-allow-blocked-apps-ransomware-protection-windows-10-october-2018-update
Open Windows Security.
Click on Virus & threat protection.
Under "Ransomware protection," click the Manage ransomware protection option.
Click the Allow an app through Controlled folder access option.
Click the Add an allowed app button.
Click the Recently blocked apps option.
Click the + (plus) button for the app you trust and want to allow.
Click the Close button.
I faced the same issue today and it might help some people if above solutions cant help. I am using dual boot system. Win 8 and Kubuntu. I got this problem with my intellij installed in Kubuntu. I realized my project was in a NTFS partition which was marked as READ ONLY. This happens sometimes when you shutdown windows and start computer into your linux.
Solution is to go back to your windows OS and restart it and switch to linux. Also, you could hold shift and press shutdown button, then choose to turn of your pc in the blue menu.
On windows 10 I had the same problem, I ran PhpStorm as administrator which fixed permission issues it had.
Then I restarted PhpStorm without administrator permissions and everything worked fine.
It was a fresh install so no plugins other then the build in ones.
I've encountered this issue multiple times; rebooting my (windows) computer has always worked for me (while restarting Intellij didn't do anything).
It's because you don't have permission to save settings. On my macOS, I set write permission of my project.
I got same error message for InteliJ WebStrorm saying
Unable to save settings
Failed to save settings. Please restart WebStorm
It happened due to permission issue. if you don't have permission to save this message could pop-up. Please make sure you have write permission to the folder you are saving.
I might be late at answering this but I did not see any accepted answers here.
I got a solution to this on other forum.
They suggested to start IntelliJ IDEA as Administrator.
It worked for me.
Hope it helps people who come here searching for answers.
for my Ubuntu, i fixed it by issuing this command.
sudo chmod 777 /path/to/dir

Android Studio won't start new project, help! (gets transparent)

when i install it and try open for the first time, it works perfectly, but when i tried after, and click in "Start a new Android Studio project", the window opens, but gets transparent for ever(see in the image). it gives no error alerts, files missing, nothing.
after that, i tried to:
update all tools and SDKs, not works.
run it as ADM, not works.
run this with nothing more running to have more power of the pc, not works.
add the "JAVA_HOME" system variable with the JDKs and JREs locations, not works.
install individual SDK tools, not works.
uninstall and reinstall all JREs, JDKs and Android Studio, not works.
Change JREs and JDKs versions to older ones, not works.
search for the Minimal System Requirements to run it (that you can see here: http://developer.android.com/sdk/index.html)
and my pc supports i guess (that have 4gb RAM, 150gb of free space on the install location, AMD Sempron 145 2.8ghz processor, Win 7 32-bit, 1280x1024px screen resolution and all JREs, JDKs and SDKs needed).
yesterday i tried to change the installation location to another HD, not works too
and in my last try, i undo my pc with a System Restore to 4 days before the first installation, nothing of this works
anyone knows what i can do to solve this? if not, exist another program that i can use instead of the Android Studio? i'm a newbie in android development, i relly relly need some help pls :(
sorry my bad english and the big post, i'm just trying to be more specific as possible.
Thanks in advance, have a good day.
go to your user directory.
Example : C:\Users\yourName.
delete the directory..
.AndroidStudioX.X
if you have few of them delete all of them.
this should reset Android Studio as a fresh install
helped me a lot of times.

Eclipse get hang after some time with error of java

I am using Eclipse Juno for android development purpose.
I am working on the project contain 4-5 library in it. Do know what is the reason but after several use of that same project My Eclipse get hang. Another thing is it only get hang while i am trying to run the app from eclipse.
After that my Eclipse get stop working and in Not Responding condition. When i click on that, I got below message by closing of Eclipse.
Message:
I don't know what is the reason for causing of this. Please help me regarding this issue.
It is because of a corrupted workspace. For, solution refer
this
The error was due to a corrupt workspace. As I disable the workspace check in the startup I couldn’t select another workspace since Eclipse wouldn’t start. Rename the workspace e.g. to “workspace1″. Eclipse will start and create a new uncorrupted workspace and work without any problems. Afterwards you can import your project into your new workspace and in the end remove the old corrupted workspace.
So, you have to create a new workspace
The most common reason I've seen Eclipse crash is due to running out of memory. Try editing the eclipse.ini file in your Eclipse installation directory, and changing the part where it says -Xmx512m to -Xmx1g (or 2g, if you have a lot of free memory on your system). You can also increase -Xms40m to -Xms512m or similar to make Eclipse start with more allocated memory initially.
Close your project from eclipse and try again. If it doesn't work, copy your projects into a new workspace and open them from there

Categories