Why is there an error:
List<Long> tweetIds = Arrays.asList(503435417459249153L, 510908133917487104L, 473514864153870337L, 477788140900347904L);
// TODO: Use a more specific parent
final ViewGroup parentView = (ViewGroup) getWindow().getDecorView().getRootView();
// TODO: Base this Tweet ID on some data from elsewhere in your app
TweetUtils.loadTweet(tweetIds, new Callback<List<Tweet>>() {
@Override
public void success(Result<List<Tweet>> result) {
//here error--->
TweetView tweetView = new TweetView(MainActivity.this, result.data, R.style.tw__TweetDarkWithActionsStyle);
parentView.addView(tweetView);
}