Как устранить предупреждения Proguard с помощью -keepAndroid

Форум для тех, кто программирует под Android
Ответить Пред. темаСлед. тема
Anonymous
 Как устранить предупреждения Proguard с помощью -keep

Сообщение Anonymous »

Пожалуйста, пропустите следующий длинный список предупреждений и дочитайте до нижней части, где я сжал длинный список и показал, как я пытался решить эту проблему.
У меня есть приложение, которое выдает множество предупреждений, из-за которых оно аварийно завершает работу при включении proguard:

Код: Выделить всё

Warning: com.ctc.wstx.osgi.WstxBundleActivator: can't find superclass or interface org.osgi.framework.BundleActivator
Warning: okhttp3.internal.platform.ConscryptPlatform$DisabledHostnameVerifier: can't find superclass or interface org.conscrypt.ConscryptHostnameVerifier
Warning: com.ctc.wstx.dtd.DTDSchemaFactory: can't find referenced class aQute.bnd.annotation.spi.ServiceProvider
Warning: com.ctc.wstx.msv.RelaxNGSchemaFactory: can't find referenced class aQute.bnd.annotation.spi.ServiceProvider
Warning: com.ctc.wstx.msv.W3CSchemaFactory: can't find referenced class aQute.bnd.annotation.spi.ServiceProvider
Warning: com.ctc.wstx.osgi.WstxBundleActivator: can't find referenced class org.osgi.framework.BundleContext
Warning: com.ctc.wstx.osgi.WstxBundleActivator: can't find referenced class org.osgi.framework.BundleActivator
Warning: com.ctc.wstx.osgi.WstxBundleActivator: can't find referenced class org.osgi.framework.BundleContext
Warning: com.ctc.wstx.osgi.WstxBundleActivator: can't find referenced class org.osgi.framework.BundleContext
Warning: com.ctc.wstx.osgi.WstxBundleActivator: can't find referenced class org.osgi.framework.BundleContext
Warning: com.ctc.wstx.osgi.WstxBundleActivator: can't find referenced class org.osgi.framework.BundleContext
Warning: com.ctc.wstx.osgi.WstxBundleActivator: can't find referenced class org.osgi.framework.BundleContext
Warning: com.ctc.wstx.osgi.WstxBundleActivator: can't find referenced class org.osgi.framework.BundleContext
Warning: com.ctc.wstx.shaded.msv_core.driver.textui.ReportErrorHandler: can't find referenced class com.ctc.wstx.shaded.msv_core.driver.textui.Driver
Warning: com.ctc.wstx.shaded.msv_core.driver.textui.ReportErrorHandler: can't find referenced class com.ctc.wstx.shaded.msv_core.driver.textui.Driver
Warning: com.ctc.wstx.shaded.msv_core.driver.textui.ReportErrorHandler: can't find referenced class com.ctc.wstx.shaded.msv_core.driver.textui.Driver
Warning: com.ctc.wstx.stax.WstxEventFactory: can't find referenced class aQute.bnd.annotation.spi.ServiceProvider
Warning: com.ctc.wstx.stax.WstxInputFactory: can't find referenced class aQute.bnd.annotation.spi.ServiceProvider
Warning: com.ctc.wstx.stax.WstxOutputFactory: can't find referenced class aQute.bnd.annotation.spi.ServiceProvider
Warning: okhttp3.internal.platform.Android10Platform: can't find referenced class android.security.NetworkSecurityPolicy
Warning: okhttp3.internal.platform.Android10Platform: can't find referenced class android.security.NetworkSecurityPolicy
Warning: okhttp3.internal.platform.Android10Platform: can't find referenced class android.security.NetworkSecurityPolicy
Warning: okhttp3.internal.platform.Android10Platform: can't find referenced class android.os.Build$VERSION
Warning: okhttp3.internal.platform.Android10Platform: can't find referenced class android.os.Build$VERSION
Warning: okhttp3.internal.platform.AndroidPlatform: can't find referenced class android.os.Build$VERSION
Warning: okhttp3.internal.platform.AndroidPlatform: can't find referenced class android.os.Build$VERSION
Warning: okhttp3.internal.platform.AndroidPlatform: can't find referenced class android.security.NetworkSecurityPolicy
Warning: okhttp3.internal.platform.AndroidPlatform: can't find referenced class android.security.NetworkSecurityPolicy
Warning: okhttp3.internal.platform.AndroidPlatform: can't find referenced class android.security.NetworkSecurityPolicy
Warning: okhttp3.internal.platform.AndroidPlatform: can't find referenced class android.security.NetworkSecurityPolicy
Warning: okhttp3.internal.platform.BouncyCastlePlatform: can't find referenced class org.bouncycastle.jsse.BCSSLSocket
Warning: okhttp3.internal.platform.BouncyCastlePlatform: can't find referenced class org.bouncycastle.jsse.BCSSLSocket
Warning: okhttp3.internal.platform.BouncyCastlePlatform: can't find referenced class org.bouncycastle.jsse.BCSSLParameters
Warning: okhttp3.internal.platform.BouncyCastlePlatform: can't find referenced class org.bouncycastle.jsse.BCSSLParameters
Warning: okhttp3.internal.platform.BouncyCastlePlatform: can't find referenced class org.bouncycastle.jsse.BCSSLSocket
Warning: okhttp3.internal.platform.BouncyCastlePlatform: can't find referenced class org.bouncycastle.jsse.BCSSLSocket
Warning: okhttp3.internal.platform.BouncyCastlePlatform: can't find referenced class org.bouncycastle.jsse.provider.BouncyCastleJsseProvider
Warning: okhttp3.internal.platform.BouncyCastlePlatform:  can't find referenced class org.bouncycastle.jsse.provider.BouncyCastleJsseProvider
Warning: okhttp3.internal.platform.BouncyCastlePlatform: can't find referenced class org.bouncycastle.jsse.BCSSLParameters
Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.ConscryptHostnameVerifier
Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt
Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt
Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt
Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt
Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt
Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt
Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt
Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt
Warning: okhttp3.internal.platform.ConscryptPlatform$Companion: can't find referenced class org.conscrypt.Conscrypt
Warning: okhttp3.internal.platform.ConscryptPlatform$Companion: can't find referenced class org.conscrypt.Conscrypt
Warning: okhttp3.internal.platform.ConscryptPlatform$Companion: can't find referenced class org.conscrypt.Conscrypt$Version
Warning: okhttp3.internal.platform.ConscryptPlatform$Companion: can't find referenced class org.conscrypt.Conscrypt$Version
Warning: okhttp3.internal.platform.ConscryptPlatform$Companion: can't find referenced class org.conscrypt.Conscrypt$Version
Warning: okhttp3.internal.platform.ConscryptPlatform$Companion: can't find referenced class org.conscrypt.Conscrypt$Version
Warning: okhttp3.internal.platform.ConscryptPlatform$Companion: can't find referenced class org.conscrypt.Conscrypt$Version
Warning: okhttp3.internal.platform.ConscryptPlatform$DisabledHostnameVerifier: can't find referenced class org.conscrypt.ConscryptHostnameVerifier
Warning: okhttp3.internal.platform.OpenJSSEPlatform: can't find referenced class org.openjsse.javax.net.ssl.SSLSocket
Warning: okhttp3.internal.platform.OpenJSSEPlatform: can't find referenced class org.openjsse.javax.net.ssl.SSLSocket
Warning: okhttp3.internal.platform.OpenJSSEPlatform: can't find referenced class org.openjsse.javax.net.ssl.SSLParameters
Warning: okhttp3.internal.platform.OpenJSSEPlatform: can't find referenced class org.openjsse.javax.net.ssl.SSLParameters
Warning: okhttp3.internal.platform.OpenJSSEPlatform: can't find referenced class org.openjsse.javax.net.ssl.SSLSocket
Warning: okhttp3.internal.platform.OpenJSSEPlatform: can't find referenced class org.openjsse.javax.net.ssl.SSLSocket
Warning: okhttp3.internal.platform.OpenJSSEPlatform: can't find referenced class org.openjsse.net.ssl.OpenJSSE
Warning: okhttp3.internal.platform.OpenJSSEPlatform: can't find referenced class org.openjsse.net.ssl.OpenJSSE
Warning: okhttp3.internal.platform.android.Android10SocketAdapter: can't find referenced class android.net.ssl.SSLSockets
Warning: okhttp3.internal.platform.android.Android10SocketAdapter: can't find referenced class android.net.ssl.SSLSockets
Warning: okhttp3.internal.platform.android.Android10SocketAdapter: can't find referenced class android.net.ssl.SSLSockets
Warning: okhttp3.internal.platform.android.Android10SocketAdapter$Companion: can't find referenced class android.os.Build$VERSION
Warning: okhttp3.internal.platform.android.Android10SocketAdapter$Companion: can't find referenced class android.os.Build$VERSION
Warning: okhttp3.internal.platform.android.AndroidCertificateChainCleaner: can't find referenced class android.net.http.X509TrustManagerExtensions
Warning: okhttp3.internal.platform.android.AndroidCertificateChainCleaner: can't find referenced class android.net.http.X509TrustManagerExtensions
Warning: okhttp3.internal.platform.android.AndroidCertificateChainCleaner: can't find referenced class android.net.http.X509TrustManagerExtensions
Warning: okhttp3.internal.platform.android.AndroidCertificateChainCleaner: can't find referenced class android.net.http.X509TrustManagerExtensions
Warning: okhttp3.internal.platform.android.AndroidCertificateChainCleaner: can't find referenced class android.net.http.X509TrustManagerExtensions
Warning: okhttp3.internal.platform.android.AndroidCertificateChainCleaner$Companion: can't find referenced class android.net.http.X509TrustManagerExtensions
Warning: okhttp3.internal.platform.android.AndroidCertificateChainCleaner$Companion: can't find referenced class android.net.http.X509TrustManagerExtensions
Warning:  okhttp3.internal.platform.android.AndroidCertificateChainCleaner$Companion: can't find referenced class android.net.http.X509TrustManagerExtensions
Warning: okhttp3.internal.platform.android.AndroidLog: can't find referenced class android.util.Log
Warning: okhttp3.internal.platform.android.AndroidLog: can't find referenced class android.util.Log
Warning: okhttp3.internal.platform.android.AndroidLog: can't find referenced class android.util.Log
Warning: okhttp3.internal.platform.android.AndroidLog: can't find referenced class android.util.Log
Warning: okhttp3.internal.platform.android.BouncyCastleSocketAdapter: can't find referenced class org.bouncycastle.jsse.BCSSLSocket
Warning: okhttp3.internal.platform.android.BouncyCastleSocketAdapter: can't find referenced class org.bouncycastle.jsse.BCSSLSocket
Warning: okhttp3.internal.platform.android.BouncyCastleSocketAdapter: can't find referenced class org.bouncycastle.jsse.BCSSLSocket
Warning: okhttp3.internal.platform.android.BouncyCastleSocketAdapter: can't find referenced class org.bouncycastle.jsse.BCSSLParameters
Warning: okhttp3.internal.platform.android.BouncyCastleSocketAdapter: can't find referenced class org.bouncycastle.jsse.BCSSLParameters
Warning: okhttp3.internal.platform.android.BouncyCastleSocketAdapter: can't find referenced class org.bouncycastle.jsse.BCSSLSocket
Warning: okhttp3.internal.platform.android.BouncyCastleSocketAdapter: can't find referenced class org.bouncycastle.jsse.BCSSLSocket
Warning: okhttp3.internal.platform.android.BouncyCastleSocketAdapter: can't find referenced class org.bouncycastle.jsse.BCSSLParameters
Warning: okhttp3.internal.platform.android.BouncyCastleSocketAdapter: can't find referenced class org.bouncycastle.jsse.BCSSLSocket
Warning: okhttp3.internal.platform.android.BouncyCastleSocketAdapter$Companion$factory$1: can't find referenced class org.bouncycastle.jsse.BCSSLSocket
Warning: okhttp3.internal.platform.android.ConscryptSocketAdapter: can't find referenced class org.conscrypt.Conscrypt
Warning: okhttp3.internal.platform.android.ConscryptSocketAdapter: can't find referenced class org.conscrypt.Conscrypt
Warning: okhttp3.internal.platform.android.ConscryptSocketAdapter: can't find referenced class org.conscrypt.Conscrypt
Warning: okhttp3.internal.platform.android.ConscryptSocketAdapter: can't find referenced class org.conscrypt.Conscrypt
Warning: okhttp3.internal.platform.android.ConscryptSocketAdapter: can't find referenced class org.conscrypt.Conscrypt
Warning: okhttp3.internal.platform.android.ConscryptSocketAdapter$Companion$factory$1: can't find referenced class org.conscrypt.Conscrypt
Warning: okhttp3.internal.platform.android.ConscryptSocketAdapter$Companion$factory$1: can't find referenced class org.conscrypt.Conscrypt
Warning: retrofit2.AndroidMainExecutor: can't find referenced class android.os.Handler
Warning: retrofit2.AndroidMainExecutor: can't find referenced class android.os.Looper
Warning: retrofit2.AndroidMainExecutor: can't find referenced class android.os.Handler
Warning: retrofit2.AndroidMainExecutor: can't find referenced class android.os.Handler
Warning: retrofit2.AndroidMainExecutor: can't find referenced class android.os.Looper
Warning: retrofit2.AndroidMainExecutor: can't find referenced class android.os.Handler
Warning: retrofit2.BuiltInConverters: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.BuiltInConverters: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.BuiltInFactories: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.BuiltInFactories$Java8: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.BuiltInFactories$Java8: can't find referenced class android.annotation.TargetApi
Warning: retrofit2.CallAdapter$Factory: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.CompletableFutureCallAdapterFactory: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.CompletableFutureCallAdapterFactory: can't find referenced class android.annotation.TargetApi
Warning: retrofit2.Converter: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Converter$Factory: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Converter$Factory: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Converter$Factory: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.DefaultCallAdapterFactory: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.DefaultCallAdapterFactory: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.DefaultCallAdapterFactory: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.DefaultMethodSupport:  can't find referenced class javax.annotation.Nullable
Warning: retrofit2.DefaultMethodSupport: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.DefaultMethodSupport: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.HttpException: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.HttpServiceMethod: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.HttpServiceMethod: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Invocation: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Invocation: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Invocation: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.OkHttpCall: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.OkHttpCall: can't find referenced class javax.annotation.concurrent.GuardedBy
Warning: retrofit2.OkHttpCall: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.OkHttpCall: can't find referenced class javax.annotation.concurrent.GuardedBy
Warning: retrofit2.OkHttpCall: can't find referenced class javax.annotation.concurrent.GuardedBy
Warning: retrofit2.OkHttpCall: can't find referenced class javax.annotation.concurrent.GuardedBy
Warning: retrofit2.OkHttpCall$ExceptionCatchingResponseBody: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.OkHttpCall$NoContentResponseBody: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.OkHttpCall$NoContentResponseBody: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.OptionalConverterFactory: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.OptionalConverterFactory: can't find referenced class android.annotation.TargetApi
Warning: retrofit2.ParameterHandler: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$1: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$1: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$2: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$Body: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$Field: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$FieldMap: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$FieldMap: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$Header: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$HeaderMap: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$HeaderMap: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$Headers: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$Headers: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$Part: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$PartMap: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$PartMap: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$Path: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$Query: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$QueryMap: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$QueryMap: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$QueryName: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$RawPart: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$RawPart: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$RelativeUrl: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ParameterHandler$Tag: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Platform: can't find referenced class android.os.Build$VERSION
Warning: retrofit2.Platform: can't find referenced class android.os.Build$VERSION
Warning: retrofit2.Platform: can't find referenced class android.os.Build
Warning: retrofit2.Platform: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Reflection: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Reflection:  can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Reflection$Android24: can't find referenced class android.os.Build$VERSION
Warning: retrofit2.Reflection$Android24: can't find referenced class android.os.Build$VERSION
Warning: retrofit2.Reflection$Android24: can't find referenced class android.os.Build
Warning: retrofit2.Reflection$Android24: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Reflection$Android24: can't find referenced class android.annotation.TargetApi
Warning: retrofit2.Reflection$Java8: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestBuilder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestBuilder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestBuilder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestBuilder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestBuilder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestBuilder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestBuilder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestBuilder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestBuilder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestBuilder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestBuilder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestFactory: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestFactory: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestFactory: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestFactory: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestFactory$Builder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestFactory$Builder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestFactory$Builder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestFactory$Builder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestFactory$Builder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestFactory$Builder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestFactory$Builder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestFactory$Builder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.RequestFactory$Builder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Response: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Response: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Response: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Response: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Response: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Response: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Response: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Response: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Response: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Response: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Retrofit: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Retrofit: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Retrofit: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Retrofit: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Retrofit: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Retrofit: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Retrofit$1: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Retrofit$1: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Retrofit$Builder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Retrofit$Builder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Retrofit$Builder: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.ServiceMethod: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Utils:  can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Utils: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Utils: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Utils$ParameterizedTypeImpl: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Utils$ParameterizedTypeImpl: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Utils$ParameterizedTypeImpl: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.Utils$WildcardTypeImpl: can't find referenced class javax.annotation.Nullable
Warning: retrofit2.internal.EverythingIsNonNull: can't find referenced class javax.annotation.Nonnull
Warning: retrofit2.internal.EverythingIsNonNull: can't find referenced class javax.annotation.meta.TypeQualifierDefault
Я сжал этот список до списка «Не могу найти указанный класс»:

