Android Studio构建失败字段“签名"的值不正确 [英] Android Studio Build Failed Incorrect value for field 'signature'

查看:233
本文介绍了Android Studio构建失败字段“签名"的值不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在Android Studio中运行应用或构建项目时出现以下错误

I'm getting the following error when attempting to run an app or build my project in android studio

签名"字段的值不正确:值为1163874895,但预期值为67324752.

最初,将kotlin-android-extensions行添加到我的应用程序build.gradle中时,我得到了这个

Initially I got this when adding the kotlin-android-extensions line to my apps build.gradle

    id 'com.android.application'
    id 'kotlin-android'
    id 'kotlin-android-extensions'
}

从那时起,我一直尝试删除它,清理/重建,使缓存无效,删除项目并重新创建以及卸载android studio和用户设置.现在,我什至无法创建只有一个空活动的新项目并进行构建.我是android,kotlin和gradle的新手,不确定要检查什么.

Since then I've tried removing it, cleaning/rebuilding, invalidating the cache, deleting the project and recreating, and uninstalling android studio and user settings. Now I can't even create a new project with only an empty activity and build it. I'm new to android, kotlin, and gradle and not really sure what else to check.

推荐答案

通过删除文件夹来解决此问题

Fixed this by deleting the folders

  • C:\ Users<用户名> .android
  • C:\ Users<用户名> .gradle

这篇关于Android Studio构建失败字段“签名"的值不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