Chargily / chargily-epay-java

Java Library for Chargily ePay Gateway
https://dev.chargily.com/docs/#/epay-java
MIT License
5 stars 5 forks source link

Is a particular Java JDK version necessary? #12

Closed moulayghaitaoui closed 1 year ago

moulayghaitaoui commented 1 year ago

porject {https://github.com/moulayghaitaoui/Import_chargily_epay_java_Android.git } image

mrsofiane commented 1 year ago

Hello @moulayghaitaoui, java 17 is required to use the v1.1 and java 16 to use the v1.0

moulayghaitaoui commented 1 year ago

Hello @mrsofiane I use java 17 version "17.0.8" 2023-07-18 LTS is required to use the v1.1 But I'm having difficulty In reaching class invoice image

mrsofiane commented 1 year ago

Hello @moulayghaitaoui , thanks for report, i see it's another dependency, you can add implementation 'com.github.mvallim:java-fluent-validator:1.10.0'


Going to open a PR to fix this library dependency.

moulayghaitaoui commented 1 year ago

Hello @mrsofiane When adding the library 'implementation 'com.github.mvallim:java-fluent-validator:1.10.0' A conflict occurs with duplicate classes in project dependencies. image

aziz011133 commented 1 year ago

@moulayghaitaoui Did you find a solution? I also have the same issue.

aziz011133 commented 1 year ago

@moulayghaitaoui
Annotation 2023-09-09 154813

error duplicat class

moulayghaitaoui commented 1 year ago

Hello @aziz011133 No, I did not know the solution

mrsofiane commented 1 year ago

Hello @moulayghaitaoui @aziz011133 , you are having a class duplication error, you can exclude it to remove the conflicts. can you provide a simple app to check the error.

aziz011133 commented 1 year ago

@mrsofiane Yes, when you implement the library, an error may appear indicating class duplication without using it The problem is with the library itself and a simple app to check the error. project https://github.com/aziz011133/testpay

mrsofiane commented 1 year ago

Hello @aziz011133, i see your having duplicates with org.aspecjt , you can exclude it with

implementation ('com.github.chargily:chargily-epay-java:1.1.1') { exclude group: "org.aspectj" }

moulayghaitaoui commented 1 year ago

Hello @mrsofiane The problem is still even after the library is included implementation ('com.github.chargily:chargily-epay-java:1.1.1') { exclude group: "org.aspectj" } project : https://github.com/moulayghaitaoui/Import_chargily_epay_java_Android.git error image

mrsofiane commented 1 year ago

Remove implementation 'com.github.mvallim:java-fluent-validator:1.10.0 you dont need it in v1.1.1

moulayghaitaoui commented 1 year ago

Still the problem even after deleting the library implementation 'com.github.mvallim:java-fluent-validator:1.10.0

moulayghaitaoui commented 1 year ago

Still the problem even after deleting the library implementation 'com.github.mvallim:java-fluent-validator:1.10.0

mrsofiane commented 1 year ago

Hello @moulayghaitaoui , i cant help you more unless you provide more informations, try to use gradle dependencies to see where the org.aspectj is used. i see that you import retrofit, in v1.1.1 you can remove it it will be imported automatically.

mrsofiane commented 1 year ago

@moulayghaitaoui open another issue, make sure you provide more information not just a screenshot.