IntelliJ Crashes on opening Gradle project, why? - java

So I have been using IntelliJ with Gradle perfectly fine for the past few days. I tried to create a second Gradle project in the same workspace and since, IntelliJ crashes when i open it. The start screen appears, the project opens then a few seconds later it just closes. There is a crash report that appears, which is attached.
I tried deleting the new project and just opening the old one but it made no difference. It seems to be happening permanently now. I even tried reinstalling IntelliJ but it had the same problem the moment I created a second project.
Does anyone know how to fix this? Thanks.
Log File

After having a look around and being very close to contacting support, I found a post (I cannot find where) that suggested these errors are to do with my JDK version. After following this tutorial, the problem was fixed. Hope this helps someone else with the same issues!

Related

Flutter "You need Java 11 or higher to build your app with this version of Gradle." error

When i create a new project, and press run i get this error.
The fact is i do already have jdk verison of 15 and my previously created projects do open and run without any errors. Also, if i add org.gradle.java.home=C:/Program Files/Java/jdk-15.0.1 line to my gradle.properties file the app runs without error but this way just does not seems right way to do it.
I have tried to change the SDK version from the project structure like some other questions and answers but it did not worked either. As an additon to other problems i do not have the same project structure screen as they showed so.
I do not know what to do right now, i would be very grateful if you could help me.
You should delete .gradle folder under user name. Then again run your project.
change gradle to 4.1.0
and it will be run

Netbeans 12.0 Java hints and highlights not working

Suddenly the hints and highlights on Netbeans stopped working for me. It won't show suggestions on imports and it won't highlights errors. I intentionally wrote int i = "hello":and the code wasn't highlighted and no warnings came up. I've checked >Preferences >Editor and form what I can tell Code Completion, Code Templates, Hints and Highligthing are all selected. I checked some older posts here and also tried to delete the index in the caches folder. I've discarded my project and started over, uninstalled and installed Netbeans and restarted my laptop at few times now but the issue is still there. It was working fine until yesterday afternoon. Any suggestions? I run Netbeans on macOS Catalina if that matters.
EDIT**
I now noticed this problem only occurs in projects where I have a JForm.
I had the same problem and here how I solved it:
Exit Netbeans
Go to : C:\Users\UserName\AppData\Local\NetBeans =====> DELETE Cache folder
Open Netbeans and it's fixed

Android - What happen to my Project?

I am new to android development. Yesterday night I was working on my project. It was working well. But today morning I open my project I got R error. Then only I noticed my project everything is disabled.
I don't know what is happening. Please help me to resolve this problem.
You need to clean and build your project, and if that didnt work you need to check your manifest and style folder for any error that sometimes it wont hint you for errors in there.
It happened to be before, I had some issues with Java x64 and Android SDK, I couldn't fix it and someone told me to switch java, eclipse and sdk to 32 bits.
This was around 6 months ago, dont know if its the same problem.
This error occurs due to the change in the path of the library required by the Project.
Go in the Java Build Path option and try to remove and add again the library.
Tick the android sdk package name in project properties.
Finally I changed the workspace. It is working. But still now I don't know why all my folders are closed in my previous Workspace.. Thanks to all..

Source not found Error in Java Eclipse

I'm fairly new to Eclipse and I'm using Kepler with EGit right now but I ran into a problem every time I compile my Java application. I've searched this forum to find a solution for my problem but I am still very confused as to what I can do to fix it. The application worked flawlessly yesterday morning and it works fine on my project partner's laptop but after syncing the project with 4 new commits from my project partner today, I keep getting a Source not found error every time I try to run the application. I get a button saying Edit Source Lookup Path and when I click on it and expand the folders, I get something that looks like this:
There are a bunch of .jar files above what you see and maTKProject is the name of my project.
If anyone could give some insight on how to fix this problem, I would greatly appreciate it!
When running the application in debug mode make sure that there aren't any breakpoints that shouldn't be there. Go to Window -> Show View -> Breakpoints and remove as necessary!

eclipse indigo constantly freezing and giving problems

Ive been getting alot of weird problems with my eclipse Ide the last day or so and I would like to reinstall some or all components of it to try to correct the issue, I noticed last night that my background services in my android project stopped working when I would launch the project I was working on, yet It would then launch when I would open up another project so I began doing that instead as a work around, I then began getting issues where when I relaunched the emulator it would freeze at 27% every other time and I would have to restart the ide over and over again.
what I would like to do is reinstall the jdk, and if that doesnt work I would like to reinstall eclipse, however the dilemma Im having is Im not sure If I will lose all my work If I do this, what is the best thing to do?
Eclipse can get really frustrating and hard to fix but it is also very easy to install. You donT actually uninstall or install anything, Eclipse can be run without changing the registry.
I ll suggest, before you lose any more hair or your sanity:
archive your existing indigo and workspace
get a new copy of Eclipse (indigo again, why not)
re install Android environment
import your projects, clean, fix ..etc.
Apparently this is a rather common problem, not your particular %27 problem but the general Eclipse fix vs reinstall dilemma. IMHO, a clean start saves from a lot of trouble.

Categories