如何修复未实现的错误..(此代码将抛出错误)

时间:2016-11-22 09:19:25

标签: android cloudinary

这是我的代码:

try {
    System.out.println("Cloudinaryyyy 0000  :");
    Map result = cloudinary.api().resources(ObjectUtils.asMap("resource_type","raw"));
    System.out.println("Cloudinaryyyy  :"+result);
}
catch (IOException e) {
    Log.d("DownloadManager", "Error:" + e);
}
catch (NetworkOnMainThreadException e) {
    System.out.println("Error 3" + e);
} catch (Exception e) {
    e.printStackTrace();
    System.out.println("Error 3" + e);
} 

在cloudinary中它抛出异常。

1 个答案:

答案 0 :(得分:0)

您还记得配置Cloudinary对象吗?

Map config = new HashMap();
config.put("cloud_name", "n07t21i7");
config.put("api_key", "123456789012345");
config.put("api_secret", "abcdeghijklmnopqrstuvwxyz12");
Cloudinary cloudinary = new Cloudinary(config);

此外,您可以尝试在https://github.com/cloudinary/cloudinary_java

上运行示例项目