Problems compiling Android SBT project

I've posted this message before in the Scala plugin forum, but no answer.  So, as it is an Android specific issue, I post it also here.

IDEA 13.1.2 with latest Scala plugin cannot compile a SBT Android project that uses android-sdk-plugin.
SBT is a tool similar to Gradle or Maven, very used in the Scala world.

The cause is that it cannot compile resources, because in the build.sbt I've declared to use a library that contains Android resources.

This is the error I receive:

Error:(41, -1) android-apt-compiler: [incidencias] /home/david/android/MyProject/src/main/AndroidManifest.xml:41: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').

Of course, SBT can compile the code with no errors.

I'd like to IDEA able to compile also the project, in order to launch tests and see graphically the result of them.

I'm using Scala 2.10.4.

Is there any workaround?

The only workaround I've found is to create a fake AndroidManifest.xml.

Thanks in advance for any tip.

Please sign in to leave a comment.