CookieManager 是抽象的,不能被实例化。为什么?
CookieManager is abstract, cannot be instantiated. Why?
OkHttpClient client = new OkHttpClient();
CookieManager cookieManager = new CookieManager();
cookieManager.setCookiePolicy(CookiePolicy.ACCEPT_ALL);
抛出 "CookieManager is abstract, cannot be instantiated"
我正在导入 android.webkit.CookieManager,从文档方面来看一切似乎都很好。
OkHttpClient client = new OkHttpClient();
CookieManager cookieManager = new CookieManager();
cookieManager.setCookiePolicy(CookiePolicy.ACCEPT_ALL);
抛出 "CookieManager is abstract, cannot be instantiated"
我正在导入 android.webkit.CookieManager,从文档方面来看一切似乎都很好。