2011-04-21 6 views
2

안드로이드에서 작동하도록 컴퓨터를 설정할 때"컴파일 "할 코드를 얻을 수 없거나 컴파일 할 때 다른 프로세스에서 중지 될 수 있습니다 "classes.dex 생성 중"이라고 표시된 경우 오류가 발생합니다."classes.dex .... 생성 중"안드로이드 컴파일 오류 "

Information: Note: Some input files use unchecked or unsafe operations. 
Information: Note: Recompile with -Xlint:unchecked for details. 
Information: Compilation completed with 12 errors and 2 warnings 
Information: 12 errors 
Information: 1 warning 
Error: (org.joda.time.DateTimeZone$1) that doesn't come with an 
Error: associated EnclosingMethod attribute. This class was probably produced by a 
Error: compiler that did not target the modern .class file format. The recommended 
Error: solution is to recompile the class from source, using an up-to-date compiler 
Error: and without specifying any "-target" type options. The consequence of ignoring 
Error: this warning is that reflective operations on this class will incorrectly 
Error: indicate that it is *not* an inner class. 
Error: (junitx.extensions.TestSetup$1) that doesn't come with an 
Error: (junitx.ant.TestClassValidatorTask$1) that doesn't come with an 
Error: (junitx.util.AbstractSuiteBuilder$1) that doesn't come with an 
Error: (junitx.framework.TestSuite$1) that doesn't come with an 
Error: (junitx.tool.TestClassValidator$1) that doesn't come with an 
Warning: warning: Ignoring InnerClasses attribute for an anonymous inner class 

흥미로운 것은이 코드는 우리가이 설정 looong 시간 전 아무도 일이 있었는지 기억하지가 다른 컴퓨터에서 올바르게 컴파일이다 :

내가 오류는 다음과 같습니다.

나는 굉장히 많이 봤지만 모든 사람들이 JodaTime 소스에서 재 컴파일해야한다고 말합니다.하지만 동일한 코드 (복사하여 붙여 넣거나 버전 제어에서 다운로드)가 완벽하게 작동하기 때문에 가능하지 않습니다. 기계, 그래서 거기에 원인이 내 환경에 대한 뭔가가 있어야하지만, 나는 무엇을 찾아야할지 전혀 모른다.

이 유형의 오류를 인식하는 전문가가 있습니까?
이런 일이 있었습니까? 어떻게 그걸 고쳤습니까 ??

도와주세요 ...

참고 :
- 누군가가 내가 비슷한 질문 전에 요청 받았다 알고 그것을 지적하기 전에 안드로이드 1.6

에 대한 컴파일 - 인 IntelliJ
사용. 예 : Recompile jodatime?. 그러나이 경우 제안 된 솔루션은 JodaTime 소스를 다시 컴파일하는 것이 었습니다. 코드가 한 컴퓨터에서 작동하고 다른 컴퓨터에서는 작동하지 않기 때문에 여기서는 그렇지 않다고 생각합니다.

+0

이클립스를 사용하고 있습니까? – bytebender

+0

Intellij를 사용하고 있습니다. – bluediapente

+0

은 사용중인 jdk 버전과 관련이있을 수 있습니다. 컴퓨터와 다른 컴퓨터에서 jdk 버전을 확인할 수 있습니까? – Josnidhin

답변

1

IntelliJ를 업데이트 해 보셨습니까?

저는 전문가가 아니지만 며칠 전에 같은 문제에 부딪 혔습니다. 그게 뭔지 알아 내는데 꽤 오래 걸렸습니다. IntelliJ 버전으로 밝혀졌습니다.

최신 버전 (야간 빌드)으로 업데이트하면됩니다.

+0

그걸 수정했습니다! 나는 버전 10.0.0을 사용하고 있었고 10.0.3으로 업데이트되었고, 이전 버전은 오류 였고, 후자는 단지 경고가되었고 마침내 컴파일 할 수있었습니다. 감사!! – bluediapente

0

동일한 오류 메시지가 표시되었으며 동일한 클래스 (예 : 라이브러리의 이전 버전 및 새 버전)를 선언 한 두 개의 라이브러리가 포함되어 있음이 밝혀졌습니다. 오류 메시지가 어떻게 관련되는지는 모르지만 이전 버전을 제거하면 문제가 해결됩니다.