Problem launching Android app

Hi,

I'd like to launch an Android app.  It uses the android-support-v7-appcompat library.

Here is the error that appears in the Messages from make:

scala: Error: android.support.v7.appcompat.R and android.support.v7.appcompat.R$array disagree on InnerClasses attribute
java.lang.IncompatibleClassChangeError: android.support.v7.appcompat.R and android.support.v7.appcompat.R$array disagree on InnerClasses attribute
     at java.lang.Class.getDeclaringClass(Native Method)
     at java.lang.Class.getEnclosingClass(Class.java:1127)
     at sbt.ClassToAPI$.isTopLevel(ClassToAPI.scala:36)
     at sbt.ClassToAPI$$anonfun$3.apply(ClassToAPI.scala:16)
     at sbt.ClassToAPI$$anonfun$3.apply(ClassToAPI.scala:16)
     at scala.collection.TraversableLike$$anonfun$filter$1.apply(TraversableLike.scala:264)
     at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
     at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
     at scala.collection.TraversableLike$class.filter(TraversableLike.scala:263)
     at scala.collection.AbstractTraversable.filter(Traversable.scala:105)
     at sbt.ClassToAPI$.apply(ClassToAPI.scala:16)
     at sbt.compiler.AggressiveCompile$$anonfun$8.sbt$compiler$AggressiveCompile$$anonfun$$readAPI$1(AggressiveCompile.scala:109)
     at sbt.compiler.AggressiveCompile$$anonfun$8$$anonfun$compileJava$1$2$$anonfun$apply$mcV$sp$1$$anonfun$apply$8.apply(AggressiveCompile.scala:114)
     at sbt.compiler.AggressiveCompile$$anonfun$8$$anonfun$compileJava$1$2$$anonfun$apply$mcV$sp$1$$anonfun$apply$8.apply(AggressiveCompile.scala:114)
     at sbt.classfile.Analyze$$anonfun$apply$8.apply(Analyze.scala:67)
     at sbt.classfile.Analyze$$anonfun$apply$8.apply(Analyze.scala:43)
     at scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98)
     at scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98)
     at scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:226)
     at scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:39)
     at scala.collection.mutable.HashMap.foreach(HashMap.scala:98)
     at sbt.classfile.Analyze$.apply(Analyze.scala:43)
     at sbt.compiler.AggressiveCompile$$anonfun$8$$anonfun$compileJava$1$2$$anonfun$apply$mcV$sp$1.apply(AggressiveCompile.scala:114)
     at sbt.compiler.AggressiveCompile$$anonfun$8$$anonfun$compileJava$1$2$$anonfun$apply$mcV$sp$1.apply(AggressiveCompile.scala:112)
     at scala.collection.immutable.List.foreach(List.scala:309)
     at sbt.compiler.AggressiveCompile$$anonfun$8$$anonfun$compileJava$1$2.apply$mcV$sp(AggressiveCompile.scala:112)
     at sbt.compiler.AggressiveCompile$$anonfun$8$$anonfun$compileJava$1$2.apply(AggressiveCompile.scala:112)
     at sbt.compiler.AggressiveCompile$$anonfun$8$$anonfun$compileJava$1$2.apply(AggressiveCompile.scala:112)
     at sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:137)
     at sbt.compiler.AggressiveCompile$$anonfun$8.compileJava$1(AggressiveCompile.scala:111)
     at sbt.compiler.AggressiveCompile$$anonfun$8.apply(AggressiveCompile.scala:118)
     at sbt.compiler.AggressiveCompile$$anonfun$8.apply(AggressiveCompile.scala:61)
     at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:24)
     at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:22)
     at sbt.inc.Incremental$.cycle(Incremental.scala:46)
     at sbt.inc.Incremental$.compile(Incremental.scala:29)
     at sbt.inc.IncrementalCompile$.apply(Compile.scala:20)
     at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:128)
     at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:44)
     at org.jetbrains.jps.incremental.scala.local.CompilerImpl.compile(CompilerImpl.scala:63)
     at org.jetbrains.jps.incremental.scala.local.LocalServer.compile(LocalServer.scala:26)
     at org.jetbrains.jps.incremental.scala.remote.Main$.nailMain(Main.scala:31)
     at org.jetbrains.jps.incremental.scala.remote.Main.nailMain(Main.scala)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:606)
     at com.martiansoftware.nailgun.NGSession.run(Unknown Source)


I have installed the Scala plugins, but this app is just plain Java.

I'm using latest version from IDEA under Linux.

Any help please?

0
2 comments
Avatar
Permanently deleted user

This error disappears if I disable the Scala plugin.

But I need this plugin for other modules. :(

Any workaround?

0
Avatar
Permanently deleted user

I think the Scala plugin forum is more appropiate:

http://devnet.jetbrains.com/thread/451030

0

Please sign in to leave a comment.