作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我无法在 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'}
最佳答案
终于修好了。
更改org.gradle.jvmargs=-Xmx1536m
到org.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/
我是一名优秀的程序员,十分优秀!