zipAlignDebug输入文件不存在错误

时间:2016-01-23 16:14:35

标签: android android-studio intellij-idea gradle

自从我更新为gradle alpha 6后,我一直收到此错误,无法构建:

Error:A problem was found with the configuration of task ':app:zipalignDebug'.
> File 'C:\User\...\app\build\outputs\apk\app-debug-unaligned.apk' specified for property 'inputFile' does not exist.

我已经尝试了所有的建议,没有什么能解决这个问题。有小费吗?它正在使用alpha 2,但现在它给我一个错误,说我的版本太旧了,我需要转移到更新版本。谢谢!

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.0.0-alpha6'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.nwoodthorpe.waterloohacks"
        minSdkVersion 17
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
}

1 个答案:

答案 0 :(得分:0)

每次运行'app'之前尝试运行构建