Androidmanifest.xml文件中的gradle构建错误

时间:2018-02-01 08:33:52

标签: android gradle

我正在尝试使用eclipse中的gradle构建一个android应用程序,我正在尝试使用项目根目录中的 gradle build 命令构建apk, 我在

的路径上遇到错误
  

$ PROJDIR /建造/中间体/舱单/充满/释放/ AndroidManifest.xml中

  

/build/intermediates/manifests/full/release/AndroidManifest.xml:139:28-68:AAPT:找不到与给定名称匹配的资源(在'主题'与值' @风格/ Theme.AppCompat.Light.NoActionBar&#39)

当我打开eclipse并且它将我重定向到资源并且它没有显示任何错误。我认为上述路径中的Androidmanifest.xml是必要的吗?

1 个答案:

答案 0 :(得分:0)

Use AppTheme like this :-   

 <application
            android:allowBackup="true"
            android:icon="@mipmap/ic_launcher"
            android:label="@string/app_name"
            android:roundIcon="@mipmap/ic_launcher_round"
            android:supportsRtl="true"
            android:theme="@style/AppTheme">
            <activity
                android:name=".activity.SplashActivity"
                android:theme="@style/AppTheme.NoActionBar">
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />

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