How to get IntelliJ IDEA 14 working with Scala on Android (SBT)

I am using android-sdk-plugin to make Android apps with Scala using SBT. This usually works fine, however, when trying to import a project into IntelliJ IDEA 14.1, the imported project looks rather empty and does not recognize my source files as part of the project.

The documentation says:

IntelliJ 14 now includes built-in support for importing projects from android-sdk-plugin. The process generally works well, however there are a few more caveats: framework-sbt-plugin is still required to actually execute the build (no longer required as of IDEA 14.1)

Cloning and importing even the most basic example project results in an empty ID environment not showing any sources:empty IDE

I have installed both the Scala plugin and the SBT plugin (which I think is no longer required) as required by the documentation.

What important step am I missing?

Edit: I added the plugin manually to project/plugins.sbt

, then ran gen-android

to get the project/build.scala

containing object Build extends android.AutoBuild

.

+2


source to share


1 answer


The major drawback is IDEA's Android plugin . This may sound obvious, but unlike plugins for other frameworks, this doesn't just provide additional goodies, but is actually essential for any Android.



Having the plug-in allows you to select Android as the SDK of the project (which not only chooses the Android SDK, but the Java SDK to go with it).

+2


source







All Articles