Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/180.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Proguard与firebase FCM发生故障_Android_Firebase_Proguard_Android Proguard - Fatal编程技术网

Android Proguard与firebase FCM发生故障

Android Proguard与firebase FCM发生故障,android,firebase,proguard,android-proguard,Android,Firebase,Proguard,Android Proguard,您好,我正在我的应用程序中使用Google Firebase云消息 在使用FCM之前,我能够使用buildToolsVersion 23.0.2 当我更新了buildToolsVersion 25.0.2并添加了一些firebase依赖项时,我突然遇到了一个异常: Warning: there were 1 unresolved references to library class members. You probably need to update the librar

您好,我正在我的应用程序中使用Google Firebase云消息

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

当我更新了
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参考,从这里开始,我将解析SDK添加为外部项目,并根据我的需要对src代码进行少量修改。

听起来好像您更改了一些不同的内容,然后注意到了一个问题。你能把范围缩小到引起问题的单一变化吗?我们中没有人能做到。你找到解决办法了吗?你解决这个问题了吗?听起来你改变了几个不同的事情,然后发现了一个问题。你能把范围缩小到引起问题的单一变化吗?我们谁也做不到。你找到解决办法了吗?你解决这个问题了吗?