To find out if you need an Android project (library-) or a regular Scala application, you need to clearly indicate your use case. In fact, you should ask yourself the same question when you build a Java-based Android library.
When your library provides any resources (graphics, xml-views, ...), you need to create a library project, because when you complete the project in a *.jar file, these resources will not be available anymore. When you create a library project, you also provide the source code of the library to your users.
If this is not the case, and everything you want to build falls into the *.class files, you can continue the general Scala project. The resulting *.jar file can then be used as a library. And even in such a Scala project, you can refer to the Android API if you add android.jar depending on the project.
libraryDependencies += "com.google.android" % "android" % "4.1.1.4" % "provided"
Taig Feb 10 '14 at 17:37 2014-02-10 17:37
source share