当前位置: 首页 > news >正文

Android编译错误, Ignoring InnerClasses attribute for an anonymous inner class

今天在做android项目时,加入第三方包,一编译就报错。
错误如下:
[2012-01-13 14:51:25 - xxx] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.xxx.xxx.xxx$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.


Failed to load properties file for project 'xxx'


于是我把注意力放到第三方包可能加错的情况中。于是按照网上的说法,将包都重新加了一遍还是报错。

最后发现是debug证书的问题。我到C:\Users\xxx\.android\debug.keystore目录下看到

 

大家可以看到debug.keystore的日期是 2011-1-11,而今天是2012-1-13日,果然如网上所说,超过了一年,debug证书过期了。

于是我删掉这个文件,重新编译运行,果然没问题了,而此时 该目录又重新生成了debug.keystore,日期是今天。

 

如果你想重现这个问题,也很简单,必须clear工程,否则它不会再到该目录下装载证书,即使你把这个文件换成2010的也不会不错,而你clear后,

项目会重新装载证书,检测证书的有效期。希望对大家有所帮助。

转载于:https://www.cnblogs.com/cheng5x/p/4864393.html

相关文章:

  • Android中的资源与国际化!
  • frame与bounds
  • wpa_supplicant 和 802.11g WPA 认证的配置
  • 礼物
  • javaweb之动态读excel,导入excel,poi,jxl 支持判断2003.2007及以上
  • iOS如何兼容的应用程序32位系统和64Bit系统
  • linux下实时查看tomcat运行日志
  • C#中对象的销毁有三种方式Finalize,Dispose,GC。
  • shrio教程初级(八)shiro验证码与记住登录
  • 转载blog_Linux下Tomcat日志定期清理 及 logrotate 配置
  • Android Fragment间对象传递
  • windows下sublime text的node.js开发环境搭建
  • 关于PHP设计模式的分析和理解
  • ibatis设置启用及关闭命名空间
  • struts1和struts2的区别对比
  • golang中接口赋值与方法集
  • hadoop集群管理系统搭建规划说明
  • Hibernate【inverse和cascade属性】知识要点
  • iOS小技巧之UIImagePickerController实现头像选择
  • JavaScript HTML DOM
  • leetcode388. Longest Absolute File Path
  • markdown编辑器简评
  • PAT A1092
  • ReactNative开发常用的三方模块
  • Vue2.0 实现互斥
  • 程序员最讨厌的9句话,你可有补充?
  • 动手做个聊天室,前端工程师百无聊赖的人生
  • 个人博客开发系列:评论功能之GitHub账号OAuth授权
  • 湖南卫视:中国白领因网络偷菜成当代最寂寞的人?
  • 看域名解析域名安全对SEO的影响
  • 码农张的Bug人生 - 见面之礼
  • 前端工程化(Gulp、Webpack)-webpack
  • 如何解决微信端直接跳WAP端
  • 译有关态射的一切
  • 用quicker-worker.js轻松跑一个大数据遍历
  • 优秀架构师必须掌握的架构思维
  • SAP CRM里Lead通过工作流自动创建Opportunity的原理讲解 ...
  • 哈罗单车融资几十亿元,蚂蚁金服与春华资本加持 ...
  • #我与Java虚拟机的故事#连载14:挑战高薪面试必看
  • (1/2)敏捷实践指南 Agile Practice Guide ([美] Project Management institute 著)
  • (2)nginx 安装、启停
  • (2022 CVPR) Unbiased Teacher v2
  • (C)一些题4
  • (C++20) consteval立即函数
  • (HAL)STM32F103C6T8——软件模拟I2C驱动0.96寸OLED屏幕
  • (附源码)php新闻发布平台 毕业设计 141646
  • (论文阅读笔记)Network planning with deep reinforcement learning
  • (排序详解之 堆排序)
  • (四)Android布局类型(线性布局LinearLayout)
  • (原創) 物件導向與老子思想 (OO)
  • (转)EXC_BREAKPOINT僵尸错误
  • (转)程序员疫苗:代码注入
  • (转)人的集合论——移山之道
  • (转)为C# Windows服务添加安装程序
  • *Django中的Ajax 纯js的书写样式1