Skip to content
This repository was archived by the owner on Jan 26, 2023. It is now read-only.
This repository was archived by the owner on Jan 26, 2023. It is now read-only.

some workarounds for tons of problems after importing the project #2

@chanjeff2

Description

@chanjeff2

if there is any better solution, please let me know

1. classnotfoundexception/cannot find declaration to go to

image

mark .../src/main/java as Sources Root

2. Gradle not linked to project/cannot resolve org.jetbrains.annotations

image

click "Load Script Configuration" (or whatever there) on the blue alert message "bar".

if there are multiple "bars", just click them all.

3. output path not specified

image

goto File/Project Structure

  • make sure Java 16 is being used as Project SDK
  • make sure Project Language level is >= 15
  • set Project Compiler output to .../app/build (if it used to be empty)

Module not specified/"cross" on Main

image

open "Edit Configuration"

image

set "Use Classpath of module" to ...app.main

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions