Eclipse中引用了lint工具,打包時報錯

Avoid non-default constructors in fragments: use a default constructor plus Fragment#setArguments(Bundle) instead

出現該問題原因:由於Eclipse中引入了lint優化工具,在打包的時候報了這個錯。


解決方案:

使用Window→PreferencesAndroidLint Error Checking 在 Correctness中,找到ValidFragment ,更換爲Ingore,OK,問題解決。




Issue: Checks for incomplete translations where not all strings are translated
Id: MissingTranslation




發佈了29 篇原創文章 · 獲贊 10 · 訪問量 10萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章