iqiyi / Andromeda

Andromeda simplifies local/remote communication for Android modularization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

能否增加Java 1.8编译支持?

kylin17 opened this issue · comments

如题,使用

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

编译报错:

Caused by: java.io.IOException: invalid constant type: 18
	at javassist.bytecode.ConstPool.readOne(ConstPool.java:1090)
	at javassist.bytecode.ConstPool.read(ConstPool.java:1033)
	at javassist.bytecode.ConstPool.<init>(ConstPool.java:149)
	at javassist.bytecode.ClassFile.read(ClassFile.java:737)
	at javassist.bytecode.ClassFile.<init>(ClassFile.java:108)
	at javassist.CtClassType.getClassFile2(CtClassType.java:190)
	... 53 more

查看plugin项目中,javassist使用的版本是javassist:3.12.1.GAjavassist 3.18以下的版本不支持在JDK1.8下运行。

#34 I send a pull request to you. Please review the code and test.