I am using android-sdk-plugin version 1.2.14 from 
https://github.com/pfn/android-sdk-plugin

I have been struggling to get rid of these errors at runtime:

no matching constructor found on class 
akka.persistence.DeliveredByChannelBatching for arguments [class 
akka.actor.RepointableActorRef, class akka.persistence.PersistenceSettings]
&
actor name [snapshot-store] is not unique!

(See full log output here: http://pastebin.com/uHqwWYbJ)

I tried with this configuration: http://pastie.org/9108972
to avoid that proguard is cutting the above constructor, but it is not 
working.

My full build.sbt is here: http://pastebin.com/zDfjDFdU

I think the constructor that is wanted at runtime is **private**: 
https://github.com/akka/akka/blob/master/akka-persistence/src/main/scala/akka/persistence/PersistentChannel.scala#L201
Don't know if that detail deserves a different proguard configuration

Here is the output of javap (on my classes.proguard.jar)

javap -classpath ./target/android-bin/classes.proguard.jar 
akka.persistence.DeliveredByPersistentChannelBatching
Compiled from "PersistentChannel.scala"
public class akka.persistence.DeliveredByPersistentChannelBatching 
implements akka.actor.Actor {
  public final akka.actor.ActorRef 
akka$persistence$DeliveredByPersistentChannelBatching$$journal;
  public akka.actor.ActorContext context();
  public final akka.actor.ActorRef self();
  public void 
akka$actor$Actor$_setter_$context_$eq(akka.actor.ActorContext);
  public final void akka$actor$Actor$_setter_$self_$eq(akka.actor.ActorRef);
  public final akka.actor.ActorRef sender();
  public void aroundReceive(scala.PartialFunction<java.lang.Object, 
scala.runtime.BoxedUnit>, java.lang.Object);
  public void aroundPreStart();
  public void aroundPostStop();
  public void aroundPreRestart(java.lang.Throwable, 
scala.Option<java.lang.Object>);
  public void aroundPostRestart(java.lang.Throwable);
  public akka.actor.SupervisorStrategy supervisorStrategy();
  public void preStart() throws java.lang.Exception;
  public void postStop() throws java.lang.Exception;
  public void preRestart(java.lang.Throwable, 
scala.Option<java.lang.Object>) throws java.lang.Exception;
  public void postRestart(java.lang.Throwable) throws java.lang.Exception;
  public void unhandled(java.lang.Object);
  public boolean 
akka$persistence$DeliveredByPersistentChannelBatching$$publish();
  public boolean 
akka$persistence$DeliveredByPersistentChannelBatching$$batching();
  public void 
akka$persistence$DeliveredByPersistentChannelBatching$$batching_$eq(boolean);
  public 
scala.collection.immutable.Vector<akka.persistence.DeliveredByPersistentChannel>
 
akka$persistence$DeliveredByPersistentChannelBatching$$batch();
  public scala.PartialFunction<java.lang.Object, scala.runtime.BoxedUnit> 
receive();
  public void addToBatch(akka.persistence.DeliveredByPersistentChannel);
  public boolean maxBatchSizeReached();
  public void journalBatch();
}


Thanks for any hint. I don't know what to do...

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