1) libraryDependencies += "com.android.support" % "appcompat-v7" % "22.0.0" 2) fixed by the above 3) intellij 14.1 can kind of run sbt tasks now, not the greatest, but can be used to start/run the build
4) please go through the getting started guide at http://www.scala-sbt.org/0.13/tutorial/index.html On Thu, Apr 16, 2015 at 5:23 AM Eugene <user...@gmail.com> wrote: > Hi guys! > > I'm new to Android development, and have decided to start with Scala. > > I have Mac OS, I've installed fresh version IntelliJ IDEA, installed (with > Homebrew) android-sdk and sbt. > Then I installed with 'android' utility SDK version 22 and extras (Android > Support Repository, Android Support Library, Google Repository). > > Now I have the following lines in my code: > > import android.support.v4.app.Fragment > import android.support.v7.app.ActionBarActivity > [...] > > class MainActivity extends ActionBarActivity with TypedActivity { ... } > > > Now when I run 'sbt compile' in command line, I have the following errors: > > [error] [...]/src/main/scala/MainActivity.scala:4: object support is not a > member of package android > [error] import android.support.v4.app.Fragment > [error] ^ > [error] [...]/src/main/scala/MainActivity.scala:5: object support is not a > member of package android > [error] import android.support.v7.app.ActionBarActivity > [error] ^ > [error] [...]/src/main/scala/MainActivity.scala:14: not found: type > ActionBarActivity > [error] class MainActivity extends ActionBarActivity with TypedActivity { > > (1) What is the right way to solve this problem? > > I tried to add symbolic link (ln -s) to libs/ folder from > android-support-v4.jar and android-support-v7-appcompat.jar in my SDK > directory. That solved this particular error. > > (2) But then again, new error arouse (ProGuard "can't write > resource"/"duplicate zip") > > And symbolically linking framework libraries doesn't look like the right > way in the first place. How do I solve that one? > > (3) Third question: How do I make IDEA build with SBT? > > It's obvious to me that by default it uses some other mechanism to build > project. I can add android-support-v4/v7 jars to "Project > Structure"/Libraries list. Then IDEA will see ActionBarActivity definitions > and will compile fine. But it doesn't change SBT's behavior (it fails as > described above). And still error (2) arises again. > > My build.scala file contents: > > object Build extends android.AutoBuild > > plugins.sbt: > > addSbtPlugin("com.hanhuy.sbt" % "android-sdk-plugin" % "1.3.20") > > > Thanks for your help! > > -- > You received this message because you are subscribed to the Google Groups > "scala-on-android" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to scala-on-android+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "scala-on-android" group. To unsubscribe from this group and stop receiving emails from it, send an email to scala-on-android+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.