2
votes

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.

4

4 Answers

4
votes

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.

0
votes

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

0
votes

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

-1
votes

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