`
newton21012915
  • 浏览: 60353 次
  • 性别: Icon_minigender_1
  • 来自: 长春
社区版块
存档分类
最新评论

Your project contains errors,please fix them before running your application.

 
阅读更多
问题解决:Your project contains errors,please fix them before running your application.
今天中午一打开eclipse要准备学习android,原来的项目突然全带有红色叉叉了。但是其中的项目的文件却没有错误,匪夷所思!
 
然后我再运行一下吧~提示如下错误:

到底是什么原因呢?然后我去百度一下:网友们针对这个问题给出了多种解决方法:
1、有可能是无法读取r.class,删除R.java文件,刷新
2、clean整个项目,重新再编译一下。
以上方式我都试过了,却无法成功了。
于是乎我打开windows---show view----problems
看到了如下的:
Error generating final archive: Debug Certificateexpired on 11-3-4 下午1:40
这句话的意思就是无法生成最终的文档apk。Debug验证已经过期了~~囧囧
想想我第一次接触android的时候已经有一年了吧。android要求所有的程序必须有签名,否则就不会安装该程序。在我们开发过程中,adt使用debug keystore,在 preference->android->buid中设置。

找到Default debug  Keystore的地址,然后把debug.keystore文件给删除了。
debug的keystore默认有效期为一年,如果你是从一年前开始开发 android程序,那么很可能出现debug keystore过期,导致你无法生成 apk文件。我调了一下系统时间,就出现以下错误。此时你只要删除debug keystore就行,系统又会为你生成有效期为一年的私钥。
最后在clean项目,编译ok!
分享到:
评论

相关推荐

    cfg_errors.gocfg_errors.gocfg_errors.go

    cfg_errors.gocfg_errors.gocfg_errors.gocfg_errors.gocfg_errors.gocfg_errors.gocfg_errors.gocfg_errors.gocfg_errors.gocfg_errors.go

    Senfore_DragDrop_v4.1

    Please choose the most appropiate newsgroup for your question. Do not cross post to them all. Before posting to the newsgroups, I suggest you try to search for an answer on the Google (DejaNews) ...

    EurekaLog_7.5.0.0_Enterprise

    8)....Fixed: Silently ignore and fix invalid values in project options EurekaLog 7.2 Hotfix 2 (7.2.2.0), 30-April-2015 1)....Fixed: Confusing message in Manage tool when using with Trial/Pro 2).......

    kafka处理超大消息的配置 org.apache.kafka.common.errors.RecordTooLargeException

    java.lang.RuntimeException: java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.RecordTooLargeException: The request included a message larger than the max message size the server ...

    英文单词拼写混淆集:spell-errors.txt

    英文单词拼写混淆集:spell-errors.txt

    Springer.The.Developer’s.Guide.to.Debugging.2008.pdf

    2.3.13 Cover your Bugfix with a Regression Test . . . . . 13 2.4 Build a Good Toolkit . . . . . . . . . . . . 14 2.4.1 Your Workshop . . . . . . . . . 15 2.4.2 Running Tests Every Day Keeps the Bugs ...

    a project model for the FreeBSD Project.7z

    A project model for the FreeBSD Project Niklas Saers Copyright © 2002-2005 Niklas Saers [ Split HTML / Single HTML ] Table of Contents Foreword 1 Overview 2 Definitions 2.1. Activity 2.2. Process ...

    ApplicationResources.txt

    - **Credit Card Validation**: `errors.creditcard={0} not a valid credit card` - 验证信用卡号的有效性。 - **Email Validation**: `errors.email={0} not a valid e-mail address` - 检查电子邮件地址格式...

    oracle8i_errors.chm

    oracle8i_errors.chm

    print-winsock-errors.c

    libevent是2.1.8版本里面的test文件夹缺少print-winsock-errors.c,使得编译会出错

    Correct Your English Errors(2nd) epub

    Correct Your English Errors(2nd) 英文epub 第2版 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    Multiple operations have reported errors.doc

    在IT领域,遇到诸如“Multiple operations have reported errors”这样的错误信息是常见的问题,尤其是在使用复杂的集成开发环境(IDE)如MyEclipse时。这一错误通常表明在执行多个操作的过程中,有若干步骤未能顺利...

    mscal.ocx微软日历控件

    Manually install the ocx file * Please read our disclaimer before installing. 1. Download the file MSCAL.OCX to your desktop. 2. Move the ocx file to the program directory missing the file. 3. If ...

    spell-errors.txt

    拼写纠错配套资源:该文件记录了很多用户写错的单词和对应正确的单词,可以通过该文件确定每个正确的单词所对应的错误拼写方式,并计算出每个错误拼写方式出现的概率

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    list (contains flex-objects with Parent = Nil and the owner = Owner). - FIX: In BCB a problem occurred with TFlexText.DrawText, which for some reason kept being renamed by linker to DrawTextA. For ...

    Debugging with GDB --2007年

    Running the executable under GDB . . . . . . . . . . . . . . . . . . . . . . Stepping to the next line in the source program . . . . . . . . . . . . Stepping into a subroutine . . . . . . . . . . . . ...

Global site tag (gtag.js) - Google Analytics