JRebel and Java 8 support

ZeroTurnaround Homepage Forums JRebel Support JRebel and Java 8 support

This topic contains 1 reply, has 2 voices, and was last updated by  Hannes Metssalu 5 months, 4 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #61782

    Bruno Lucena
    Member

    Hi,

    I cannot use the JRelbel, since the Android Studio gives me an Error when i try to run it via pluggin.

    This is my problem:

    Error:A problem occurred configuring project ‘:app’.
    > Jack is required to support java 8 language features. Either enable Jack or remove sourceCompatibility JavaVersion.VERSION_1_8.

    This is my gradle file:

    apply plugin: 'com.android.application'
    
    android {
        compileSdkVersion 25
        buildToolsVersion "25.0.2"
        signingConfigs {
            release {
                keyAlias keystoreProperties['keyAlias']
                keyPassword keystoreProperties['keyPassword']
                storeFile file('/home/wayne/.android/release.keystore')
                storePassword keystoreProperties['storePassword']
            }
        }
        buildTypes.each {
            it.buildConfigField 'String', 'API_KEY', keystoreProperties['apiKey']
        }
        defaultConfig {
            applicationId "de.bvlg900f.projectonemvp"
            minSdkVersion 24
            targetSdkVersion 25
            versionCode 1
            versionName "1.0"
    
            testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    
            jackOptions {
                enabled true
            }
            compileOptions {
                sourceCompatibility JavaVersion.VERSION_1_8
                targetCompatibility JavaVersion.VERSION_1_8
            }
    
        }
        buildTypes {
            debug {
                debuggable true
                applicationIdSuffix = ".debug"
            }
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
        productFlavors {
            mock {
                applicationIdSuffix = ".mock"
            }
            prod {
    
            }
        }
        // Remove mockRelease as it's not needed.
        android.variantFilter { variant ->
            if(variant.buildType.name == 'release'
                    && variant.getFlavors().get(0).name == 'mock') {
                variant.setIgnore(true);
            }
        }
    }
    
    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
    
        ///////////////////// Default /////////////////////
        compile "com.android.support:appcompat-v7:$supportVersion"
        compile "com.android.support:recyclerview-v7:$supportVersion"
        compile "com.android.support:cardview-v7:$supportVersion"
        compile "com.android.support:design:$supportVersion"
        compile "com.android.support:support-v4:$supportVersion"
        compile "com.android.support.constraint:constraint-layout:$constraintLayoutVersion"
        // Google
        compile "com.google.guava:guava:$guavaVersion"
        // Butter-Knife
        compile "com.jakewharton:butterknife:$butterKnifeVersion"
        annotationProcessor "com.jakewharton:butterknife-compiler:$butterKnifeVersion"
        // Glide
        compile "com.github.bumptech.glide:glide:$glideVersion"
        // Retrofit
        compile 'com.google.code.gson:gson:2.7'
        compile "com.squareup.retrofit2:retrofit:$retrofitVersion"
        compile "com.squareup.retrofit2:converter-gson:$retrofitVersion"
    
        ///////////////////// Debug /////////////////////
        debugCompile "com.facebook.stetho:stetho:$stethoVersion"
        debugCompile "com.facebook.stetho:stetho-okhttp3:$stethoVersion"
        debugCompile "com.facebook.stetho:stetho-js-rhino:$stethoVersion"
    
        ///////////////////// Tests /////////////////////
        // Unit
        testCompile "junit:junit:$junitVersion"
        testCompile "org.mockito:mockito-core:$mockitoVersion"
        // Android Testing Support Library's runner and rules
        androidTestCompile "com.android.support.test:runner:$runnerVersion"
        androidTestCompile "com.android.support.test:rules:$rulesVersion"
        // Espresso UI Testing dependencies.
        androidTestCompile "com.android.support.test.espresso:espresso-core:$expressoVersion"
        // Dependency for androidTestCompile
        androidTestCompile "com.android.support:support-annotations:$supportVersion"
    }
    
    • This topic was modified 5 months, 4 weeks ago by  Bruno Lucena.
    #61787

    Hannes Metssalu
    Rebel Staff

    Hey,

    Unfortunately we don’t support Jack compiler yet. I can’t give you any estimates but we do have it in our short term plans.

    In the meantime please use Retrolambda for Java 8 features.

    All the best,
    Hannes Metssalu

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.