Moji
Moji

Reputation: 1830

flutter run failed: A problem occurred configuring project ':shared_preferences'

I am Using flutter 1.2 and my project runs successfully before I add shared_preferences package to it.I am using shared_preferences: ^0.5.1+2. after I add it, flutter run command creates this error:

  • Error running Gradle: ProcessException: Process "/home//Desktop/projects/fycx/android/gradlew" exited abnormally: Starting a Gradle Daemon, 1 busy Daemon could not be reused, use --status for details

Configure project :shared_preferences

Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.

FAILURE: Build failed with an exception.

BUILD FAILED in 51s Command: /home/Desktop/projects/fycx/android/gradlew app:properties

Please review your Gradle project setup in the android/ folder.

Upvotes: 6

Views: 16812

Answers (5)

Parsaopi
Parsaopi

Reputation: 33

I have this error in 2.0.15 version too! but I have tried & I get this point that this error is not in this version : 2.0.13

Upvotes: 0

SHAFI TPM
SHAFI TPM

Reputation: 39

I got result in just deleting android/.gradle file and run the app again. This will work.

Upvotes: 1

GKD
GKD

Reputation: 1

Please try to install NDK first. After installing NDK, I can solve the problem by syncing again

Upvotes: 0

Sunit Karande
Sunit Karande

Reputation: 1

use shared preferences version 0.5.6 instead of 0.5.6+1 it will work for this error

Upvotes: -1

Mazin Ibrahim
Mazin Ibrahim

Reputation: 7889

There are missing libraries which are supported by dl.google.com which is likely to be prohibited on your location, to test whether it is banned or not try downloading flutter source from browser using the official link and see if it will give you an Access denied or open a download dialog. In the case of blockade turning the VPN on and running the project using flutter run will solve your problem.

Upvotes: 6

Related Questions