aah nvm, looking again those missing classes are annotations. Got curious
where this cropped up:

https://android.googlesource.com/platform/frameworks/support.git/+/75aea14c26565d3fde46c4ce410f5c384c42162c
https://developer.android.com/reference/android/support/annotation/IntDef.html

Note the example for IntDef... NavigationMode

the annotation is to force use of specific const values on params. Doesn't
really explain why there's references to missing classes in the support
jars, should probably file a bug report regarding the builds as I dont even
see class defs in the latest support lib source.


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

> well I noticed the two inner class visits on v20 that weren't present in
> v19 but I thought the annotation differences were just autofixing
> potentially nullable strings on other methods. Either way, I could see why
> scalac would be complaining and could only make the wild guess that the
> dalvik compiler doesn't care.
>
>
> On Mon, Jul 21, 2014 at 6:46 PM, Perry Nguyen <[email protected]> wrote:
>
>> It seems related to the new annotations.zip that's part of the aar... I
>> have no idea what it's supposed to be doing.
>>
>>
>> On Mon, Jul 21, 2014 at 4:40 PM, Perry Nguyen <[email protected]> wrote:
>>
>>> 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 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.

Reply via email to