I Think it's related with proguard. Can you help me to turn it off? 

пʼятниця, 21 жовтня 2016 р. 10:35:37 UTC+3 користувач Sania Sutula написав:
>
> Can't compile release version, because for the right work of the debug 
> app, i need to run twice:
> > sbt android:run 
>
> I can correctly run the app after two launches, only with version 1.4.x. 
> On the newer it has the same issue.
> First time it returns the app with error after a launch
>
> 10-21 06:47:30.399 8943-8943/biz.aejis.facewatch.app W/System.err: 
> java.lang.NoSuchMethodException: sequence []
> 10-21 06:47:30.399 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> java.lang.Class.getConstructorOrMethod(Class.java:460)
> 10-21 06:47:30.399 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> java.lang.Class.getMethod(Class.java:915)
> 10-21 06:47:30.399 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> com.mobsandgeeks.saripaar.Reflector.getAttributeMethod(Reflector.java:52)
> 10-21 06:47:30.399 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> com.mobsandgeeks.saripaar.Registry.assertAttribute(Registry.java:237)
> 10-21 06:47:30.399 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> com.mobsandgeeks.saripaar.Registry.assertIsValidRuleAnnotation(Registry.java:226)
> 10-21 06:47:30.403 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> com.mobsandgeeks.saripaar.Registry.register(Registry.java:195)
> 10-21 06:47:30.403 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> com.mobsandgeeks.saripaar.Registry.register(Registry.java:132)
> 10-21 06:47:30.403 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> com.mobsandgeeks.saripaar.Validator.<clinit>(Validator.java:963)
> 10-21 06:47:30.403 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> biz.aejis.facewatch.app.screens.LoginActivity.biz
> $aejis$facewatch$app$screens$LoginActivity$$validator$lzycompute(LoginActivity.scala:38)
> 10-21 06:47:30.403 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> biz.aejis.facewatch.app.screens.LoginActivity.biz
> $aejis$facewatch$app$screens$LoginActivity$$validator(LoginActivity.scala:38)
> 10-21 06:47:30.403 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> biz.aejis.facewatch.app.screens.LoginActivity.onCreate(LoginActivity.scala:65)
> 10-21 06:47:30.403 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> android.app.Activity.performCreate(Activity.java:5008)
> 10-21 06:47:30.403 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
> 10-21 06:47:30.403 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
> 10-21 06:47:30.403 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
> 10-21 06:47:30.403 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> android.app.ActivityThread.access$600(ActivityThread.java:130)
> 10-21 06:47:30.403 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
> 10-21 06:47:30.403 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> android.os.Handler.dispatchMessage(Handler.java:99)
> 10-21 06:47:30.403 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> android.os.Looper.loop(Looper.java:137)
> 10-21 06:47:30.403 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> android.app.ActivityThread.main(ActivityThread.java:4745)
> 10-21 06:47:30.403 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> java.lang.reflect.Method.invokeNative(Native Method)
> 10-21 06:47:30.407 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> java.lang.reflect.Method.invoke(Method.java:511)
> 10-21 06:47:30.407 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
> 10-21 06:47:30.407 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> 10-21 06:47:30.407 8943-8943/biz.aejis.facewatch.app W/System.err:     at 
> dalvik.system.NativeStart.main(Native Method)
> 10-21 06:47:30.407 8943-8943/biz.aejis.facewatch.app W/dalvikvm: Exception 
> Lcom/mobsandgeeks/saripaar/exception/SaripaarViolationException; thrown 
> while initializing Lcom/mobsandgeeks/saripaar/Validator;
> 10-21 06:47:30.407 8943-8943/biz.aejis.facewatch.app D/AndroidRuntime: 
> Shutting down VM
> 10-21 06:47:30.407 8943-8943/biz.aejis.facewatch.app W/dalvikvm: 
> threadid=1: thread exiting with uncaught exception (group=0xa62b3288)
> 10-21 06:47:30.415 8943-8943/biz.aejis.facewatch.app E/AndroidRuntime: 
> FATAL EXCEPTION: main
>                                                                       
>  java.lang.ExceptionInInitializerError
>                                                                           
>  at biz.aejis.facewatch.app.screens.LoginActivity.biz
> $aejis$facewatch$app$screens$LoginActivity$$validator$lzycompute(LoginActivity.scala:38)
>                                                                           
>  at biz.aejis.facewatch.app.screens.LoginActivity.biz
> $aejis$facewatch$app$screens$LoginActivity$$validator(LoginActivity.scala:38)
>                                                                           
>  at 
> biz.aejis.facewatch.app.screens.LoginActivity.onCreate(LoginActivity.scala:65)
>                                                                           
>  at android.app.Activity.performCreate(Activity.java:5008)
>                                                                           
>  at 
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
>                                                                           
>  at 
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
>                                                                           
>  at 
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
>                                                                           
>  at android.app.ActivityThread.access$600(ActivityThread.java:130)
>                                                                           
>  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
>                                                                           
>  at android.os.Handler.dispatchMessage(Handler.java:99)
>                                                                           
>  at android.os.Looper.loop(Looper.java:137)
>                                                                           
>  at android.app.ActivityThread.main(ActivityThread.java:4745)
>                                                                           
>  at java.lang.reflect.Method.invokeNative(Native Method)
>                                                                           
>  at java.lang.reflect.Method.invoke(Method.java:511)
>                                                                           
>  at 
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
>                                                                           
>  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
>                                                                           
>  at dalvik.system.NativeStart.main(Native Method)
>                                                                         
> Caused by: com.mobsandgeeks.saripaar.exception.SaripaarViolationException: 
> 'com.mobsandgeeks.saripaar.annotation.AssertFalse' requires the 'sequence' 
> attribute.
>                                                                           
>  at com.mobsandgeeks.saripaar.Registry.assertAttribute(Registry.java:242)
>                                                                           
>  at 
> com.mobsandgeeks.saripaar.Registry.assertIsValidRuleAnnotation(Registry.java:226)
>                                                                           
>  at com.mobsandgeeks.saripaar.Registry.register(Registry.java:195)
>                                                                           
>  at com.mobsandgeeks.saripaar.Registry.register(Registry.java:132)
>                                                                           
>  at com.mobsandgeeks.saripaar.Validator.<clinit>(Validator.java:963)
>                                                                           
>  at biz.aejis.facewatch.app.screens.LoginActivity.biz
> $aejis$facewatch$app$screens$LoginActivity$$validator$lzycompute(LoginActivity.scala:38)
>  
>                                                                           
>  at biz.aejis.facewatch.app.screens.LoginActivity.biz
> $aejis$facewatch$app$screens$LoginActivity$$validator(LoginActivity.scala:38) 
>                                                                           
>  at 
> biz.aejis.facewatch.app.screens.LoginActivity.onCreate(LoginActivity.scala:65)
>  
>                                                                           
>  at android.app.Activity.performCreate(Activity.java:5008) 
>                                                                           
>  at 
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079) 
>                                                                           
>  at 
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023) 
>                                                                           
>  at 
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084) 
>                                                                           
>  at android.app.ActivityThread.access$600(ActivityThread.java:130) 
>                                                                           
>  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195) 
>                                                                           
>  at android.os.Handler.dispatchMessage(Handler.java:99) 
>                                                                           
>  at android.os.Looper.loop(Looper.java:137) 
>                                                                           
>  at android.app.ActivityThread.main(ActivityThread.java:4745) 
>                                                                           
>  at java.lang.reflect.Method.invokeNative(Native Method) 
>                                                                           
>  at java.lang.reflect.Method.invoke(Method.java:511) 
>                                                                           
>  at 
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
>  
>                                                                           
>  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 
>                                                                           
>  at dalvik.system.NativeStart.main(Native Method) 
>
>
> But everything works fine after second launch. (1.4.x)
>
> First launch after clean android:release has such rows:
>
> [info] Generating maindexlist.txt
>       You should check if you need to specify additional program jars.
> [warn] Set mainDexClasses to improve build times:
> [warn]   dexMainClassesConfig := baseDirectory.value / 
> "copy-of-maindexlist.txt"
> [info] Generating dex, incremental=false, multidex=true
> [info] dex method count: 34928
> [info] Packaged: facewatch-release-unsigned.apk (9,93MB)
>
>
> Second: 
>
> [info] classes.proguard.jar is up-to-date
> [info] Packaged: facewatch-release-unsigned.apk (9,93MB)
> jar signed.
>
> A same story with debug on newer versions
>
>
>
>

-- 
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 scala-on-android+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to