AndroidStudio报错处理心得

关于在AS上用svn处理集成,步骤网上有很简单百度一下。我在下载安装svn后,在studio中进行配置,配置是否成功需要经过验证,怎么验证,具体步骤如下:
1.首先验证你的svn是否安装成功,通过桌面上点击右键,在菜单栏中显示出就成功,涉及到权限的问题,一般项目管理者会把路径给你,链接路径checkout出代码,然后补齐所缺的一些文件,这里需注意Eclispe的src与Studio的src的层级关系,导入到IDE中,然后点击菜单VCS里的import VCS version control选项关于这个导入,在该选项上面一项就是checkout version from control选项设置一些选项和参数,此时再打开你项目所在的工作空间里会发现有一个.svn文件,如果修改了代码,肯定与svn绑定路径的代码不同,故而不会再在项目类名前不会出现绿色的小对勾,这个主意一下。
报错首先是这样的
2.那么修改完代码,如何提交到svn上呢,这个使用过git的朋友应该都有同感,直接将其点击项目右键提交到sv即可。


这里是近期出现的一个报错,想了很久的时间才解决的,特此记录下:

Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.hp.hpl.sparta.Node$1) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:this warning is that reflective operations on this class will incorrectly
Error:compiler that did not target the modern .class file format. The recommended
Error:(com.hp.hpl.sparta.Sparta$1) that doesn't come with an
Error:indicate that it is not an inner class.
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.hp.hpl.sparta.Sparta$2) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(demo.Pinyin4jAppletDemo$1) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(demo.Pinyin4jAppletDemo$2) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(demo.Pinyin4jAppletDemo$3) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
起初,我将错误锁定在项目jar之间的冲突。
因为项目很大,涉及到多个自己的sdk依赖包,所以有可能会出现jar冲突的问题。
后来经过仔细的检查,发现清理出来不冲突的jar后,项目是不报这个错了,但是还会报新的错,新的错大意是说:
缺少插件23.0.3等,需要异步加载更新安装。
于是检查sdk安装更新sdk版本,但是原来安装的sdk目录所在硬盘已满,于是抓紧时间利用一晚上+一上午从头安装更换硬盘空间,中间涉及到硬盘分区等又耽误了很多时间,总之最后总算是安装成功,试运行了一下,插件没有报错了,但是上面的这些报错又一次出现了,绕了一大圈总算是回到了正题,继续解决上面报错的问题。

发现以上报错是关于内部类对象的,最终在LogCat中显示的信息来看,问题还是出在架包上,忽略了一个包含所有的include * jar这个,辛苦这么久,算是服了。
经过此次,我虽然改出了问题,但是却让我觉得以后应该要注意这些做项目前没有关注的小事,这些细节会影响关键时刻的项目进度,所以有些触动,特此记录一下,此次算是侥幸吧,以后会在开发前就想好不要到开发中耽误效率,开发后再做返工,得不偿失!









  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值