cloudinary/cloudinary_java

Missing Singleton Class in com.cloudinary.Singleton

BYH535 opened this issue · 3 comments

Hi, I am using the cloudinary API version 1.0.14 and I have created a class exactly like cloudinary_java/samples/photo_album/src/main/java/cloudinary/models/PhotoUpload.java but I have got this error :
untitled

Can you please share your pom.xml and did you try with the latest version 1.19.0?

The error comes when I try to work with
<dependency> <groupId>com.cloudinary</groupId> <artifactId>cloudinary</artifactId> <version>1.0.14</version> </dependency>
, but when using
image
, the error is gone

Singleton class is part of the taglib library. Make sure to add the cloudinary-taglib to your pom and it will work. It is always recommended to use the latest version. With the older version also Singleton will work if cloudinary-taglib is added.

<dependency> <groupId>com.cloudinary</groupId> <artifactId>cloudinary-taglib</artifactId> <version>1.0.14</version> </dependency>