-
Notifications
You must be signed in to change notification settings - Fork 698
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
build fails with register unknown symbol #1645
Comments
same here |
I did the same thing with a flutter clean and then a flutter pub get and it stopped working. |
Duplicated topic. Check #1643 |
same issue |
FilePickerPlugin.java:257: error: cannot find symbol |
I just set in pubspec.yaml
|
Replace this line with this code if (activityBinding != null) { flutter clear this solved for me |
metekaganmusaak is correct. And according to waslost0;
This works. In the #1643 issue, they reverted to the closest downgrade; 8.1.4 That worked for me, even on flutter 3.27 and gradle of gradle-8.2.1-all.zip. |
I reverted to 8.1.4 since I have a daily pipeline build that worked the day before -- so I knew that it was very recent update from a dependency |
@miguelpruivo @sk92129 @waslost0 For latest Flutter version 3.27.0 . automatically overrider to file_picker: ^8.1.5 |
++ same issue for me |
Try |
@AliHaxxan2004 thanks bro. this is a new info for me. may be in latest version flutter include this feature. |
you can use this repo i have fixed the issue https://github.com/rufus-op/file_picker replace file_picker: 8.1.5 with file_picker: |
#1643 try this |
Using the newest version solves this issue: |
Describe the bug
On the azure devops pipeline, the build fails -- whereas it did not incur this problem before.
Running: flutter build apk --flavor MyFlavor
Platform
Platform OS version
Running on ubuntu build agent ubuntu-22.04
How are you picking?
on the android build
Details to reproduce the issue
Clean flutter build -- with cleared pub.dev cache
Error Log
/home/vsts/.pub-cache/hosted/pub.dev/file_picker-8.1.5/android/src/main/java/com/mr/flutter/plugin/filepicker/FilePickerPlugin.java:257: error: cannot find symbol
if (registrar != null) {
^
symbol: variable registrar
location: class FilePickerPlugin
/home/vsts/.pub-cache/hosted/pub.dev/file_picker-8.1.5/android/src/main/java/com/mr/flutter/plugin/filepicker/FilePickerPlugin.java:260: error: cannot find symbol
registrar.addActivityResultListener(this.delegate);
^
symbol: variable registrar
location: class FilePickerPlugin
Screenshots and/or video
na
Flutter Version details
3.24.3
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: