Cordova:Android构建失败原因:Dex无法解析版本52字节代码

Cordova:Android构建失败原因:Dex无法解析版本52字节代码,android,angularjs,cordova,gradle,build,Android,Angularjs,Cordova,Gradle,Build,在从cordova创建android构建时获得此信息 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 =

在从cordova创建android构建时获得此信息

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'
gradle文件是在cordova中自动生成的,所以不知道在哪里添加此文件。 使用angularjs和cordova

尝试更改类路径,即更改DustDistributionURL,当您更改distributionUrl时,它会在执行另一个生成时被更改。

此线程可能会有帮助。此线程的可能重复可能会有帮助。的可能重复