关于android编译失败的集中情况
2016-03-14 20:33
357 查看
1 Unable to resolve target ‘android-8’
2 Description Resource Path Location Type error:
Error retrieving parent for item: No resource found that matches the given name ‘android:Theme.Holo.Light.DarkActionBar’. styles.xml
Description Resource Path Location Type error:
Error retrieving parent for item: No resource found that matches the given name ‘android:Theme.Holo.Light’. styles.xml
3 The method onClick(View) of type xxx must override a superclass method
4 Android requires compiler compliance level 5.0 or 6.0. Found ‘1.x’ instead. Please use Android Tools > Fix Project Properties.
这个问题出现的背景是:你安装的 jdk很有可能是 java 7以后的版本 ----->所以在调整java compiler的时候 索性就选择1.7版本
但是: Android 的 SDK 是在 JAVA 5 以及 6 的版本中所誕生----->太旧的版本有不能接受 @Override 标注问题,而太新的版本會造成 Android SDK 的编译不接受的狀況
刺客就需要你
2 Description Resource Path Location Type error:
Error retrieving parent for item: No resource found that matches the given name ‘android:Theme.Holo.Light.DarkActionBar’. styles.xml
Description Resource Path Location Type error:
Error retrieving parent for item: No resource found that matches the given name ‘android:Theme.Holo.Light’. styles.xml
3 The method onClick(View) of type xxx must override a superclass method
4 Android requires compiler compliance level 5.0 or 6.0. Found ‘1.x’ instead. Please use Android Tools > Fix Project Properties.
这个问题出现的背景是:你安装的 jdk很有可能是 java 7以后的版本 ----->所以在调整java compiler的时候 索性就选择1.7版本
但是: Android 的 SDK 是在 JAVA 5 以及 6 的版本中所誕生----->太旧的版本有不能接受 @Override 标注问题,而太新的版本會造成 Android SDK 的编译不接受的狀況
刺客就需要你
相关文章推荐
- Fragment——Activity与Fragment之间进行通信
- Android 原型设计模式
- 报错Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.PagerTabStrip"
- Android Studio配置问题
- android中handler的使用
- Android 安全机制遗漏知识点
- 浅谈 Android MVP
- Android 热门博主汇总
- android 中样式修改关于shape 的相关问题
- Android开发仿位置共享功能基于高德地图
- .Net程序猿玩转Android开发---(3)登陆页面布局
- Android 中部分文字高亮显示方法
- 从一个问题来认识android:configChanges属性
- Android 中 handle Message 的简单使用笔记
- 沉浸式状态栏源码分析
- android如何隐藏头部的标题栏全屏显示
- Android 实现个性的ViewPager切换动画 实战PageTransformer(兼容Android3.0以下)
- Android listview与adapter用法
- android ecplise 的 项目结构目录
- Android屏幕适配全攻略3-和产品经理聊聊