问题描述
所以我更新我的项目以使用新的插孔编译器,但由于某些未知的原因,我的AntiVir阻止任务 transformClassesWithPreJackPackagedLibrariesForDebug
如果我禁用AntiVir真有效 - 时间保护。我真的不想这样做,我不想开始将我的android项目放在例外列表中。
我使用的是Android Studio 2.2,这是我的版本.gradle
So I update my project to use the new jack compiler, but for some unknown reason my AntiVir blocks the task transformClassesWithPreJackPackagedLibrariesForDebug
It works if I disable AntiVir real-time protection. I really don't want to do that and I don't want to start putting my android project in the exception list.
I am using Android Studio 2.2 and this is my 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'
}
}
当我尝试在我的应用程序上运行应用程序时出现错误dware device。
And the error when I try to run the app on my hardware device.
Error:Execution failed for task ':app:transformClassesWithPreJackPackagedLibrariesForDebug'.
> Failed to delete temporary file C:\Users\User\AppData\Local\Temp\jill-1475579265083-0.jack
推荐答案
在您的防病毒软件包中编译禁用实时保护时。这是目前唯一可靠的解决方法。
While compiling disable real-time protection in your anti-virus package. It is the only workaround that is reliable at this time.
这篇关于Android Studio 2.2和Jack被Avira Antivirus阻止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!