Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

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

My build.gradle

android { compileSdkVersion 29 buildToolsVersion "29.0.2" defaultConfig {     applicationId "com.example.myapplication"     minSdkVersion 15     targetSdkVersion 29     versionCode 1     versionName "1.0"     testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes {     release {         minifyEnabled false         proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'     } }[E][1]}  dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.2.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'} 

enter image description here

like image 802
Worramet Chairungruang Avatar asked Sep 24 '19 16:09

Worramet Chairungruang


Video Answer


1 Answers

Finally I fixed it.

  • Change org.gradle.jvmargs=-Xmx1536m to org.gradle.jvmargs=-Xmx1536m -Duser.country=US -Duser.language=en

  • Change classpath 'com.android.tools.build:gradle:3.5.0' to classpath 'com.android.tools.build:gradle:3.4.2'


Android Studio - How to fix Internal error when trying to read zip file

like image 163
Worramet Chairungruang Avatar answered Sep 21 '22 01:09

Worramet Chairungruang