How to fix this error “A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade”

后端 未结 14 2011
死守一世寂寞
死守一世寂寞 2021-01-02 02:04

I can\'t run my app on AVD. I get this error.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionF

相关标签:
14条回答
  • 2021-01-02 02:56

    I'm using Android Studio 4.0.0 and everything is fine until suddenly I got this error when clean and rebuild project. I don't know why. I tried many solution suggested but no luck. Finally I try to uninstall Android Studio 4.0.1 and this error is GONE and enable to run in emulator like before

    0 讨论(0)
  • 2021-01-02 02:58

    Simply degrade the version from

    classpath 'com.android.tools.build:gradle:3.5.0'
    

    to

    classpath 'com.android.tools.build:gradle:3.4.2'
    

    then no need to change anything,

    You can try Invalidate Caches/Restart if not working.

    0 讨论(0)
提交回复
热议问题