Well...
here's a big gotcha. appcompat-v7:20.0.0 and 21-rc both have references to
classes that don't exist. e.g. ActionBar$DisplayOptions as you see in your
log there. I'd have to guess that 20.0.0 and 21-rc are both broken.


On Mon, Jul 21, 2014 at 4:12 PM, Daniel Skinner <[email protected]> wrote:

> it also happens with v20.0.0 of appcompat. Does not occur with v19.0.1
> appcompat. Compiling with scala 2.10.4 is a bit more verbose
>
> [error]         during phase: typer
> [error]      library version: version 2.10.4
> [error]     compiler version: version 2.10.4
> [error]
> [error]   last tree to typer: Ident(ActionBarActivity)
> [error]               symbol: <none> (flags: )
> [error]    symbol definition: <none>
> [error]        symbol owners:
> [error]       context owners: class MainActivity -> package foo
> [error]
> [error] == Enclosing template or block ==
> [error]
> [error] ClassDef( // class MainActivity extends  in package foo
> [error]   0
> [error]   "MainActivity"
> [error]   []
> [error]   Template(
> [error]     "ActionBarActivity" // parents
> [error]     ValDef(
> [error]       private
> [error]       "_"
> [error]       <tpt>
> [error]       <empty>
> [error]     )
> [error]     DefDef(
> [error]       0
> [error]       "<init>"
> [error]       []
> [error]       List(Nil)
> [error]       <tpt>
> [error]       Block(
> [error]         Apply(
> [error]           super."<init>"
> [error]           Nil
> [error]         )
> [error]         ()
> [error]       )
> [error]     )
> [error]   )
> [error] )
> [error]
> [error] uncaught exception during compilation: java.lang.AssertionError
> [trace] Stack trace suppressed: run last compile:compile for the full
> output.
> [error] (compile:compile) java.lang.AssertionError:
> android.support.v7.app.ActionBar$DisplayOptions
>
>
> On Mon, Jul 21, 2014 at 6:03 PM, Perry Nguyen <[email protected]> wrote:
>
>> It appears to be a scalac bug, something in the bytecode is no good.
>>
>>
>> On Mon, Jul 21, 2014 at 3:57 PM, Daniel Skinner <[email protected]> wrote:
>>
>>> Not sure if anyone has seen this and may have an answer. This is a
>>> project with a target of L, min sdk of 9, and uses appcompat-v7 21-rc1.
>>> When attempting to compile in the presence of an ActionBarActivity, compile
>>> throws an AssertionError. This doesn't happen with FragmentActivity (which
>>> is from support-v4)
>>>
>>> > compile
>>> [info] Updating {file:/home/daniel/local/src/thesmythgroup.com/foo/}foo.
>>> <http://thesmythgroup.com/foo/%7Dfoo.>..
>>> [info] Resolving jline#jline;2.11 ...
>>> [info] Done updating.
>>> [info] Unpacking aar: support-v4-21.0.0-rc1.aar to
>>> com.android.support-support-v4-21.0.0-rc1
>>> [info] Unpacking aar: appcompat-v7-21.0.0-rc1.aar to
>>> com.android.support-appcompat-v7-21.0.0-rc1
>>> [info] Collecting resources
>>> [info] Performing full resource merge
>>> [info] Generating R.java
>>> [info] Rebuilding all classes because R.java has changed
>>> [info] Compiling 1 Scala source and 3 Java sources to
>>> /home/daniel/local/src/thesmythgroup.com/foo/target/android-bin/classes.
>>> ..
>>> [trace] Stack trace suppressed: run last compile:compile for the full
>>> output.
>>> [error] (compile:compile) java.lang.AssertionError:
>>> android.support.v7.app.ActionBar$NavigationMode
>>> [error] Total time: 5 s, completed Jul 21, 2014 5:46:02 PM
>>>
>>> *# build.sbt*
>>>
>>> import android.Keys._
>>>
>>> import android.Dependencies.aar
>>>
>>> android.Plugin.androidBuild
>>>
>>> name := "foo"
>>>
>>> scalaVersion := "2.11.1"
>>>
>>> platformTarget in Android := "android-L"
>>>
>>> mergeManifests in Android := false
>>>
>>> libraryDependencies ++= Seq(
>>>   aar("com.android.support" % "support-v4" % "21.0.0-rc1"),
>>>   aar("com.android.support" % "appcompat-v7" % "21.0.0-rc1")
>>> )
>>>
>>> *# project/build.properties*
>>>
>>> sbt.version=0.13.5
>>>
>>> *# project/plugins.sbt*
>>>
>>> addSbtPlugin("com.hanhuy.sbt" % "android-sdk-plugin" % "1.3.2")
>>>
>>> *# src/main/AndroidManifest.xml*
>>>
>>> <?xml version="1.0" encoding="utf-8"?>
>>> <manifest xmlns:android="http://schemas.android.com/apk/res/android";
>>>     package="com.foo"
>>>     android:versionCode="1"
>>>     android:versionName="1.0">
>>>     <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="L" />
>>>     <application>
>>>         <activity android:name=".MainActivity" android:label="foo"/>
>>>     </application>
>>> </manifest>
>>>
>>> *# src/main/scala/com/foo/MainActivity.scala*
>>>
>>> package com.foo
>>>
>>> import android.support.v7.app.ActionBarActivity
>>>
>>> class MainActivity extends ActionBarActivity
>>>
>>> --
>>> 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 a topic in the
>> Google Groups "scala-on-android" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/scala-on-android/zVhoIBqfzZk/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, 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