更新时间:2022-02-14 17:54:41
如果是最近的错误(自1月14日起),您可以尝试添加此内容:
If it is a recent error (since Jan 14th) you can try to add this:
ConfigurationBuilder cb = new ConfigurationBuilder();
cb.setUseSSL(true); // <======== set use SSL
Twitter
于1月14日添加了一项使用API时使用 SSL/HTTPS
的要求.
Twitter
added a requirement on January 14th to use SSL/HTTPS
when using their API.
上面的代码为我修复了它.
The above code fixed it for me.