Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot create service of type TaskExecuter using ProjectExecutionServices

Android Studio 3.6.1 Gradle Version 5.6.4

Gradle Buid Error

Cannot create service of type TaskExecuter using ProjectExecutionServices.createTaskExecuter() as there is a problem with parameter #22 of type ReservedFileSystemLocationRegistry.

Cannot create service of type ReservedFileSystemLocationRegistry using ProjectExecutionServices.createReservedFileLocationRegistry() as there is a problem with parameter #1 of type List<ReservedFileSystemLocation>.
like image 217
nemic Avatar asked Mar 06 '20 05:03

nemic


6 Answers

had same issue, stopping Gradle using the command below fixed it for me:

gradle --stop

or if you are using wrapper, use:

./gradlew --stop
like image 88
femotizo Avatar answered Dec 09 '22 14:12

femotizo


I simply had to restart my PC for this to get fixed. Unfortunately I didn't try this until after I tried most of the other solutions. 🙄

like image 38
jaredbaszler Avatar answered Dec 09 '22 16:12

jaredbaszler


For anyone who has their project on their external drive

  • Try moving it to your local drive

This worked for me

(MacOS Monterey)

like image 44
Chryzl Avatar answered Dec 09 '22 14:12

Chryzl


I also had this when I tried building on my ExFAT formatted ssd on macos. Reformatting it using APFS solved it.

like image 40
TmsKtel Avatar answered Dec 09 '22 14:12

TmsKtel


did u face this issue in react native,

  1. go to android folder
  2. open the terminal
  3. if u using vscode terminal(powershell) use -> ./gradlew --stop
  4. otherwise -> gradle --stop
like image 21
Charith Prasanna Avatar answered Dec 09 '22 16:12

Charith Prasanna


For me the source of this error was wrong permissions within the project. A sudo chown -R <username> . within the project's root fixed those issues.

like image 32
user1169629 Avatar answered Dec 09 '22 14:12

user1169629