Jenkins打包问题之:Note: the configuration explicitly specifies '**' to keep library class ***.

Note: the configuration keeps the entry point 'retrofit.OkHttpCall$ExceptionCatchingRequestBody$1 { long read(okio.Buffer,long); }', but not the descriptor class 'okio.Buffer'
Note: the configuration keeps the entry point 'retrofit.RequestBuilder { void canonicalize(okio.Buffer,java.lang.String,int,int,boolean); }', but not the descriptor class 'okio.Buffer'
Note: the configuration keeps the entry point 'retrofit.RequestBuilder$ContentTypeOverridingRequestBody { void writeTo(okio.BufferedSink); }', but not the descriptor class 'okio.BufferedSink'
Note: the configuration keeps the entry point 'retrofit.RxJavaCallAdapterFactory$CallOnSubscribe { void call(rx.Subscriber); }', but not the descriptor class 'rx.Subscriber'
Note: the configuration explicitly specifies 'java.nio.*' to keep library class 'java.nio.Buffer'
Note: the configuration explicitly specifies 'java.nio.*' to keep library class 'java.nio.BufferOverflowException'
Note: the configuration explicitly specifies 'java.nio.*' to keep library class 'java.nio.BufferUnderflowException'
Note: the configuration explicitly specifies 'java.nio.*' to keep library class 'java.nio.ByteBuffer'
Note: the configuration explicitly specifies 'java.nio.*' to keep library class 'java.nio.ByteOrder'
Note: the configuration explicitly specifies 'java.nio.*' to keep library class 'java.nio.CharBuffer'
Note: the configuration explicitly specifies 'java.nio.*' to keep library class 'java.nio.DoubleBuffer'
Note: the configuration explicitly specifies 'java.nio.*' to keep library class 'java.nio.FloatBuffer'
Note: the configuration explicitly specifies 'java.nio.*' to keep library class 'java.nio.IntBuffer'
Note: the configuration explicitly specifies 'java.nio.*' to keep library class 'java.nio.LongBuffer'
Note: the configuration explicitly specifies 'java.nio.*' to keep library class 'java.nio.MappedByteBuffer'
Note: the configuration explicitly specifies 'java.nio.*' to keep library class 'java.nio.ShortBuffer'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.ConnectionReuseStrategy'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.Header'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.HeaderElement'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.HeaderIterator'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.HttpClientConnection'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.HttpConnection'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.HttpEntity'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.HttpEntityEnclosingRequest'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.HttpException'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.HttpHost'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.HttpInetConnection'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.HttpMessage'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.HttpRequest'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.HttpRequestInterceptor'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.HttpResponse'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.HttpResponseInterceptor'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.HttpVersion'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.NameValuePair'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.NoHttpResponseException'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.ProtocolException'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.ProtocolVersion'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.RequestLine'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.StatusLine'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.auth.AuthScheme'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.auth.AuthSchemeRegistry'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.auth.AuthScope'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.auth.AuthState'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.auth.Credentials'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.auth.UsernamePasswordCredentials'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.AuthenticationHandler'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.CircularRedirectException'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.ClientProtocolException'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.CookieStore'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.CredentialsProvider'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.HttpClient'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.HttpRequestRetryHandler'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.HttpResponseException'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.RedirectException'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.RedirectHandler'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.RequestDirector'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.ResponseHandler'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.UserTokenHandler'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.entity.UrlEncodedFormEntity'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.methods.AbortableHttpRequest'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.methods.HttpDelete'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.methods.HttpEntityEnclosingRequestBase'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.methods.HttpGet'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.methods.HttpHead'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.methods.HttpPost'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.methods.HttpPut'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.methods.HttpRequestBase'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.methods.HttpUriRequest'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.utils.URIUtils'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.client.utils.URLEncodedUtils'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.ClientConnectionManager'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.ClientConnectionOperator'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.ClientConnectionRequest'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.ConnectionKeepAliveStrategy'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.ConnectionReleaseTrigger'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.ManagedClientConnection'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.params.ConnManagerPNames'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.params.ConnManagerParams'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.params.ConnPerRoute'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.params.ConnPerRouteBean'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.routing.HttpRoute'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.routing.HttpRoutePlanner'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.routing.RouteInfo'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.scheme.HostNameResolver'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.scheme.LayeredSocketFactory'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.scheme.PlainSocketFactory'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.scheme.Scheme'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.scheme.SchemeRegistry'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.scheme.SocketFactory'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.ssl.AbstractVerifier'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.ssl.BrowserCompatHostnameVerifier'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.ssl.SSLSocketFactory'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.conn.ssl.X509HostnameVerifier'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.cookie.ClientCookie'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.cookie.Cookie'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.cookie.CookieSpecRegistry'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.cookie.SetCookie'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.entity.AbstractHttpEntity'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.entity.HttpEntityWrapper'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.entity.StringEntity'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.impl.auth.AuthSchemeBase'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.impl.auth.BasicScheme'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.impl.auth.RFC2617Scheme'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.impl.client.AbstractHttpClient'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.impl.client.DefaultHttpClient'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.impl.client.DefaultRedirectHandler'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.impl.client.RedirectLocations'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.impl.conn.tsccm.AbstractConnPool'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.impl.conn.tsccm.RefQueueHandler'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.impl.cookie.BasicClientCookie'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.message.AbstractHttpMessage'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.message.BasicHeader'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.message.BasicNameValuePair'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.message.HeaderGroup'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.params.AbstractHttpParams'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.params.BasicHttpParams'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.params.CoreConnectionPNames'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.params.CoreProtocolPNames'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.params.HttpConnectionParams'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.params.HttpParams'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.params.HttpProtocolParams'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.protocol.BasicHttpContext'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.protocol.BasicHttpProcessor'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.protocol.HttpContext'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.protocol.HttpProcessor'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.protocol.HttpRequestExecutor'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.protocol.HttpRequestInterceptorList'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.protocol.HttpResponseInterceptorList'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.protocol.SyncBasicHttpContext'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.util.ByteArrayBuffer'
Note: the configuration explicitly specifies 'org.apache.http.**' to keep library class 'org.apache.http.util.CharArrayBuffer'
Note: there were 21 references to unknown classes.
      You should check your configuration for typos.
      (http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
Note: there were 1 references to unknown class members.
      You should check your configuration for typos.
Note: there were 1027 unkept descriptor classes in kept class members.
      You should consider explicitly keeping the mentioned classes
      (using '-keep').
      (http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)
Note: there were 128 library classes explicitly being kept.
      You don't need to keep library classes; they are already left unchanged.
      (http://proguard.sourceforge.net/manual/troubleshooting.html#libraryclass)
Note: there were 65 unresolved dynamic references to classes or interfaces.
      You should check if you need to specify additional program jars.
      (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)
Warning: there were 412 unresolved references to classes or interfaces.
         You may need to add missing library jars or update their versions.
         If your code works fine without the missing classes, you can suppress
         the warnings with '-dontwarn' options.
         (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
Warning: there were 6 unresolved references to program class members.
         Your input classes appear to be inconsistent.
         You may need to recompile the code.
         (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedprogramclassmember)
Warning: there were 2 unresolved references to library class members.
         You probably need to update the library versions.
         Alternatively, you may have to specify the option 
         '-dontskipnonpubliclibraryclassmembers'.
         (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedlibraryclassmember)
Warning: Exception while processing task java.io.IOException: Please correct the above warnings first.
:app:transformClassesAndResourcesWithProguardForRelease FAILED

FAILURE: Build failed with an exception.

Jenkins打包问题之:Note: the configuration explicitly specifies '**' to keep library class ***._第1张图片

jenkins打包报这个错,其实报的错很明显。就是项目中引用了未知的类,建议添加'org.apache.http.**'和'java.nio.*'到混淆文件中,keep.完美解决

上面那个操作无效。

加下面这句完美解决

Jenkins打包问题之:Note: the configuration explicitly specifies '**' to keep library class ***._第2张图片

-ignorewarnings -keep class * { public private *; }

 

你可能感兴趣的:(Jenkins打包问题之:Note: the configuration explicitly specifies '**' to keep library class ***.)