前言
總結一下最近使用Android Studio 簽名APK時遇到的問題。
本博客同步發布于XueLong的博客
錯誤匯總
- 問題一
Error: Avoid non-default constructors in fragments: use a default constructor plus Fragment#setArguments(Bundle) instead [ValidFragment]
解決方式:在Moudel下的build.gradle添加如下代碼
android {
lintOptions {
checkReleaseBuilds false
}
}
- 問題二
Error: Expected resource of type styleable [ResourceType]
Error: Expected resource of type id [ResourceTyp]
Error: Expected resource of type raw [ResourceType]
@SuppressWarnings("ResourceType")
寫在最后
以上就是目前在使用Android Studio簽名APK時遇到的問題的解決方式。
如果你在參考過程中遇到問題,可以在我的聯系方式中給我提問。
后面會繼續介紹,Android的相關知識,歡迎繼續關注我博客的更新。