android - "zipAlignExe' 不存在。”在 Android Studio 上运行我的项目时出错

标签 android gradle

我在下面遇到错误,

Error:A problem was found with the configuration of task ':project1:zipalignDebug'.
> File 'D:\Program Files\Android Studio\sdk\tools\zipalign.exe' specified for property
'zipAlignExe' does not exist.

我下载了sdk中的所有包,我下载了两次关于zipAlign的包,但没有解决我的问题。

请帮忙。谢谢。

最佳答案

如果您使用的是 Gradle,将 Gradle 插件从 0.10 更新到 0.11 对我有用:

buildscript {
    ...

    dependencies {
        ...
        classpath 'com.android.tools.build:gradle:0.11.+'
    }
}

关于android - "zipAlignExe' 不存在。”在 Android Studio 上运行我的项目时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24586688/

相关文章:

android - SQLite 计数(列)GROUP BY 问题

android - 如何通过 id 获取 MenuItem

android - 将Android Gradle 3.0更新为5.1在运行时出现错误

android - Firebase - 应用分发未能获取应用信息 : [403] The caller does not have permission

Gradle复制而不会覆盖

java - 实现迭代回退机制的设计模式

java - 在 Activity 类 com.example.ivy.bienesraicesapp.PanelUsuarioActivity 中找不到方法( View )

android - 如何在 Fire Phone 上启用开发者选项和 ADB?

java - 运行ionic cordova build android --prod --release时发生错误

android - 使用 Couchbase Lite 构建 Android 项目的 Jenkins 资源丢失错误