meituan/RoboAspectJ

compile error

bugparty opened this issue · 0 comments

Error:Execution failed for task ':demo:transformClassesWithInstantRunForDebug'.

JSR/RET are not supported with computeFrames option

I am using jdk8, the full gradle configuration is below

apply plugin: 'com.android.application'
apply plugin: 'com.meituan.roboaspectj'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"
    useLibrary 'org.apache.http.legacy'
    defaultConfig {
        applicationId "com.meituan.common.analyse.demo"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"


    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }
}


// AspectJ
aspectj {
    disableWhenDebug false

    javartNeeded true

    compileOptions {
        defaultJavaVersion = JavaVersion.VERSION_1_8
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile('com.meituan.android:mtmpsdk:0.9.9.6+') {
        transitive = true
    }
    compile 'com.android.support:appcompat-v7:23.3.0'
    compile 'com.android.support:cardview-v7:23.3.0'
    compile 'com.android.support:design:23.3.0'
    compile 'com.android.support:support-v4:23.3.0'
    compile(group: 'com.meituan.android.common.locate', name: 'impl', version: '0.2.6_8.4') {
        exclude module: 'support-v4'
    }
    compile project(':library')
}