Hi,

Here is the solution to your 
issue: https://github.com/pfn/android-sdk-plugin/issues/25

N

On Wednesday, May 21, 2014 7:17:32 AM UTC+1, Xi Shen wrote:
>
> I think it is because the "viewpagerindicator" package included a wrong 
> version of support-v4. I tried to exclude the dependencies of this package 
> by:
>
> "com.viewpagerindicator" % "library" % "2.4.1" % "provided",
>
>
> But it cannot be excluded, and "sbt compile --debug" shows:
>
>
> ...\app\target\apklibs\com.viewpagerindicator-library-2.4.1\libs\android-support-v4.jar;...
>
>
> And it is ahead of the corrected support-v4. How can I fix this?
>
>
> On Wednesday, May 21, 2014 12:05:27 PM UTC+8, Xi Shen wrote:
>>
>> Hi,
>>
>> My project was build by Android Studio and uses the Gradle build system. 
>> The project can build correctly with Gradle. Now I want to add Scala 
>> support into it. When I ran "sbt compile", I got the following error:
>>
>> [error] /path/to/my/project/file.java:182: cannot find symbol
>> [error] symbol  : method getActionProvider(android.view.MenuItem)
>> [error] location: class android.support.v4.view.MenuItemCompat
>> [error]                 MenuItemCompat.getActionProvider(item);
>> [error]                               ^
>>
>>
>> My entire *build.sbt* file:
>>
>> import sbt._
>> import sbt.Keys._
>>
>> import android.Keys._
>> import android.Dependencies.{apklib,aar}
>>
>>
>> android.Plugin.androidBuild
>>
>> platformTarget in Android := "android-19"
>>
>> minSdkVersion in Android := 9
>>
>> targetSdkVersion in Android := 19
>>
>> name := "app"
>>
>> version := "1.0"
>>
>> scalaVersion := "2.10.3"
>>
>> libraryDependencies ++= Seq(
>>   *"com.android.support" % "support-v4" % "19.1.0",*
>>   aar("com.android.support" % "appcompat-v7" % "19.1.0"),
>>   "com.nostra13.universalimageloader" % "universal-image-loader" % 
>> "1.9.1",
>>   apklib("com.viewpagerindicator" % "library" % "2.4.1"),
>>   "com.google.guava" % "guava" % "17.0",
>>   "com.squareup" % "otto" % "1.3.4",
>>   aar("com.github.castorflex.smoothprogressbar" % "library" % "0.5.1"),
>>   aar("com.github.chrisbanes.actionbarpulltorefresh" % "library" % 
>> "0.9.9"),
>>   aar("com.github.chrisbanes.actionbarpulltorefresh" % "extra-abc" % 
>> "0.9.9"),
>>   aar("com.github.chrisbanes.photoview" % "library" % "1.2.3"),
>>   "org.jsoup" % "jsoup" % "1.7.3",
>>   "com.google.oauth-client" % "google-oauth-client" % "1.17.0-rc",
>>   "com.google.http-client" % "google-http-client-jackson2" % "1.18.0-rc",
>>   "com.google.inject" % "guice" % "3.0" classifier "no_aop",
>>   aar("com.google.android.gms" % "play-services" % "4.3.23"))
>>
>> javacOptions in Compile += "-deprecation"
>>
>> scalacOptions in Compile += "-deprecation"
>>
>>
>> This is a single project. So I only have one build.sbt, no build.scala 
>> file. I guess this is fine?
>>
>>
>> Thank you,
>> David
>>  
>>
>

-- 
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