Error: Attribute application@label value=(@string/appname) from AndroidManifest


這是因為Library項目中也定義了與主項目相同的屬性,就會導致合並失敗,比如都默認生成的android:label="@string/app_name" 或者 android:icon="@drawable/icon_logo"

 

 

 紅框中加入沖突的標簽就可以解決問題

tools:replace="android:icon, android:theme , android:label"

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM