This may be a horribly newbie questions but I have been starting android 
development using scala and I have run into a bug that i haven't found an 
easy solution too. I am currently using the android-sdk-plugin 
<https://github.com/pfn/android-sdk-plugin> by pfn and I am trying to add a 
support library from android. I added the library to my intellij project 
structure via importing the jar and it shows the library and its files and 
I can correctly call the methods in the library. However, at compile, i get 
this error

mypath/LoginActivity.scala:8: object support is not a member of package 
android
[error] import android.support.v4.util._

I'm only trying to import and I haven't yet tried to do anything with it. 
When I import a library the same way in Java and i import the same 
statement and use the class it works fine. I assume it is an issue with sbt 
in that it does not want to recognize the support library as a part of 
android.

For reference, my build.sbt looks like the following

import android.Keys._

android.Plugin.androidBuild

//specifies scala versions
scalaVersion := "2.11.1"

scalacOptions in Compile += "-feature"

//version of android
platformTarget in Android := "android-19"

run <<= run in Android

install <<= install in Android

proguardCache in Android ++= Seq(
  ProguardCache("org.scaloid") % "org.scaloid"
)

dependencyClasspath in Compile ~= { _ filterNot (_.data.getName startsWith 
"android-support-v4") }

proguardOptions in Android ++= Seq("-dontobfuscate", "-dontoptimize", 
"-dontwarn scala.collection.mutable.**")

//adds libs to project
libraryDependencies ++= Seq(
  "org.scaloid" %% "scaloid" % "3.4-10",
  "com.netflix.rxjava" % "rxjava-scala" % "0.19.2")

Thank you for your help ahead of time. 

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to