Skip to content

Could not get unknown property 'flutter' for extension 'android' of type com.android.build.gradle.LibraryExtension. #1920

@zladnrms

Description

@zladnrms

Before creating an issue, make sure that you are on the latest file_picker version and that there aren't already any similar opened inssues. Also, check if it isn't described on the Wiki, specially on Troubleshooting page.

Also, sometimes a simple flutter clean and flutter build again with latest file_picker version, may end up by fixing cached issues, so I encourage you to first do so.

Describe the bug
A clear and concise description of what the bug is. If the issue happens to be on Android, please make sure that it also happens with a different device/simulator and/or version.

Platform

  • [O] Android
  • iOS
  • Web
  • Desktop

Platform OS version
Android

How are you picking?

==================================================================

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':file_picker'.
> Failed to notify project evaluation listener.
   > Cannot invoke method substring() on null object
   > Android Gradle Plugin: project ':file_picker' does not specify `compileSdk` in build.gradle (/Users/..../.pub-cache/hosted/pub.dev/file_picker-10.3.6/android/build.gradle).

i think maybe occured by compileSdk flutter.compileSdkVersion in android/build.gradle.

Details to reproduce the issue
Provide all the details to reproduce the issue.

Error Log
Please, post the full console log of your issue, if applicable.

Screenshots and/or video
If applicable, add screenshots or video to help explain your problem.

Flutter Version details
Please, post the output of your flutter doctor -v, preferably, while running the issued device/simulator.

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 maintainer

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions