Android Studio 2.2和Jack被Avira Antivirus阻止

Mur*_*göz 14 java android android-studio android-jack-and-jill jack-toolchain

所以我更新我的项目使用新的插孔编译器,但由于一些未知的原因我的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
     }
}
Run Code Online (Sandbox Code Playgroud)

我的 project.gradle

buildscript { 
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.0'
    }
}
Run Code Online (Sandbox Code Playgroud)

当我尝试在我的硬件设备上运行应用程序时出现错误.

Error:Execution failed for task ':app:transformClassesWithPreJackPackagedLibrariesForDebug'.
> Failed to delete temporary file C:\Users\User\AppData\Local\Temp\jill-1475579265083-0.jack
Run Code Online (Sandbox Code Playgroud)

Fre*_*ott 8

在您的防病毒软件包中编译禁用实时保护时.这是目前唯一可靠的解决方法.