Код: Выделить всё

org.osgi.framework.BundleActivator
org.conscrypt.ConscryptHostnameVerifier
aQute.bnd.annotation.spi.ServiceProvider
org.osgi.framework.BundleContext
com.ctc.wstx.shaded.msv_core.driver.textui.Driver
android.security.NetworkSecurityPolicy
android.os.Build$VERSION
org.bouncycastle.jsse.BCSSLSocket
org.bouncycastle.jsse.BCSSLParameters
org.bouncycastle.jsse.provider.BouncyCastleJsseProvider
org.conscrypt.Conscrypt
org.conscrypt.Conscrypt$Version
org.openjsse.javax.net.ssl.SSLSocket
org.openjsse.javax.net.ssl.SSLParameters
org.openjsse.net.ssl.OpenJSSE
android.net.ssl.SSLSockets
android.net.http.X509TrustManagerExtensions
android.util.Log
android.os.Handler
android.os.Looper
javax.annotation.Nullable
javax.annotation.concurrent.GuardedBy
javax.annotation.Nonnull
javax.annotation.meta.TypeQualifierDefault
android.annotation.TargetApi
android.os.Build
Поэтому я добавил в proguard следующие правила:

Код: Выделить всё

-keep class org.osgi.framework.BundleActivator { *; }
-keep class org.conscrypt.ConscryptHostnameVerifier { *; }
-keep class aQute.bnd.annotation.spi.ServiceProvider { *; }
-keep class org.osgi.framework.BundleContext { *; }
-keep class com.ctc.wstx.shaded.msv_core.driver.textui.Driver { *; }
-keep class android.security.NetworkSecurityPolicy { *; }
-keep class android.os.Build$VERSION { *; }
-keep class org.bouncycastle.jsse.BCSSLSocket { *; }
-keep class org.bouncycastle.jsse.BCSSLParameters { *; }
-keep class org.bouncycastle.jsse.provider.BouncyCastleJsseProvider { *; }
-keep class org.conscrypt.Conscrypt { *; }
-keep class org.conscrypt.Conscrypt$Version { *; }
-keep class org.openjsse.javax.net.ssl.SSLSocket { *; }
-keep class org.openjsse.javax.net.ssl.SSLParameters { *; }
-keep class org.openjsse.net.ssl.OpenJSSE { *; }
-keep class android.net.ssl.SSLSockets { *; }
-keep class android.net.http.X509TrustManagerExtensions { *; }
-keep class android.util.Log { *; }
-keep class android.os.Handler { *; }
-keep class android.os.Looper { *; }
-keep class javax.annotation.Nullable { *; }
-keep class javax.annotation.concurrent.GuardedBy { *; }
-keep class javax.annotation.Nonnull { *; }
-keep class javax.annotation.meta.TypeQualifierDefault { *; }
-keep class android.annotation.TargetApi { *; }
-keep class android.os.Build { *; }
Ну, когда я запускаю приложение, оно выдает мне ровно 231 предупреждение, как если бы я не добавлял никаких правил.
Что я делаю? я делаю неправильно?

Подробнее здесь: https://stackoverflow.com/questions/793 ... -with-keep
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Android»