Can not import libgdx project to Intellij IDEA 14 - intellij-idea

I want to import libgdx project to Intellij IDEA 14 with gradle 2.4. But I can not do. Because when I try to import, Intellij gives error that "resolve error, Already created an SDK Loader with different SDK Path".
I set sdk.dir in local.proporties file. Also I did not set ANDROID_HOME in path.
How can I proceed?

I had the same problem. I wonder if it was caused by using IntelliJ after using Android Studio on the same machine? I got rid of this problem by deleting ~/.gradle but I think that caused other problems, because the libgdx project wouldn't build the desktop module before running it, then kept hanging with high CPU load when I clicked the build button. I ran the project's gradlew in a terminal to see what would happen, and it downloaded a new zip of gradle and seems to have fixed the problem.

Related

IntelliJ Cannot resolve symbol 'String' when using IBM JDK

The similar issue was report in this post without any solution.
--
My IntelliJ Version is IntelliJ IDEA 2022.1.2 (Community Edition)
For over an year, I have been working on a maven project which uses a customized ibm-jdk8 and a customized maven installation.
So I've configured global maven runner & import settings & project & module SDK settings to use this custom JDK.
All this setup had been working fine for over an year.
Yesterday, I updated IDEA to newer version, I'm not sure what was the reason but I started getting wired IDE errors.
So I invalidated the cache and restarted the IDE,
When that did not solve the issues, I manually deleted following folders
All ~/AppData/*/JetBrains folders .
.idea folder inside project root.
project-name.iml file inside project root.
After that I updated all intelliJ setting same as above, but
Since then I've been getting Cannot resolve symbol 'String'
Strangely all other JDK classes are detected, but in whole code String is not working.
It's a known issue specific to IBM JDK.
The workaround is to manually add vm.jar file from JDK_HOME\jre\bin\default\jclSC180\vm.jar to the SDK classpath tab in IntelliJ IDEA.

IntelliJ CE does not recognise Play framework

I have an play application, IntelliJ CE does not recognise anything play.*
such as:
Error:not found: object play
import play.api.GlobalSettings
How can I fix this?
It is a gradle project and building fine from command-line but intelliJ CE has some problem with the code.
Play framework is supported only in IntelliJ IDEA Ultimate.
Three ways you can deal with this (assuming your IntellJ is up to date):
Close the IntellJ and import the project again as a Gradle project.
Remove the .idea folder within the project's folder; and try to import it again.
Click to Invalid Caches / Restart from the file menu.

IntelliJ doesn't show project structure correctly

I followed instruction from following link to create a Play project in IntelliJ but IntelliJ doesn't show correct structure.
https://www.jetbrains.com/help/idea/getting-started-with-play-2-x.html
Snapshot attached
I ran into the same issue and found this: Building a Play 2.6 project from IntelliJ builds nothing
So now we're 3 people with the same problem. I haven't found any open bug report or issue anywhere.
I got it working using the workaround that OP from the other question suggested: "Build the project from SBT in your desired location first, and then import the project from IntelliJ as an SBT project and you should be good to go."
To do that just run sbt new playframework/play-scala-seed.g8 (assuming you have SBT installed and PATH configured), and import that.
I raised the issue with IntelliJ support. It seems to be fixed in the latest release of IntelliJ ultimate edition. If you run the default application and see 'no jdk error', go to edit configurations and select the top level project in play module (see pic)

IntelliJ IDEA 12 Android slow response

When I type in the IntelliJ Editor I get major lags from multiple seconds, until my typed word gets displayed.
I'm running IntelliJ with Maven and Git to build Android Projects.
idea.exe, idea64.exe and idea.bat did produce the same issues.
My mistake was to apply the Android SDK in my Project settings.
Goto File | Project Structure | SDKs
Remove all Android related SDK's
Add only your default Java JDK like JDK 1.7 (default under: C:\Program Files\Java\)
Goto the Modules Tab
Apply the JDK to all modules or set ProjectSDK as it should now be the JDK1.7
As I tried to solve this problem for several days including adding the IDEA_JDK Variables
I thought sharing this solution could be helpful

Android Studio - Configure local paths

I'm currently struggling to get Android Studio running on my windows box. The problem seems to be that I moved my home-directory to a different drive than C. (Because I have a tiny SSD for the system only and the rest is on my HDD)
I changed the gradle settings from android studio to the correct folder on drive E but when I try to create a new project this error pops up:
Failed to import Gradle project: Could not install Gradle distribution from 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'. java.io.FileNotFoundException: C:\Users\myuser\.gradle\wrapper\dists\gradle-1.6-bin etc.
I need the IDE to download it to E:\Users\myuser\etc.
Any idea where I can configure that? The settings from the settings dialog seem to be ignored.
it happens from time to time when gradle server has a bad day. Usually when they publish new version.