这是我的代码:
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中它抛出异常。
答案 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);
上运行示例项目