Coder Social home page Coder Social logo

Comments (4)

nicolas-maalouf-cko avatar nicolas-maalouf-cko commented on July 22, 2024

@naushadqamar , what version of the Java SDK are you on?

from checkoutkit-android.

anantshah93 avatar anantshah93 commented on July 22, 2024

Same issue not able to compile project.....
I am using android API 24,

Error:unsupported class file version 52.0
Error:...while parsing com/checkout/CardValidator.class

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.

com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

from checkoutkit-android.

anantshah93 avatar anantshah93 commented on July 22, 2024

Finally i found the solution

Change this code from checkoutkit. It is because of project is bound to JDK 7, but you have installed and using JDK 8, then all modules that were used in a project have to be compatible with JDK 7 and explicitly specified to use it, and if you are using Android SDK 23 and below that is the case. Otherwise, there will be an error because JDK 7 can't parse class files which were compiled by JDK 8 and have the version 52.

apply plugin: 'java'
dependencies {
testCompile 'junit:junit:4.+'
compile 'com.google.code.gson:gson:2.3.1'
testCompile 'com.github.tomakehurst:wiremock:1.57'
sourceCompatibility = 1.7
targetCompatibility = 1.7
}

from checkoutkit-android.

nicolas-maalouf-cko avatar nicolas-maalouf-cko commented on July 22, 2024

@anantshah93
Thank you for sharing your solution;
We updated the plugin to support JDK 8

from checkoutkit-android.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.