gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 05:49:27 27 4
gpt4 key购买 nike

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

$projdir/build/intermediates/manifests/full/release/Androidmanifest.xml





/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').



当我打开eclipse时,它会将我重定向到正确的资源,并且没有显示任何错误。而且我认为上述路径中的 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>

关于android - Androidmanifest.xml文件中的gradle构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48558381/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com