Avoid non-default constructors in fragments: use a default constructor plus Fragment#setArguments(Bundle) instead
出现该问题原因:由于Eclipse中引入了lint优化工具,在打包的时候报了这个错。
解决方案:
使用Window→PreferencesAndroid→Lint Error Checking 在 Correctness中,找到ValidFragment ,更换为Ingore,OK,问题解决。
Issue: Checks for incomplete translations where not all strings are translated
Id: MissingTranslation
本文介绍了如何解决在Android开发过程中遇到的关于Fragment构建时的非默认构造函数问题,并提供了具体的解决步骤。
2549

被折叠的 条评论
为什么被折叠?



