Firebase ProGuard错误(警告)与库版本11.2.0

我正在开发11.0.4版本的firebase库。 今天,我已经切换到最新的:11.2.0,当我尝试构build发行版(与ProGuard上)我得到的错误:

Warning:com.google.android.gms.internal.zzbdo: can't find referenced method 'boolean isInstantApp(java.lang.String)' in library class android.content.pm.PackageManager Warning:there were 1 unresolved references to library class members. Warning:Exception while processing task java.io.IOException: Please correct the above warnings first. Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'. > Job failed, see logs for details 

和gradle控制台:

 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) 

Related of "Firebase ProGuard错误(警告)与库版本11.2.0"

我正在使用API​​ 25(rev.3),方法isInstantApp被添加到API 26中。将targetSdkVersion更改为此版本重新解决了此问题。

https://github.com/android/platform_frameworks_base/commit/31a16551910492321a6f7c291eb33e1458f39f0a#diff-a5f0b5ebe6a871aca1c5841bc0497538

对于那些不想开始使用运行时权限的人,你不需要增加targetSdkVersion就可以增加compileSdkVersion就足够了。