Comments (4)
@naushadqamar , what version of the Java SDK are you on?
from checkoutkit-android.
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.
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.
@anantshah93
Thank you for sharing your solution;
We updated the plugin to support JDK 8
from checkoutkit-android.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from checkoutkit-android.