Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flutter_lottie example not working giving error. Dart Error: Unhandled exception: #29

Open
rahulsinghk opened this issue Feb 8, 2020 · 0 comments

Comments

@rahulsinghk
Copy link

i tried the flutter_lottie exmaple avilable in the code but got the error,

I/flutter (11371): Creating Method Channel convictiontech/flutter_lottie_0 E/flutter (11371): [ERROR:flutter/shell/common/shell.cc(199)] Dart Error: Unhandled exception: E/flutter (11371): PlatformException(error, java.lang.IllegalStateException: Unable to parse composition E/flutter (11371): at com.airbnb.lottie.LottieAnimationView$2.onResult(LottieAnimationView.java:68) E/flutter (11371): at com.airbnb.lottie.LottieAnimationView$2.onResult(LottieAnimationView.java:66) E/flutter (11371): at com.airbnb.lottie.LottieTask.addFailureListener(LottieTask.java:111) E/flutter (11371): at com.airbnb.lottie.LottieAnimationView.setCompositionTask(LottieAnimationView.java:386) E/flutter (11371): at com.airbnb.lottie.LottieAnimationView.setAnimation(LottieAnimationView.java:338) E/flutter (11371): at com.example.flutter_lottie.LottieView.create(LottieView.java:68) E/flutter (11371): at com.example.flutter_lottie.LottieView.<init>(LottieView.java:38) E/flutter (11371): at com.example.flutter_lottie.LottieViewFactory.create(LottieViewFactory.java:20) E/flutter (11371): at io.flutter.plugin.platform.SingleViewPresentation.onCreate(SingleViewPresentation.java:174) E/flutter (11371): at android.app.Dialog.dispatchOnCreate(Dialog.java:407) E/flutter (11371): at android.app.Dialog.show(Dialog.java:302) E/flutter (11371): at android.app.Presentation.show(Presentation.java:249) E/flutter (11371): at io.flutter.plugin.platform.VirtualDisplayController.<init>(VirtualDisplayController.java:93) E/flutter (11371): at io.flutter.plugin.platform.VirtualDisplayController.create(VirtualDisplayController.java:53) E/flutter (11371): at io.flutter.plugin.platform.PlatformViewsController$1.createPlatformView(PlatformViewsController.java:105) E/flutter (11371): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:96) E/flutter (11371): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:60) E/flutter (11371): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:231) E/flutter (11371): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:93) E/flutter (11371): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:642) E/flutter (11371): at android.os.MessageQueue.nativePollOnce(Native Method) E/flutter (11371): at android.os.MessageQueue.next(MessageQueue.java:326) E/flutter (11371): at android.os.Looper.loop(Looper.java:160) E/flutter (11371): at android.app.ActivityThread.main(ActivityThread.java:6669) E/flutter (11371): at java.lang.reflect.Method.invoke(Native Method) E/flutter (11371): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) E/flutter (11371): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) E/flutter (11371): Caused by: java.io.FileNotFoundException: flutter_assets/assets/animations/donut.json E/flutter (11371): at android.content.res.AssetManager.nativeOpenAsset(Native Method) E/flutter (11371): at android.content.res.AssetManager.open(AssetManager.java:744) E/flutter (11371): at android.content.res.AssetManager.open(AssetManager.java:721) E/flutter (11371): at com.airbnb.lottie.LottieCompositionFactory.fromAssetSync(LottieCompositionFactory.java:100) E/flutter (11371): at com.airbnb.lottie.LottieCompositionFactory$1.call(LottieCompositionFactory.java:81) E/flutter (11371): at com.airbnb.lottie.LottieCompositionFactory$1.call(LottieCompositionFactory.java:79) E/flutter (11371): at java.util.concurrent.FutureTask.run(FutureTask.java:266) E/flutter (11371): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) E/flutter (11371): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) E/flutter (11371): at java.lang.Thread.run(Thread.java:764) E/flutter (11371): , null)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant