【问题标题】:Android Studio 2.2 and Jack are getting blocked by Avira AntivirusAndroid Studio 2.2 和 Jack 被 Avira Antivirus 阻止
【发布时间】: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


【解决方案1】:

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

【讨论】:

    【解决方案2】:

    您可以将您的 Android SDK、Android Studio 和项目文件夹添加到您的防病毒白名单中。这样,您在构建时仍会受到保护。

    Guide here.

    【讨论】:

      【解决方案3】:

      使用“com.android.tools.build:gradle:2.2.0-alpha5”修复

      如果无法正常工作,请将您的 Android SDK、Android Studio 和项目文件夹添加到您的防病毒白名单中:

      Guide

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-08-26
        • 2015-08-31
        • 2015-12-14
        • 1970-01-01
        • 2016-09-16
        • 1970-01-01
        • 1970-01-01
        • 2014-07-18
        相关资源
        最近更新 更多