SDK Manager -> Install Android Support Repository
On Wed, Jul 2, 2014 at 1:26 PM, Jacob Preston <[email protected]> wrote: > Hey pfn, thanks for the quick response. I appreciate your help and I > really like your plugin. I get what I need to do now, but I am still having > issues. that particular dependency is not being found whenever I try to > compile and pull the dependency from sbt. All of my other dependancies are > found. Did the dependency move? Am I still missing something? Thanks again > pfn. Hopefully i will have this worked out soon. Otherwise, everything else > is going pretty smoothly. > > > On Wednesday, July 2, 2014 11:42:05 AM UTC-7, pfn wrote: > >> libraryDependencies += "com.android.support" % "support-v4" % "19.1.0" >> >> >> On Wed, Jul 2, 2014 at 11:28 AM, Jacob Preston <[email protected]> >> wrote: >> >>> 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. >>> >> >> -- > 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. > -- 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.
