开发Android或者jee或者其他java应用时,如果eclipse中的项目前有个红叉叉,但是src下有没有任何提示错误但是又不能通过编译的时候如何找到项目工程的错误根源呢?方法如下:
打开eclipse的problem视图(如果关闭了可以在window->show view下找到problem视图),然后在视图中就可以看到项目的根源问题何在了,呵呵。
言归正传,回到我遇到的问题上。
问题描述:
在导入一个Android App后提示如下错误:
Description Resource Path LocationType
Error generating final archive: Debug Certificate expired on 8/18/11 9:30 PMxxxxxx(这个是我的项目名称)UnknownAndroid Packaging Problem
原因分析:
android要求所有的程序必须有签名,否则就不会安装该程序。在我们开发过程中,adt使用debug keystore,在eclipse中的preference->android->buid中设置。debug的keystore默认有效期为一年,如果你是从一年前开始着手android开发的,那么在一年后很可能出现debug keystore过期,导致工程出错(比如我的情况)或者无法生成 apk文件等等(由于我的eclipse和sdk/adb等重新安装折腾过好多次了,一直没遇到这个问题,今天运气好碰上了,呵呵)。
解决方法:
只要删除debug keystore和ddms.cfg文件即可,系统会为你重新生成有效期为一年的私钥。 debug keystore和ddms.cfg文件地址位于:
1)linux(Mac OS):
在eclipse中的Window->Preferences->Android->Build中Default debug keystore查看keystore的地址:
“/home/用户名/.android/debug.keystore”
删除此路径下的debug.keystore及 ddms.cfg
2)Windows:
进入:C:\Documents and Settings\用户名\.android 删除:debug.keystore及 ddms.cfg
进入:C:\Documents and Settings\Administrator\.android删除:debug.keystore及 ddms.cfg
(注意:即使是Windows下也应该在eclipse中的Window->Preferences->Android->Build中Default debug keystore查看keystore的地址位置,否则会出现找不到文件的情况)
分享到:
相关推荐
Generating new PFX Key/Certificate pair, please enter a password Loading 'screen' into random state - done Enter Export Password: Verifying - Enter Export Password: Created new PEM key : c:\temp\...
fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit Generating Code... fatal error C1076: compiler limit : internal heap limit reached; use /Zm to ...
Generating Artifacts问题三种解决办法
Android Studio在build的时候出现transformClassesWithDexForDebug Android Studio在build的时候出现以下问题: Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > ...
opengl 三维绘图演示程序。在visual c++ 2010 以上版本测试通过。... C:\2020\demo\OpenGL_on_a_Windows_Form\Debug\OpenGL_on_a_Windows_Form.exe========== Rebuild All: 1 succeeded 0 failed 0 skipped ==========
6 20编1 ①错误描述:Tool Internal Error: Internal Error: [CoreUtil General]: Access violation 0xc0000005 at 007588A5 reading from address 0x0 Internal Error: [CoreUtil General]: Access violation 0xc...
1.0.5 解决android 8以下Fragment中view显示问题,解决水波纹不能与press事件共存问题,优化水波纹显示 1.2.0 增加对selector的支持 1.2.2 修复部分属性不生效的bug 1.2.3 checkbox radiobutton使用的bug 1.2.4 新增...
GAN生成面: Udacity深度学习纳米学位 使用GAN(生成对抗网络)生成新的面Kong图像。 如何运行: 安装点子 在命令行中通过pip安装jupyter笔记本:“ pip3 install jupyter” ...在终端中运行“ jupyter笔记本”
Generating SSTables Run: (see setup.sh) $ gradle clean build $ gradle copyRuntimeLibs $ mkdir dependencies $ cp build/libs/*.jar dependencies/ $ cp build/dependencies/*.jar dependencies/ $ ./1_...
Bazel rules for generating a Java Web Archive (WAR)..zip
目前尚未解决,先记录一下。有知道的朋友不妨留言告知,谢谢。 Makefile.Debug:168: recipe for target 'compiler_moc_predefs_clean' failed process_begin: CreateProcess(NULL, rm -f debug/moc_predefs.h, ...) ...
颜色分类leetcode 生成数据 介绍 数据分析通常需要分析师使用某种类型的数据来测试算法的效率/性能。 在这种情况下,重点不是像...在本课中,我们将介绍一些可以帮助我们生成随机数据集的 Python 函数。 make_blobs()
自动生成报告 该程序将填写并提交用户提供的登录数据,在网站上填写所需的信息以生成报告,并针对单独子页面中包含的对象的整个列表重复该过程。
使用超声波传感器,使用Arduino微控制器在旅途中做出决定,以根据机器人前方物体的距离决定是否转弯。 视频中显示了机器人自主的结果。(Autonomous Driving.mp4) 第3部分-映射 机器人的映射是通过MATLAB进行的,...
Generating Functionology
6. Debug Android-specific init programs on RAMdisk 39 7. Verify that applications have started 40 8. Pulling it all together 40 Android Init Language 41 Display Drivers 46 In this document 46 ...
Surfer100 Generating Surveys From Web Resources on Wikipedia-style_Surfer100根据维基百科风格的Web资源生成调查.pdf
Generating Random Networks and Graphs By 作者: Ton Coolen – Alessia Annibale – Ekaterina Roberts ISBN-10 书号: 0198709897 ISBN-13 书号: 9780198709893 Edition 版本: 1 出版日期: 2017-05-23 pages 页数...
Storing Credentials Securely on Android Devices Introduction Storing credentials securely on a device is in many occasions necessary. You probably don't want to rely only on the separation of ...
此 Docker 映像将解决的该会影响尝试更改区域设置的 CircleCI 上的 Docker 构建。 你会看到这样的错误信息: Generating locales... cannot change mode of new locale archive: No such file or directory en_...