не генерировать петь apk. но не ошибка при запуске приложения.генерировать петь ошибки apk
При запуске ProGuard в нашем приложении и создании apk мы видим следующее предупреждение.
Warning:com.localytics.android.SessionHandler$15: can't find referenced method 'void setLatestEventInfo(android.content.Context,java.lang.CharSequence,java.lang.CharSequence,android.app.PendingIntent)' in library class android.app.Notification
Warning:there were 1 unresolved references to library class members.
You probably need to update the library versions.
(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
Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
java.io.IOException: Please correct the above warnings first.
не работает (-keep класс org.apache.http **. {*}.. -dontwarn org.apache.http ** -dontwarn android.net **) –
Вы можете попробовать положить -keep class org.apache.http. ** {*; } -dontwarn org.apache.http. ** -dontwarn android.net. ** – Pomagranite
Я добавил, но не работал –