Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA - sbt plugin - 'Expression type Def.Setting[...] must conform DslEntry in sbt file'

I looked for similar questions, I found this:

Expression type DslEntry must conform to Def.SettingsDefinition in SBT file at line enablePlugins(JavaServerAppPackaging)

My issue is similar, but happens in every row.

image link

When I try to run, it compiles and runs successfully. When I click "Import Project", the yellow notification does not disapear, but the project reloads successfully. If I rewrite any row as, for example, val _ = scalaVersion := "2.12.4", the error disapear, but it looks awful.

like image 315
Rafael Leal Avatar asked Feb 15 '18 21:02

Rafael Leal


1 Answers

I had the same issue. This solution worked me everytime. 1. Click on sbt tab of right side in IntelliJ Idea 2. Click on Refresh symbol

It will revalidate the Local cache and Gradle dependencies. That's it.

like image 52
Yogesh Funde Avatar answered Sep 21 '22 08:09

Yogesh Funde