【发布时间】:2020-01-24 20:19:03
【问题描述】:
我无法在 AVD 上运行我的应用。我收到此错误。
执行 com.android.build.gradle.internal.tasks.Workers$ActionFacade 时发生故障
我的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'}
【问题讨论】:
-
@sanaebadi 我在 gradle.properties 中修复了 'org.gradle.jvmargs=-Xmx4608m' 但它不起作用。同样还是错误。 :(
-
为项目和 gradle-wrapper 发送 build.gradle
-
@sanaebadi 我的 build.gradle for project 和 gradle-wrapper 在我的评论中。