Posts

Showing posts with the label intellij-idea

How to fix “unsupported class file major version 60” in IntelliJ?

8 I have a Gradle project in Ubuntu. It's written in Java 14. I have the Java 14 JDK installed. When I build it from the command line, everything works, but no one wants to use a command line! When I open it in IntelliJ Idea, it throws an error: * Where: Initialization script '/tmp/ijmapper.gradle` * What went wrong: Could not compile initialization script '/tmp/ijmapper.gradle`. > Startup failed: General error during semantic analysis: Unsupported class file major version 60. followed by a long, unhelpful stack trace that says a lot about Groovy. (The project is not a Groovy project; it's a Java project.) Major version 60 refers to Java 16, which this project is not using. I've already gone into Project Structure and made sure that it...

flutter intellij plugin: java language support?

In my setup the Intellij Flutter plugin doesn't support Java code. It treats Java classes like text files. Is there any way I could get Intellij to support me with the Android specific Java code? (type checks, completion suggestion, imports, refactoring...) Here is my flutter doctor output: [✓] Flutter (on Linux, channel master) • Flutter at /home/*****/flutter/flutter • Framework revision 99ca38e988 (4 days ago), 2017-03-01 13:15:48 • Engine revision 74de13c0bd • Tools Dart version 1.23.0-dev.2.0 [✓] Android toolchain - develop for Android devices (Android SDK 25.0.2) • Android SDK at /home/*****/Android/Sdk • Platform android-25, build-tools 25.0.2 • ANDROID_HOME = /home/*****/Android/Sdk • OpenJDK Runtime Environment (build 1.8.0_121-b13) [✓] Android Studio (version 2.2) • Android Studio at /opt/android-studio • Gradle version 2.14.1 [-] WebStorm (version 2016.3) • Flutter plugin not installed; this adds Flutter specific functionality....

flutter error when using refactor extract flutter widget option in intellij idea

When I am trying to use 'Refactor - Extract - flutter widget' option in Intellij idea for refactoring a code in a widget, I am getting following error. Server error: Invalid parameter 'params.kind'. Expected to be RefactoringKind; found ""EXTRACT_WIDGET"". There is no solution available on internet for this. Please help Flutter doctor output Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel beta, v0.2.3, on Microsoft Windows [Version 10.0.16299.371], locale en-US) [√] Android toolchain - develop for Android devices (Android SDK 27.0.1) [√] Android Studio (version 3.0) [√] IntelliJ IDEA Community Edition (version 2017.3) [√] VS Code, 64-bit edition (version 1.22.2) [√] Connected devices (1 available) • No issues found!

IntelliJ doesn't recognize flutter plugin

I wanted to try out flutter with IntelliJ, so I followed the order of https://flutter.io/setup-macos/ and everything worked out. But today, out of nowhere, it doesn't work anymore. I can run my code, but reload and hot reload is disabled. So I'd have to close and restart everything, everytime, I'd like to see a change. "flutter doctor" tells me: IntelliJ IDEA Ultimate Edition (version 2017.2.5) ✗ Flutter plugin not installed; this adds Flutter specific functionality. • Dart plugin version 172.4155.35 • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins But I looked it up, and flutter clearly was installed. I honestly sit here for 5 hours now, trying to figure it out, but I just can't find the problem. I deleted and reinstalled Flutter, Dart and IntelliJ like 4 times now, but it didn't work either. Flutter in generall works, at least I can run the app in terminal, so the problem got to be with IntelliJ....