post a clean build log. also does android:package behave any differently?

On Thu Nov 06 2014 at 8:19:00 AM alessio crestani <
[email protected]> wrote:

> If You're asking me the error log, It's:
> > android:apkbuild
> [info] Compiling 110 Scala sources and 48 Java sources to
> /Users/alessio.crestani/Documents/repos/fourmeandroidapp/target/scala-2.10/classes...
> [error]
> /Users/alessio.crestani/Documents/repos/fourmeandroidapp/src/main/scala/it/newvision/fourme/JavaLib/RequireLoginActivity.scala:35:
> not found: value R
> [error]         if(getResources.getBoolean(R.bool.portrait_only)){
> [error]                                    ^
> [error]
> /Users/alessio.crestani/Documents/repos/fourmeandroidapp/src/main/scala/it/newvision/fourme/JavaLib/RequireLoginFragActivity.scala:57:
> not found: value R
> [error]     setContentView(R.layout.main)
> [error]                    ^
> [error]
> /Users/alessio.crestani/Documents/repos/fourmeandroidapp/src/main/scala/it/newvision/fourme/JavaLib/RequireLoginFragActivity.scala:78:
> not found: value R
> [error]     if(getResources.getBoolean(R.bool.portrait_only)){
> [error]                                ^
>
> And on and on and on..
>
> Il giorno giovedì 6 novembre 2014 17:15:39 UTC+1, alessio crestani ha
> scritto:
>
>> Thanks.
>> But now I've 1200 erors that with android:apkbuild it doesn't found "not
>> found: value R"
>>
>>
>> Il giorno giovedì 6 novembre 2014 16:59:26 UTC+1, pfn ha scritto:
>>>
>>> AndroidBuild extends android.AutoBuild
>>>
>>> or add android.Plugin.androidBuild to settings
>>>
>>> On Thu, Nov 6, 2014 at 7:57 AM, alessio crestani <[email protected]>
>>> wrote:
>>>
>>>> I'm changing the addon for SBT with Android from https://github.com/
>>>> jberkel/android-plugin tohttps://github.com/pfn/android-sdk-plugin but
>>>> now, if I compile my project, I receive a lot of error like:
>>>>
>>>> [error] object util is not a member of package android[error] import 
>>>> android.util.Log
>>>>
>>>> my build project is:
>>>>
>>>> import android.Keys._import sbt.Keys._import sbt._
>>>>
>>>> object AndroidBuild extends Build {
>>>>
>>>>
>>>>   lazy val androidScala = Project(
>>>>      "FourMeAndroid",
>>>>       file("."),
>>>>       settings = fullAndroidSettings
>>>>     )
>>>>
>>>>   lazy val fullAndroidSettings =
>>>>      Defaults.defaultSettings ++
>>>>      proguardSettings ++
>>>>      Seq(
>>>>       dexMaxHeap in Android := "2048m",
>>>>        platformTarget in Android := "android-19",
>>>>       scalaVersion := Version.scala,
>>>>       scalacOptions ++= Seq(
>>>>       "-unchecked",
>>>>       "-deprecation",
>>>>       "-Xlint",
>>>>       "-language:_",
>>>>     "-encoding", "UTF-8"
>>>>   ),
>>>>   libraryDependencies ++= Seq(
>>>>     "it.newvision.nv4me.notificationcenter" % "4me-nc-model_2.10.0" % 
>>>> "0.5.5" excludeAll(ExclusionRule(organization = "org.codehaus.jackson"), 
>>>> ExclusionRule(organization = "org.slf4j")),
>>>>     "it.newvision.nvp" % "xcontents-core-model_2.10.0" % "4.2.0" 
>>>> excludeAll(ExclusionRule(organization = "org.codehaus.jackson"), 
>>>> ExclusionRule(organization = "org.slf4j")),
>>>>     "it.newvision.nvp" % "nvp-sso-core-model_2.10.0" % "4.2.0" 
>>>> excludeAll(ExclusionRule(organization = "org.codehaus.jackson"), 
>>>> ExclusionRule(organization = "org.slf4j")),
>>>>     "it.newvision.nvp" % "xadmin-core-model_2.10.0" % "4.2.0" 
>>>> excludeAll(ExclusionRule(organization = "org.codehaus.jackson"), 
>>>> ExclusionRule(organization = "org.slf4j")),
>>>>     "it.newvision.nvp" % "xpackager-core-model_2.10.0" % "4.2.0" 
>>>> excludeAll(ExclusionRule(organization = "org.codehaus.jackson"), 
>>>> ExclusionRule(organization = "org.slf4j")),
>>>>     "it.newvision.4me.ue" % "4me-ue-model_2.10.0" % "1.3" 
>>>> excludeAll(ExclusionRule(organization = "org.codehaus.jackson"), 
>>>> ExclusionRule(organization = "org.slf4j")),
>>>>     "com.typesafe.akka" % "akka-actor_2.10" % "2.1.4",
>>>>     "commons-lang" % "commons-lang" % "2.6",
>>>>     "com.google.android" % "support-v4" % "13",
>>>>     "com.actionbarsherlock" % "actionbarsherlock" % "4.2.0",
>>>>     "org.apache.httpcomponents" % "httpmime" % "4.1",
>>>>     "org.codehaus.jackson" % "jackson-mapper-asl" % "1.9.12",
>>>>     "com.koushikdutta.android-async" % "androidasync" % "1.1",
>>>>     "com.nostra13.universalimageloader" % "universal-image-loader" % 
>>>> "1.9.0",
>>>>     "org.apache.commons" % "commons-lang3" % "3.3",
>>>>     "ch.acra" % "acra" % "4.5.0",
>>>>     "com.squareup.picasso" % "picasso" % "2.3.4"
>>>>   ),
>>>>   resolvers ++= Seq(
>>>>     "maven-repo" at "file://\\\\pz-ci\\ci_repository\\maven_repository",
>>>>     "maven-repo-local-additions" at 
>>>> "file://\\\\pz-ci\\ci_repository\\maven-repo-local-additions"
>>>>   ))
>>>>
>>>>
>>>>   val proguardSettings = Seq(
>>>>      useProguard in Android := true
>>>>   )
>>>>
>>>>   val pgOptions = Seq("-dontoptimize -dontpreverify -dontobfuscate", // 
>>>> shrinking only"-dontskipnonpubliclibraryclassmembers", // keep Jackson's 
>>>> internal classes"-dontskipnonpubliclibraryclasses", // keep Jackson's 
>>>> internal classes"-keepattributes *Annotation*.", // keep Jackson Json 
>>>> Annotations."-keepclassmembers enum * { public static **[] values(); 
>>>> public static ** valueOf(java.lang.String); }","-keep public class 
>>>> it.newvision.nvp.*.services.model.**","-keep public class 
>>>> it.newvision.nvp.*.model.**","-keep interface android.support.v4.app.** { 
>>>> *; }","-keep class scala.collection.SeqLike { public protected *; 
>>>> }","-keep public class com.sun.jersey.core.util.MultivaluedMapImpl","-keep 
>>>> public class com.sun.jersey.api.client.config.ClientConfig","-keep public 
>>>> class com.sun.jersey.api.client.config.DefaultClientConfig","-keep public 
>>>> class org.codehaus.jackson.map.JsonSerializer","-keep public class 
>>>> org.codehaus.jackson.map.JsonDeserializer","-keep public class 
>>>> akka.actor.**  { public protected *; }","-keep public class akka.event.**  
>>>> { public protected *; }","-dontnote **")
>>>>
>>>>   unmanagedBase <<= baseDirectory { base => base / "lib"}
>>>>
>>>>    object Version {
>>>>     val scala = "2.10.2"
>>>>    }
>>>>
>>>>
>>>>  }
>>>>
>>>>  --
>>>> 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.

Reply via email to