2009-12-19 63 views

回答

38

Apache HttpCore

與新的鏈接更新

+0

我有幾個4.0.1 zip數據,但所需的jar org.apache.http不存在。 – sarah 2009-12-19 08:26:05

+5

你下載了HttpCore(HttpClient和HttpCore都在同一個下載頁面上)嗎?該zip文件是httpcomponents-core-4.0.1-bin.zip。它包含具有org.apache.http。*類的lib/httpcore-4.0.1.jar。 – ZoogieZork 2009-12-19 08:37:36

+0

謝謝你,我得到了路徑 – sarah 2009-12-19 09:09:12

3

您可以通過下面的代碼在編譯gradle這個

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    compile 'com.android.support:appcompat-v7:23.0.0' 
    compile 'org.apache.httpcomponents:httpclient:4.5' 
} 
+0

謝謝你。這真的很有幫助。 – 2016-10-27 08:44:39

0

http://www.java2s.com/Code/Jar/s/Downloadservletapijar.htm

下載的servlet-api.jar文件 具有所有進口org.apache.http下面的文件:

META-INF/LICENSE 
META-INF/MANIFEST.MF 
META-INF/NOTICE 
javax.servlet.Async 

Context.class 
javax.servlet.AsyncEvent.class 
javax.servlet.AsyncListener.class 
javax.servlet.DispatcherType.class 
javax.servlet.Filter.class 
javax.servlet.FilterChain.class 
javax.servlet.FilterConfig.class 
javax.servlet.FilterRegistration.class 
javax.servlet.GenericServlet.class 
javax.servlet.HttpConstraintElement.class 
javax.servlet.HttpMethodConstraintElement.class 
javax.servlet.MultipartConfigElement.class 
javax.servlet.Registration.class 
javax.servlet.RequestDispatcher.class 
javax.servlet.Servlet.class 
javax.servlet.ServletConfig.class 
javax.servlet.ServletContainerInitializer.class 
javax.servlet.ServletContext.class 
javax.servlet.ServletContextAttributeEvent.class 
javax.servlet.ServletContextAttributeListener.class 
javax.servlet.ServletContextEvent.class 
javax.servlet.ServletContextListener.class 
javax.servlet.ServletException.class 
javax.servlet.ServletInputStream.class 
javax.servlet.ServletOutputStream.class 
javax.servlet.ServletRegistration.class 
javax.servlet.ServletRequest.class 
javax.servlet.ServletRequestAttributeEvent.class 
javax.servlet.ServletRequestAttributeListener.class 
javax.servlet.ServletRequestEvent.class 
javax.servlet.ServletRequestListener.class 
javax.servlet.ServletRequestWrapper.class 
javax.servlet.ServletResponse.class 
javax.servlet.ServletResponseWrapper.class 
javax.servlet.ServletSecurityElement.class 
javax.servlet.SessionCookieConfig.class 
javax.servlet.SessionTrackingMode.class 
javax.servlet.SingleThreadModel.class 
javax.servlet.UnavailableException.class 
javax.servlet.annotation.HandlesTypes.class 
javax.servlet.annotation.HttpConstraint.class 
javax.servlet.annotation.HttpMethodConstraint.class 
javax.servlet.annotation.MultipartConfig.class 
javax.servlet.annotation.ServletSecurity.class 
javax.servlet.annotation.WebFilter.class 
javax.servlet.annotation.WebInitParam.class 
javax.servlet.annotation.WebListener.class 
javax.servlet.annotation.WebServlet.class 
javax.servlet.descriptor.JspConfigDescriptor.class 
javax.servlet.descriptor.JspPropertyGroupDescriptor.class 
javax.servlet.descriptor.TaglibDescriptor.class 
javax.servlet.http.Cookie.class 
javax.servlet.http.HttpServlet.class 
javax.servlet.http.HttpServletRequest.class 
javax.servlet.http.HttpServletRequestWrapper.class 
javax.servlet.http.HttpServletResponse.class 
javax.servlet.http.HttpServletResponseWrapper.class 
javax.servlet.http.HttpSession.class 
javax.servlet.http.HttpSessionActivationListener.class 
javax.servlet.http.HttpSessionAttributeListener.class 
javax.servlet.http.HttpSessionBindingEvent.class 
javax.servlet.http.HttpSessionBindingListener.class 
javax.servlet.http.HttpSessionContext.class 
javax.servlet.http.HttpSessionEvent.class 
javax.servlet.http.HttpSessionListener.class 
javax.servlet.http.HttpUtils.class 
javax.servlet.http.NoBodyOutputStream.class 
javax.servlet.http.NoBodyResponse.class 
javax.servlet.http.Part.class 
javax/servlet/LocalStrings.properties 
javax/servlet/http/LocalStrings.properties 
javax/servlet/resources/XMLSchema.dtd 
javax/servlet/resources/datatypes.dtd 
javax/servlet/resources/j2ee_1_4.xsd 
javax/servlet/resources/j2ee_web_services_1_1.xsd 
javax/servlet/resources/j2ee_web_services_client_1_1.xsd 
javax/servlet/resources/javaee_5.xsd 
javax/servlet/resources/javaee_6.xsd 
javax/servlet/resources/javaee_web_services_1_2.xsd 
javax/servlet/resources/javaee_web_services_1_3.xsd 
javax/servlet/resources/javaee_web_services_client_1_2.xsd 
javax/servlet/resources/javaee_web_services_client_1_3.xsd 
javax/servlet/resources/web-app_2_2.dtd 
javax/servlet/resources/web-app_2_3.dtd 
javax/servlet/resources/web-app_2_4.xsd 
javax/servlet/resources/web-app_2_5.xsd 
javax/servlet/resources/web-app_3_0.xsd 
javax/servlet/resources/web-common_3_0.xsd 
javax/servlet/resources/web-fragment_3_0.xsd 
javax/servlet/resources/xml.xsd 
相關問題