Search all the occurrences of a string in the entire project in Android Studio

TLDR: ⌃⇧F on MacOS will open “Find in path” dialog. First of all, this IDEA has a nice “Find Usages” command. It can be found in the context menu, when the cursor is on some field, method, etc. It’s context-aware, and as far as I know, is the best way to find class, method or field … Read more

Error: JavaFX runtime components are missing, and are required to run this application with JDK 11

This worked for me: File >> Project Structure >> Modules >> Dependency >> + (on left-side of window) clicking the “+” sign will let you designate the directory where you have unpacked JavaFX’s “lib” folder. Scope is Compile (which is the default.) You can then edit this to call it JavaFX by double-clicking on the … Read more

IntelliJ: Error:java: error: release version 5 not supported

See https://stackoverflow.com/a/12900859/104891. First of all, set the language level/release versions in pom.xml like that: Maven sets the default to 1.5 otherwise. You will also need to include the maven-compiler-plugin if you haven’t already: Also, try to change the Java version in each of these places: File -> Project structure -> Project -> Project SDK -> 11. File -> Project structure -> Project … Read more

Java file outside of source root intelliJ

If you do an ‘import from git’, IntelliJ doesn’t import the project structure from maven (or gradle) automatically. One way to do this afterwards is to right-click on the pom.xml file in the root directory, and select ‘Add as maven project’. Then the folders will be marked correctly, and dependent libraries will be imported. There … Read more

Error: Could not find or load main class in intelliJ IDE

This might help: 1) “Build” menu -> “Rebuild Project“. Sometimes Intellij doesn’t rewrite the classes because they already exist, this way you ask Intellij to rewrite everything. 2) “Run” menu -> “Edit configuration” -> delete the profile -> add back the profile (“Application” if it’s a Java application), choose your main class from the “Main … Read more