App crash when I submit a new post to Parse

前端 未结 5 595
逝去的感伤
逝去的感伤 2021-01-20 03:13

This is the only Place my app crashes and one of the more important features

The LogCat tells me:

java.lang.IllegalArgumentException: You must

5条回答
  •  情深已故
    2021-01-20 03:24

    Replace this line

    ParseObject post = new ParseObject("Posts");
    

    with this

    ParseObject post = ParseObject.create("Posts");
    

提交回复
热议问题