简体   繁体   English

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

[英]gradle build error in Androidmanifest.xml file

I am trying to build an android application using gradle in eclipse and i am trying to build the apk using command gradle build in project root directory, i am getting an error in the path of 我正在尝试使用Eclipse中的gradle构建一个android应用程序,并且我正在尝试在项目根目录中使用命令gradle build来构建apk,我在以下路径中遇到错误

$projdir/build/intermediates/manifests/full/release/Androidmanifest.xml $ PROJDIR /建设/中间体/舱单/全/发行/ AndroidManifest.xml中

saying that

/build/intermediates/manifests/full/release/AndroidManifest.xml:139:28-68: AAPT: No resource found that matches the given name (at 'theme' with value '@style/Theme.AppCompat.Light.NoActionBar'). /build/intermediates/manifests/full/release/AndroidManifest.xml:139:28-68:AAPT:没有资源发现,赐名“@风格/ Theme.AppCompat.Light.NoActionBar”匹配(在“主题”与价值)。

When i open eclipse and it is redirecting me to the resource fine and it is showing no errors. 当我打开eclipse时,它将我重定向到资源正常,并且没有显示任何错误。 And i think the Androidmanifest.xml in the above path is it necessary ?? 而且我认为上述路径中的Androidmanifest.xml是否必要?

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>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM