Lotti

Almora

Active Member
Licensed User
Longtime User
hi..
this example does not work on android 6.
The animation has an image but it does not play.
works on android 8, android 9.
I couldn't find the reason.
the error message does not appear.
I tried it on two different devices. it has animation but it does not play.
thanks..
 

DonManfred

Expert
Licensed User
Longtime User
Please create a new thread for any Question/Issue you have!
 

vhd_bgh

Member
hi
why it doesn't work on android 4.0.4 ?
B4X:
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:b4a.example
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
main_activity_create (java line: 343)
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
    at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
    at b4a.example.main._activity_create(main.java:343)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
    at b4a.example.main.afterFirstLayout(main.java:104)
    at b4a.example.main.access$000(main.java:17)
    at b4a.example.main$WaitForLayout.run(main.java:82)
    at android.os.Handler.handleCallback(Handler.java:605)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4441)
    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:784)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
    at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:64)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:162)
    ... 17 more
Caused by: java.lang.NoClassDefFoundError: com.airbnb.lottie.utils.LottieValueAnimator
    at com.airbnb.lottie.LottieDrawable.<init>(LottieDrawable.java:63)
    at com.airbnb.lottie.LottieAnimationView.<init>(LottieAnimationView.java:98)
    at de.donmanfred.LottieAnimationViewwrapper._initialize(LottieAnimationViewwrapper.java:69)
    ... 21 more
** Activity (main) Resume **
 
Last edited:

Johan Hormaza

Well-Known Member
Licensed User
Longtime User
Hello friend, now last time this error is appearing. What can be?

But it fails when I enable the OkHttpUtils2 library, it seems they can't co-exist together as they both work fine individually.

Thanks!!

1643643843177.png
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
What can be?
Tell me. What have you changed?
Does it work with the files provided and using java 8 or 11?

Have you tried to use this one instead? It is updated much more recently.
 

Johan Hormaza

Well-Known Member
Licensed User
Longtime User
This configuration. From the last version of B4A it started to bother when both Libraries are enabled. (OkHttpsUtil and Lottie)
1643725963605.png




Have you tried to use this one instead? It is updated much more recently.
I have already tried it but it is not compatible with all Lottie designs and I had a lot of problems.
 
Top