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