gpt4 book ai didi

android - 如何修复此错误 "A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade"

转载 作者:行者123 更新时间:2023-12-01 19:07:06 27 4
gpt4 key购买 nike

我无法在 AVD 上运行我的应用。我收到此错误。

A failure occurred while executing 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'}

enter image description here

最佳答案

终于修好了。

  • 更改org.gradle.jvmargs=-Xmx1536morg.gradle.jvmargs=-Xmx1536m -Duser.country=US -Duser.language=en

  • 更改类路径'com.android.tools.build:gradle:3.5.0'类路径'com.android.tools.build:gradle:3.4.2'

<小时/>

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

关于android - 如何修复此错误 "A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58084850/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com