2016-10-18 4 views
0

2.2.1로 Android Studio를 업데이트 했으므로이 오류가 발생합니다.바이트 코드를 dex로 변환하는 중 오류가 발생했습니다 :

  1. 청소를하고 프로젝트
  2. 추가 "sourceCompatibility ="1.7 " targetCompatibility ="1.7 ""가 Gradle을 파일로 을 구축 :

    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.

    은 지금까지 내가 노력했다.

누구든지이 문제를 해결하는 방법을 제안 할 수 있습니까?

+0

당신이 당신의 Gradle을 파일을 게시 할 수 있습니다 방문 할 수 있습니다? – AbhayBohra

답변

1

당신은 당신은

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.

그런 다음 당신은 당신의 Gradle을 섹션에서 아래 설정할 수 있습니다지고 JDK 1.8.0_92

를 사용해야합니다.

compileOptions { 
    sourceCompatibility JavaVersion.VERSION_1_8 
    targetCompatibility JavaVersion.VERSION_1_8 
    } 

을 청소 재 구축. 희망이 당신을 도와줍니다.

더 나은 답변을 위해 당신은 Android: Dex cannot parse version 52 byte code

관련 문제