2014-04-04 1 views
0

일부 안드로이드 애플리케이션을위한 프로젝트가 있습니다. 기본적으로 메뉴없이 생성, BU 지금은 몇 가지를 추가하려고했습니다 ...안드로이드 프로젝트 - 메뉴 이슈를 컴파일 할 수 없습니다.

나는 프로젝트를 컴파일 할 수 없습니다 - 나는 다음과 같은 메뉴를 추가했습니다

[2014-04-04 08:10:27 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace. 
[2014-04-04 08:10:27 - mksSQL] Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace. 

이 메시지를 받고 :

@Override 
public boolean onCreateOptionsMenu(Menu menu) { 
    // Inflate the menu; this adds items to the action bar if it is present. 
    getMenuInflater().inflate(R.menu.main, menu); 
    return true; 
} 
+1

몇 번이나 API 버전에 문제가있어 프로젝트를 정리하고 시도해보십시오 – Sree

+0

[this] (http://stackoverflow.com/questions/19727915/android-dex-gives-a-bufferoverflowexception-wing-building)/19803777 # 19803777) – user3355820

+0

check [This] (http://stackoverflow.com/questions/20778767/unable-to-execute-dex-java-nio-bufferoverflowexception-check-the-eclipse-log-f) – anuruddhika

답변

0

일식 때로는 발생합니다.

는 다음과 같은 방법으로

# 1 다시 cleaning 프로젝트 및 build을 시도하십시오. 또는

# 2 마우스 오른쪽 Android tools →로 이동 한 후 깨끗한 android support library.을 클릭하고 프로젝트를 빌드 → 당신의 Project 클릭합니다.

HIH.

+0

같은 것 ... 둘 다 시도 ... – IgorKushnir

+0

libs 폴더와 Java 빌드 경로에 jar 파일을 사용하고 있습니까? –

관련 문제