Not sure if anyone else has encountered it yet, but ART on Android 4.4 
seems to have some issues so far with most likely the macros used to 
implement the Async/Await library. 

Whenever I attempt to use the async/await library, I get a message similar 
to the following:


java.lang.IncompatibleClassChangeError: The method 'java.lang.String 
java.lang.Object.toString()' was expected to be of type interface but 
instead was found to be of type virtual (declaration of 
'java.lang.reflect.ArtMethod' appears in /system/framework/core-libart.jar)

            at 
scala.collection.immutable.StringLike$class.toInt(StringLike.scala:241)
            at 
scala.collection.immutable.StringOps.toInt(StringOps.scala:30)
            at 
scala.concurrent.impl.ExecutionContextImpl.getInt$1(ExecutionContextImpl.scala:64)
            at 
scala.concurrent.impl.ExecutionContextImpl.createExecutorService(ExecutionContextImpl.scala:70)
            at 
scala.concurrent.impl.ExecutionContextImpl.<init>(ExecutionContextImpl.scala:28)
            at 
scala.concurrent.ExecutionContext$Implicits$.global$lzycompute(ExecutionContext.scala:104)
            at 
scala.concurrent.ExecutionContext$Implicits$.global(ExecutionContext.scala:104)
            at testCmd() ...


Was just curious to see if anyone else had encountered it or can duplicate 
it. 

The coded executed shouldn't matter too much to trigger the problem 
(because it triggers on the declaration line of the method), but here's a 
test snippet:

    def testCmd(): Future[String] = async {
        "ls /sdcard".!!
    }


The error triggers on the testCmd() declaration line when the method is 
called from elsewhere.

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