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

摘要:Andoird - “Avoid non-default constructors in fragments: use a default constructor plus Fragment#setArguments(Bundle) instead”

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

出現這個問題時

使用Window->Android->Lint Error Checking 在 Correctness類別裡,找到ValidFragment ,設定為Ingore就可以了。