Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/205.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
错误:在包“android”中找不到属性“uiOptions”的资源标识符_Android_Android Manifest_Android Fragments - Fatal编程技术网

错误:在包“android”中找不到属性“uiOptions”的资源标识符

错误:在包“android”中找不到属性“uiOptions”的资源标识符,android,android-manifest,android-fragments,Android,Android Manifest,Android Fragments,我的应用程序有此配置 <application android:label="@string/app_name" android:theme="@android:style/Theme.Holo.Light"> <activity android:name=".MainActivity" android:label="@string/app_name"> 更多信息 使用android.support.v4.app.FragmentAc

我的应用程序有此配置

<application android:label="@string/app_name" android:theme="@android:style/Theme.Holo.Light">
    <activity android:name=".MainActivity"
              android:label="@string/app_name">
更多信息


使用android.support.v4.app.FragmentActivity我不确定android:uiOptions是否是支持包的一部分,但我可能错了。如果不是,则针对Android 4.0+进行编译。XML将无声地失败。

我认为没有人能够回答这个问题,但万一

我的问题与为较低目标构建build.xml有关

我运行了>android更新项目-p./-t14


这似乎解决了它

我不明白,我相信我是针对安卓4.0编译的,我的标签是……我想这也是我的问题,但我想因为我使用的是eclipse,所以我不能肯定。我尝试使用菜单单击Project->Properties->ProjectBuildTarget从API11更改为API14。那没用。然后我将清单从版本14更改为15,这就解决了它。虽然不能重新创建它,但我想我会写这个,以防它对任何人都有帮助。是的,我把舱单改回了14张,它仍然有效。
<application android:label="@string/app_name" android:theme="@android:style/Theme.Holo.Light">
    <activity android:name=".MainActivity"
              android:label="@string/app_name"
              android:uiOptions="splitActionBarWhenNarrow">
[aapt] /home/jackie/Development/Code/personal/Android/ApaShooter/AndroidManifest.xml:9: error: No resource identifier found for attribute 'uiOptions' in package 'android'