gpt4 book ai didi

android - Gradle给我写AAPT错误

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

我尝试构建我的android项目,但是Gradle给我写了3个AAPT错误

C:\Users\79659\.gradle\caches\transforms-2\files-2.1\42000e1808a60b173199f1b8b856bd5d\jetified-ads-2.5.1.472\res\drawable\apnxt_ads_rating_bar.xml:3: AAPT: warn: generated id 'android:id/background' for external package 'android'.
C:\Users\79659\.gradle\caches\transforms-2\files-2.1\42000e1808a60b173199f1b8b856bd5d\jetified-ads-2.5.1.472\res\drawable\apnxt_ads_rating_bar.xml:7: AAPT: warn: generated id 'android:id/progress' for external package 'android'.
C:\Users\79659\.gradle\caches\transforms-2\files-2.1\42000e1808a60b173199f1b8b856bd5d\jetified-ads-2.5.1.472\res\drawable\apnxt_ads_rating_bar.xml:5: AAPT: warn: generated id 'android:id/secondaryProgress' for external package 'android'.

这些错误引用此代码
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+android:id/background"
android:drawable="@drawable/apnxt_ads_empty_star" />
<item android:id="@+android:id/secondaryProgress"
android:drawable="@drawable/apnxt_ads_empty_star" />
<item android:id="@+android:id/progress"
android:drawable="@drawable/apnxt_ads_full_star" />
</layer-list>

我无法编辑此代码。我能做什么?

UPD:我找到了解决方案。问题出在AppNext的软件包中。例:
implementation 'com.appnext.sdk:ads:2.+'
implementation 'com.appnext.sdk:banners:2.+'
implementation 'com.appnext.sdk:native-ads2:2.+'
implementation 'com.appnext.sdk:actions:2.+'

最佳答案

我找到了解决方案。问题出在AppNext的软件包中。例:

implementation 'com.appnext.sdk:ads:2.+'
implementation 'com.appnext.sdk:banners:2.+'
implementation 'com.appnext.sdk:native-ads2:2.+'
implementation 'com.appnext.sdk:actions:2.+'

关于android - Gradle给我写AAPT错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61210436/

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