Skip to content

build fails with register unknown symbol #1645

Description

@seankang92129

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

  • [ X] Android
  • iOS
  • Web
  • Desktop

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    new issueAn issue that hasn't yet been seen from the maintainerstale

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions