o19830015 2013-06-20 03:36 采纳率: 12.5%
浏览 2421
已采纳

根据教程写的代码报错

先看一下代码:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.thenewboston.sammy"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="17" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"

这是根据一个教程写的,但是报错 : error: Error: No resource found that matches the given name (at 'theme' with value '@style/AppTheme'). android:theme="@style/AppTheme" >

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

  • 写回答

2条回答

  • JaveZh 2013-06-20 03:46
    关注

    你要在styles.xml里写个AppTheme
    形如:

        <resources xmlns:android="http://schemas.android.com/apk/res/android">
           <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>
        </resources>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥100 三相直流充电模块对数字电源芯片在物理上它必须具备哪些功能和性能?
  • ¥30 数字电源对DSP芯片的具体要求
  • ¥20 antv g6 折线边如何变为钝角
  • ¥30 如何在Matlab或Python中 设置饼图的高度
  • ¥15 nginx中的CORS策略应该如何配置
  • ¥30 信号与系统实验:采样定理分析
  • ¥100 我想找人帮我写Python 的股票分析代码,有意请加mathtao
  • ¥20 Vite 打包的 Vue3 组件库,图标无法显示
  • ¥15 php 同步电商平台多个店铺增量订单和订单状态
  • ¥17 pro*C预编译“闪回查询”报错SCN不能识别