开发者社区> 问答> 正文

新建工程即使选择了默认Theme,AndroidManifest里面依然是android:theme="@style/AppTheme"

Win7 64位 Eclipse4.2.1 ADT23.02 Java1.8 x86

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.test"
    android:versionCode="1"
    android:versionName="1.0" >
 
    <uses-sdk
        android:minSdkVersion="14"
        android:targetSdkVersion="19" />
 
    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.Holo.Light.DarkActionBar" >
    </application>
 
</manifest>
 

D:workspaceTestAndroidManifest.xml:10: error: Error: No resource found that matches the given name (at 'theme' with value '@style/AppTheme').

手动更换成@android :style/Theme.Holo.Light.DarkActionBar正常

展开
收起
爵霸 2016-06-02 13:15:54 3742 0
1 条回答
写回答
取消 提交回答
  • 你制定一个them,在style.xml里面增加代码

    <style name="AppTheme" parent="android:Theme.Light"> 
            <item name="android:windowNoTitle">true</item> 
            <item name="android:windowFullscreen">false</item> 
            <item name="android:windowContentOverlay">@android :color/transparent</item> 
         </style>
    2019-07-17 19:24:39
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
58同城Android客户端Walle框架演进与实践之路 立即下载
Android组件化实现 立即下载
蚂蚁聚宝Android秒级编译——Freeline 立即下载