库版本 11.2.0 的 firebase ProGuard 错误(警告)
firebase ProGuard error (warning) with library version 11.2.0
我正在研究 11.0.4 firebase 库版本。今天我切换到最新版本:11.2.0,当我尝试构建发布版本(启用 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)
我使用的是API 25 (rev.3),方法isInstantApp
是在API 26中添加的。将targetSdkVersion
改成这个版本解决了这个问题。
还不想开始使用runtime权限的朋友,可以不用增加targetSdkVersion,增加compileSdkVersion即可。
我正在研究 11.0.4 firebase 库版本。今天我切换到最新版本:11.2.0,当我尝试构建发布版本(启用 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)
我使用的是API 25 (rev.3),方法isInstantApp
是在API 26中添加的。将targetSdkVersion
改成这个版本解决了这个问题。
还不想开始使用runtime权限的朋友,可以不用增加targetSdkVersion,增加compileSdkVersion即可。