jar包从3.5.6换成3.6.1 并更换对应的.so后 运行报错
显示问题日志如下,意思是说要升级Java sdk?Error converting bytecode to dex:
Cause: 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.
...while parsing com/hyphenate/EMCallBack.class
Message{kind=ERROR, text=Error converting bytecode to dex:
Cause: 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.
...while parsing com/hyphenate/EMCallBack.class, sources=[Unknown source file], original message=PARSE ERROR:
unsupported class file version 52.0
...while parsing com/hyphenate/EMCallBack.class
, tool name=Optional.of(Dex)}
Cause: 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.
...while parsing com/hyphenate/EMCallBack.class
Message{kind=ERROR, text=Error converting bytecode to dex:
Cause: 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.
...while parsing com/hyphenate/EMCallBack.class, sources=[Unknown source file], original message=PARSE ERROR:
unsupported class file version 52.0
...while parsing com/hyphenate/EMCallBack.class
, tool name=Optional.of(Dex)}
没有找到相关结果
已邀请:
4 个回复
诠释、Javascript
compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }这个
爱做梦的青青 - 90后IT女
java jdk 也换成1.8的以后 又出现了新的错误
lizg - ……
IM后台登录地址:https://console.easemob.com/user/login
大石头