导入旧项目时出现如下错误:
error: Error retrieving parent for item: No resource found that matches the given name
'Theme.AppCompat.Light'.
原因是版本升级之后不兼容导致!解决方法
values: 将:<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
改为:<style name="AppBaseTheme" parent="android:Theme.Light">
values-v11改为:<style name="AppBaseTheme" parent="android:Theme.Holo.Light">将:<style name="AppBaseTheme" parent="Theme.AppCompat.Light.">values-v14 将:<style name="AppBaseTheme" parent="Theme.AppCompat.Light.DarkActionBar"> 改为:<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
缓存数据出错:
在做数据缓存的时候,如果未缓存成功,报错关于序列化的,则要实现Serializable接口;
用gson存json类型数据时,有时会报告gson未序列化,此时最好将json转换字符串存储,如转换map存储依然会报错!
新项目报错:Description Resource Path Location Type Project 'scollabletest' is missing required library: 'F:\androidWorkSpace\scollabletest\libs\android-support-v7-recyclerview.jar' scollabletest Build path Build Path Problem 类似于丢失某某包的错误:
解决方法:右键build path——configure build path——移除错误包——导入新包——ok