【发布时间】:2016-10-04 11:25:50
【问题描述】:
所以我更新了我的项目以使用新的 jack 编译器,但由于某种未知原因,我的 AntiVir 阻止了任务 transformClassesWithPreJackPackagedLibrariesForDebug
如果我禁用 AntiVir 实时保护,它会起作用。我真的不想这样做,也不想开始将我的 android 项目放在例外列表中。
我正在使用 Android Studio 2.2,这是我的 build.gradle
android {
compileSdkVersion 24
buildToolsVersion "24.0.2"
defaultConfig {
minSdkVersion 21
targetSdkVersion 24
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
jackOptions {
enabled true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
我的project.gradle
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
}
}
当我尝试在我的硬件设备上运行应用程序时出现错误。
Error:Execution failed for task ':app:transformClassesWithPreJackPackagedLibrariesForDebug'.
> Failed to delete temporary file C:\Users\User\AppData\Local\Temp\jill-1475579265083-0.jack
【问题讨论】:
-
请解释否决票。
-
三种解决方案:使用其他防病毒软件或将其添加到异常中或使用旧编译器。
-
这就像问如何在没有氧气瓶或火星地球化的情况下在火星上呼吸......
标签: java android android-studio android-jack-and-jill jack-toolchain