Skip to content

Sharedpreference plugin error after flutter upgrade #46807

@vimalmistry

Description

@vimalmistry

Working in IOS but not in android.

I just upgraded flutter sdk and facing some errors related to shared_preferences. I updated this plugin but not working
here is error. I am using latest version which is
shared_preferences: ^0.5.6

Here is error

` What went wrong:
Could not determine the dependencies of task ':shared_preferences:compileDebugAidl'.

Could not resolve all task dependencies for configuration ':shared_preferences:debugCompileClasspath'.
Could not resolve project :shared_preferences_macos.
Required by:
project :shared_preferences
> Unable to find a matching configuration of project :shared_preferences_macos:
- None of the consumable configurations have attributes.
Could not resolve project :shared_preferences_web.
Required by:
project :shared_preferences
> Unable to find a matching configuration of project :shared_preferences_web:
- None of the consumable configurations have attributes.
`

And in android studio

`ERROR: Unable to resolve dependency for ':shared_preferences@debug/compileClasspath': Could not resolve project :shared_preferences_macos.
Show Details
Affected Modules: shared_preferences

ERROR: Unable to resolve dependency for ':shared_preferences@debug/compileClasspath': Could not resolve project :shared_preferences_web.
Show Details
Affected Modules: shared_preferences

ERROR: Unable to resolve dependency for ':shared_preferences@debugAndroidTest/compileClasspath': Could not resolve project :shared_preferences_macos.
Show Details
Affected Modules: shared_preferences

ERROR: Unable to resolve dependency for ':shared_preferences@debugAndroidTest/compileClasspath': Could not resolve project :shared_preferences_web.
Show Details
Affected Modules: shared_preferences

ERROR: Unable to resolve dependency for ':shared_preferences@debugUnitTest/compileClasspath': Could not resolve project :shared_preferences_macos.
Show Details
Affected Modules: shared_preferences `

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: regressionIt was better in the past than it is nowcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.p: shared_preferencesPlugin to read and write Shared Preferencespackageflutter/packages repository. See also p: labels.platform-iosiOS applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions