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

Error when building for production #526

Closed
supardyke opened this issue Dec 1, 2020 · 1 comment
Closed

Error when building for production #526

supardyke opened this issue Dec 1, 2020 · 1 comment

Comments

@supardyke
Copy link

Below is the error that shows up when i run flutter build apk --verbose

`[ +7 ms] /Users/sd/.pub-cache/hosted/pub.dartlang.org/file_picker-1.12.0/android/src/main/java/com/mr/flutter/plugin/filepicker/FilePickerPlugin.java:20: error:
cannot find symbol
import io.flutter.embedding.engine.plugins.lifecycle.FlutterLifecycleAdapter;
^
symbol: class FlutterLifecycleAdapter
location: package io.flutter.embedding.engine.plugins.lifecycle
1 error

       FAILURE: Build failed with an exception.
       
       * What went wrong:
       Execution failed for task ':compileReleaseJavaWithJavac'.
       > Compilation failed; see the compiler error output for details.
       
       * Try:
       Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
       
       * Get more help at https://help.gradle.org
       
       BUILD FAILED in 6s

[ +24 ms] "flutter apk" took 252,377ms.
[ +47 ms] The plugin file_picker could not be built due to the issue above.
[ +11 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
#1 buildPluginsAsAar (package:flutter_tools/src/android/gradle.dart:848:7)
#2 _asyncErrorWrapperHelper.errorCallback (dart:async-patch/async_patch.dart:91:64)
#3 _rootRunBinary (dart:async/zone.dart:1214:47)
#4 _CustomZone.runBinary (dart:async/zone.dart:1107:19)
#5 _FutureListener.handleError (dart:async/future_impl.dart:157:20)
#6 Future._propagateToListeners.handleError (dart:async/future_impl.dart:708:47)
#7 Future._propagateToListeners (dart:async/future_impl.dart:729:24)
#8 Future._completeError (dart:async/future_impl.dart:537:5)
#9 _AsyncAwaitCompleter.completeError (dart:async-patch/async_patch.dart:47:15)
#10 buildGradleAar (package:flutter_tools/src/android/gradle.dart)
#11 _rootRunUnary (dart:async/zone.dart:1198:47)
#12 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#13 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#14 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#15 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#16 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#17 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
#18 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
#19 _DefaultProcessUtils.run (package:flutter_tools/src/base/process.dart)
#20 _rootRunUnary (dart:async/zone.dart:1198:47)
#21 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#22 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#23 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#24 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#25 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#26 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
#27 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
#28 _run (package:flutter_tools/src/base/error_handling_io.dart)
#29 _rootRunUnary (dart:async/zone.dart:1198:47)
#30 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#31 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#32 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#33 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#34 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#35 Future.wait. (dart:async/future.dart:414:23)
#36 _rootRunUnary (dart:async/zone.dart:1198:47)
#37 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#38 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#39 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#40 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#41 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#42 Future._asyncCompleteWithValue. (dart:async/future_impl.dart:567:7)
#43 _rootRun (dart:async/zone.dart:1190:13)
#44 _CustomZone.run (dart:async/zone.dart:1093:19)
#45 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#46 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
#47 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#48 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#49 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#50 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)`

@miguelpruivo
Copy link
Owner

Hi, you likely have a solution for it in the troubleshooting area.

Thank you.

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

2 participants