Error:Error converting bytecode to dex: Cauase: Dex cannot parse version 52 byte code. This is caused by library dependencies that have been compiled using Java 8 or above. If you are using the 'java' gradle plugin in a library submodule add targetCompatibility = '1.7' sourceCompatibility = '1.7' to that submodule's build.gradle file.

Error:Execution failed for task ':AndroidAppDemo:transformClassesWithPreJackPackagedLibrariesForDebug'.
> Jack requires Build Tools 24.0.0 or later

Use java 1.8 and latest build tools and compile with  jack option

compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
 defaultConfig {
jackOptions {
Jack is a new tool that compile java source into dex byte code. 
Its completely open source.


Popular posts from this blog

What is Android ?