Подтвердить что ты не робот

Pro Guard ошибка сборки релиз apk

Я получаю следующую ошибку, пытающуюся создать apk-релиз

:app:compileReleaseNdk UP-TO-DATE
:app:compileReleaseSources
:app:lintVitalRelease
:app:proguardRelease
Warning: android.support.v4.app.NotificationCompat$NotificationCompatImplBase: 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: android.support.v4.app.NotificationCompat$NotificationCompatImplGingerbread: 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: android.support.v4.app.NotificationCompatGingerbread: 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 3 unresolved references to library class members.
         You probably need to update the library versions.
         (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedlibraryclassmember)
:app:proguardRelease FAILED

В build.gradle у меня есть это:

зависимости {   compile "com.android.support:support-v4:23.0.0" }

И по-прежнему получаю ту же ошибку, если я изменю ее на "com.android.support:support-v13:23.0.0"

Когда сообщение об ошибке говорит об этом: "Вероятно, вам необходимо обновить версии библиотеки". В какой библиотеке она ссылается и как ее обновить?

В документации, указанной в сообщении об ошибке, говорится:  "If you're developing for Android and ProGuard complains that it can't find a method that is only available in a recent version of the Android run-time, you should change the build target in your project.properties file or build.gradle file to that recent version. You can still specify a different minSdkVersion and a different targetSdkVersion in your AndroidManifest.xml file."

Вот мой build.gradle, который является самым последним, поскольку есть его API 23. Итак, как я могу исправить проблему?

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        applicationId "com.cequint.ecid"
        minSdkVersion 23
        compileSdkVersion 23
    }
4b9b3361

Ответ 1

Я добавил это к pro guard.cfg, и он сработал:

-dontwarn android.support.v4.**