Proguard失败了firebase FCM

时间:2017-01-21 13:13:55

标签: android firebase proguard android-proguard

我刚刚在我的应用程序中使用Google Firebase云消息传递。

在使用FCM之前,我能够使用buildToolsVersion 23.0.2

生成发布apk

因为我更新了buildToolsVersion 25.0.2并添加了一些firebase依赖项,所以我突然异常:

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
:app:transformClassesAndResourcesWithProguardForRelease (Thread[Task worker Thread 6,5,main]) completed. Took 4.354 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
> Job failed, see logs for details

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

我需要为firebase添加proguard.txt吗?

我的Firebase依赖关系如下:

compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.google.firebase:firebase-messaging:10.0.1'

此外我正在使用自定义解析SDK 引用此处https://github.com/ParsePlatform/Parse-SDK-Android/tree/master/Parse,我将解析sdk添加为外部项目,根据我的src代码稍作修改需要。

0 个答案:

没有答案