Giphy android sdk在发布构建时不返回任何数据

Giphy android sdk在发布构建时不返回任何数据,android,giphy,Android,Giphy,giphy用于获取趋势gif的示例代码为 /// Trending Gifs client.trending(MediaType.gif, null, null, null, new CompletionHandler<ListMediaResponse>() { @Override public void onComplete(ListMediaResponse result, Throwable e) { if (result == null)

giphy用于获取趋势gif的示例代码为

/// Trending Gifs
client.trending(MediaType.gif, null, null, null, new 
CompletionHandler<ListMediaResponse>() {
    @Override
    public void onComplete(ListMediaResponse result, Throwable e) {
        if (result == null) {
            // Do what you want to do with the error
        } else {
            if (result.getData() != null) {  //Problem on release build
                for (Media gif : result.getData()) {
                    Log.v("giphy", gif.getId());
                }
            } else {
                Log.e("giphy error", "No results found");
            }
        }
    }
});

这段代码在开发环境中运行良好。但在发布版本中,build result.getData始终返回null。我想不出是什么问题。我也试过使用giphy的生产密钥,但没有成功

需要为giphy添加proguard规则

-keepclassmembernames class com.giphy.sdk.core.models.** { *; }
-keepclassmembernames class com.giphy.sdk.core.network.response.** { *; }
-keepattributes *Annotation*
-dontwarn com.giphy.sdk.core.**