codegrue / flutter_material_pickers

A flutter package for displaying common picker dialogs.
https://pub.dev/packages/flutter_material_pickers
MIT License
98 stars 61 forks source link

A problem occurred configuring project ':file_picker'. #12

Closed WijdanMTak closed 3 years ago

WijdanMTak commented 3 years ago

Hello, whenI added your plugin the build failed for some reason. can you please help me to figure out what is the problem! I will provide you some info that may help you: android/build.gradle: ` buildscript { ext.kotlin_version = '1.3.50' repositories { google() maven { url 'https://dl.google.com/dl/android/maven2' } jcenter() }

dependencies {
    classpath 'com.android.tools.build:gradle:3.5.0'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

`

app/build.gradle:

compileSdkVersion 29 targetSdkVersion 29

details of the error is as follows:

FAILURE:` Build failed with an exception.

*` What went wrong:

A problem occurred configuring project ':file_picker'.

Could not resolve all artifacts for configuration ':file_picker:classpath'.

Could not find aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.3.1).

 Searched in the following locations:
     https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2-proto/0.3.1/aapt2-proto-0.3.1.jar

Failed to notify project evaluation listener.

Could not get unknown property 'android' for project ':file_picker' of type org.gradle.api.Project. Could not find method implementation() for arguments [project ':flutter_plugin_android_lifecycle'] on object of type

org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

  • 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.

BUILD FAILED in 582ms

Finished with error: Gradle task assembleDebug failed with exit code 1

`

codegrue commented 3 years ago

Does it build fine for iOS?

WijdanMTak commented 3 years ago

Actually, I haven't tried yet, now I just build for android. but I will start the test at the end of this week, and I will let you know with the results

codegrue commented 3 years ago

Upgraded it to use file_picker 2.0 and tested on iOS, Android, and Web.

MICKNICK911 commented 2 years ago

i am facing the same with no solution yet

codegrue commented 2 years ago

The file_picker is an included library. Try to get your project to build just with that to see if the incompatibility is there.

MICKNICK911 commented 2 years ago

please can you show me a sample code on how to implement the included library. I am really having a hard time going about it

codegrue commented 2 years ago

The project includes a sample app in the Example folder.

From: MICHAEL APPIAH @.> Sent: Friday, August 26, 2022 4:04 PM To: codegrue/flutter_material_pickers @.> Cc: CodeGrue @.>; State change @.> Subject: Re: [codegrue/flutter_material_pickers] A problem occurred configuring project ':file_picker'. (#12)

please can you show me a sample code on how to implement the included library. I am really having a hard time going about it

- Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcodegrue%2Fflutter_material_pickers%2Fissues%2F12%23issuecomment-1228883515&data=05%7C01%7C%7C30d6653fae3f4d2bbc5708da879e2ca5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637971410681982066%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=uVrKp3P%2BZRy%2Bka5iBaqPWhKPlTguxEsJU8DuvGlhbqk%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAWHSOATZDZTJYANG3RFDW3V3EPMPANCNFSM4RHYUHVQ&data=05%7C01%7C%7C30d6653fae3f4d2bbc5708da879e2ca5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637971410681982066%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=aT0ZvfvLjFHDUPhs2rkg2XLHl6RqLs0YNlfKtxk7iPE%3D&reserved=0. You are receiving this because you modified the open/close state.Message ID: @.***>