您的位置:首页 > 移动开发 > Android开发

关于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 的编译不接受的狀況

刺客就需要你
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: