ugali soft
ugali soft

Reputation: 2789

Error:Execution failed for task ':app:clean'

i need your help, when i try to compile my new app without any addition of dependences and classpath i get this exception

Upvotes: 3

Views: 8070

Answers (5)

Parveen Chauhan
Parveen Chauhan

Reputation: 1496

Gradle process holds file locks, so either kill any java.exe processes manually or be more precise and kill all Gradle daemons by issuing this command in your project root directory:

gradlew daemon --stop

This will stop all daemons of particular Gradle version.

Upvotes: 1

  1. File --> Invalidate Caches/Restart...
  2. Build -- > Rebuild Project

Upvotes: 3

eRaisedToX
eRaisedToX

Reputation: 3361

This worked for me.

Clean project from Terminal using this command 'gradlew clean'.

enter image description here

Upvotes: 1

Khorchani
Khorchani

Reputation: 84

Running android studio as administrator fixed the problem for me. (windows 10)

Upvotes: 4

Kunjesh Virani
Kunjesh Virani

Reputation: 84

Simply do following things.

  1. Open Task Manager.
  2. Go to Users Tab.
  3. Select current user(which is you).
  4. Select "AndroidInterface"
  5. Click on Disconnect button.

Then Rebuild project it will work...

Upvotes: 1

Related Questions