Android studio 版本2.3.3,JRE1.8.0

编译报错:

Error: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.

解决方式:

在Module的Build.gradle里添加红色框里内容

Module的Build.gradle里添加依赖okhttp:3.14.0报错

相关文章:

  • 2021-08-03
  • 2021-08-17
  • 2021-09-07
  • 2021-06-05
  • 2021-08-31
  • 2021-12-19
  • 2021-11-03
猜你喜欢
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-25
  • 2022-12-23
  • 2022-01-18
  • 2022-01-23
相关资源
相似解决方案