手机
当前位置:查字典教程网 >编程开发 >安卓软件开发 >android studio 打包,过时警告的问题
android studio 打包,过时警告的问题
摘要:今天公司打码进行了一些合并,打包时候遇到的如下错误Error:(71,34)警告:[deprecation]CookieManager中的r...

今天公司打码进行了一些合并,打包时候遇到的如下错误

Error:(71, 34) 警告: [deprecation] CookieManager中的removeSessionCookie()已过时

Error:(53, 37) 警告: [deprecation] org.apache.http中的Header已过时

Error:(55, 6) 警告: [deprecation] Builder中的cacheOnDisc(boolean)已过时

Error:(101, 36) 警告: [deprecation] CookieManager中的removeSessionCookie()已过时

Error:(51, 34) 警告: [deprecation] org.apache.http.impl.cookie中的BasicClientCookie已过时

Error:(60, 35) 警告: [unchecked] 对作为原始类型Class的成员的getDeclaredMethod(String,Class< ? >...)的调用未经过检查

Error:(197, 37) 警告: [deprecation] org.apache.http中的Header已过时

Error:(18, 23) 警告: [deprecation] org.apache.http中的Header已过时

Error:(130, 7) 警告: [deprecation] Options中的inPurgeable已过时

Error:(34, 171) 警告: [deprecation] Builder中的cacheOnDisc(boolean)已过时

Error:(137, 26) 警告: [deprecation] ClipboardManager中的getText()已过时

Error:(105, 23) 警告: [deprecation] ViewPager中的setOnPageChangeListener(OnPageChangeListener)已过时

Error:(178, 37) 警告: [deprecation] org.apache.http中的Header已过时

Error:(172, 16) 警告: [deprecation] Notification中的icon已过时

Error:(56, 17) 警告: [deprecation] PagerAdapter中的destroyItem(View,int,Object)已过时

Error:(37, 19) 警告: [deprecation] PagerAdapter中的instantiateItem(View,int)已过时

Error:(129, 7) 警告: [deprecation] Options中的inInputShareable已过时

Error:(6, 35) 警告: [deprecation] org.apache.http.impl.cookie中的BasicClientCookie已过时

Error:(71, 37) 警告: [deprecation] org.apache.http中的Header已过时

Error:(45, 6) 警告: [deprecation] Builder中的discCacheFileNameGenerator(FileNameGenerator)已过时

Error:(131, 37) 警告: [deprecation] org.apache.http中的Header已过时

Error:(51, 6) 警告: [deprecation] org.apache.http.impl.cookie中的BasicClientCookie已过时

Error:(196, 42) 警告: [deprecation] Resources中的getColor(int)已过时

Error:(55, 23) 警告: [deprecation] SDEventManager中的post(int)已过时

Error:(112, 37) 警告: [deprecation] org.apache.http中的Header已过时

Error:(156, 10) 警告: [deprecation] Options中的inPurgeable已过时

Error:(157, 10) 警告: [deprecation] Options中的inInputShareable已过时

Error:(179, 56) 警告: [unchecked] 对作为原始类型Class的成员的getMethod(String,Class< ? >...)的调用未经过检查

回复讨论(解决方案)

请教各位有好的解决办法吗?  只能一个一个区修改吗?  合并之前是没有这个问题的. 阿帕奇在android5.0之后就不推荐    6.0之后就不支持了,建议用Volley框架代替你原来框架的网络请求方法

可以看看我的一篇博客

http://blog.csdn.net/stanny_bing/article/details/52680363 在build.gradle中添加如下配置试试:

lintOptions {
        abortOnError false
    }

意思是不进行lint检查 在build.gradle中添加如下配置试试:

lintOptions {
        abortOnError false
    }

意思是不进行lint检查 这个已经加了的 没效果 阿帕奇在android5.0之后就不推荐    6.0之后就不支持了,建议用Volley框架代替你原来框架的网络请求方法


http://blog.csdn.net/stanny_bing/article/details/52680363 有些不是apache的..,我合并之前和之后都是用的23API的版本 之前没警告. 楼主这个问题解决了吗? 楼主这个问题解决了吗? 并没有 到处都没找到靠谱的回答,准备一个一个警告改了!  工程属性中设置 Properties | Android Lint Preferences | Ignore All  工程属性中设置 Properties | Android Lint Preferences | Ignore All gradle中吗?还是Manifest文件中,能说下具体怎么设置吗?感谢 楼主这个问题解决了吗?  楼主这个问题解决了吗?  还没有  困扰我几天了 一个一个修改方法又不很好改 楼主你这个问题解决了吗?

【android studio 打包,过时警告的问题】相关文章:

android项目打包jar

android 添加随意拖动的桌面悬浮窗口

android自动化测试中实现长按并拖动

关于Android SDCard存储的问题

android ListView自动滚动方法

解决android 下载时文件名中文和空格问题

android 退出程序解决内存释放的问题

android 进程的优先级

设置android 文字下划线

android imageview图片居中技巧应用

精品推荐
分类导航