android - javacTask: source release 1.7 requires target release 1.7 -


i have setup android project through sbt (0.13.1) in idea 13.0.2. mixed java 7 , scala 2.10.3. uses sbt support in idea.

even though in build.sbt have following:

 scalacoptions += "-target:jvm-1.7"   javacoptions ++= seq("-source", "1.7", "-target", "1.7") 

here result when make project idea:

 java: javactask: source release 1.7 requires target release 1.7 

any please?

finally solved.

you need this:

javacoptions in compile <<= (javacoptions in compile) map { _ collect {         case "1.5" => "1.7"         case s     => s     } } 

i suppose due fact, default javacoptions supplied plugin 1.5, , adding setting doesn't work, replacing it.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -