마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

Android Dx Error 빌드가 갑자기 안되더니.. [closed]

0 추천

아래 로그가 떠서 빌드가 안되네요.

이것저것 알아봐서 중복 libs 문제라고 해서 서포트 라이브러리 중복 제거 해주고

시스템 유저 라이브러리로 전부 전환하고 프로가드 배치 1% 2% 3%..... 9%로 바꾸고... 별걸 다해봐도 결국 아래 로그가 남네요. 해결 해보신 경험 있으신분 도움좀 부탁드립니다.

 

[2014-05-27 19:06:17 - ] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.vladium.util.exception.ExceptionCommon$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2014-05-27 19:06:18 - ] Dx 
EXCEPTION FROM SIMULATION:
[2014-05-27 19:06:18 - ] Dx local variable type mismatch: attempt to set or access a value of type int using a local variable of type java.lang.String. This is symptomatic of .class transformation tools that ignore local variable information.
 
[2014-05-27 19:06:18 - ] Dx ...at bytecode offset 000000ef
locals[0000]: Lkr/co/activity/LoginActivity$LoginTask;
locals[0001]: Lkr/co//model/Result;
locals[0002]: <invalid>
locals[0003]: <invalid>
locals[0004]: [I
stack[top0]: int{0x00000000 / 0}
...while working on block 00ee
...while working on method onPostExecute:(Lkr/co/model/Result;)V
...while processing onPostExecute (Lkr/co//model/Result;)V
...while processing kr/co//activity/LoginActivity$LoginTask.class
 
[2014-05-27 19:06:18 - ] Dx 
EXCEPTION FROM SIMULATION:
[2014-05-27 19:06:18 - ] Dx local variable type mismatch: attempt to set or access a value of type java.lang.Object using a local variable of type int. This is symptomatic of .class transformation tools that ignore local variable information.
 
[2014-05-27 19:06:18 - ] Dx ...at bytecode offset 000000ce
locals[0000]: Lkr/co//activity/MainListActivity$QuickImageTask;
locals[0001]: [Ljava/lang/Boolean;
locals[0002]: Lkr/co//model/Result;
locals[0003]: Lorg/json/JSONObject;
locals[0004]: Lorg/springframework/web/client/RestTemplate;
locals[0005]: Ljava/lang/String;
locals[0006]: Ljava/lang/String;
locals[0007]: Lorg/json/JSONArray;
locals[0008]: Lorg/json/JSONObject;
locals[0009]: I
locals[000a]: <invalid>
locals[000b]: [I
stack[top0]: I
...while working on block 00cc
...while working on method doInBackground:([Ljava/lang/Boolean;)Lkr/com/model/Result;
...while processing doInBackground ([Ljava/lang/Boolean;)Lkr/co/s/model/Result;
...while processing kr/co//activity/MainListActivity$QuickImageTask.class
 
[2014-05-27 19:06:18 - ] Dx 2 errors; aborting
[2014-05-27 19:06:18 - ] Conversion to Dalvik format failed with error 1
 
질문을 종료한 이유: 이해하기 힘들지만 자체 해결 했습니다.
쭈쭈총각 (17,750 포인트) 님이 2014년 5월 27일 질문
쭈쭈총각님이 2014년 6월 2일 closed
안녕하세요. 저도 비슷한 문제가 생겼는데요. 혹시 해결 방법좀 알 수 있을가 해서 댓글 남깁니다.
아... 이문제 해결했는데.... 좀 오래되서 기억이^^;;;
메인스레드와 별도 스레드와 사용하는 차이를 좀 뒀었나...
아님 sdk 버전을 되돌렸나... 아마 그랬을텐데... 정확히 기억이 잘 안나네요..
아 해결했습니다.ㅎㅎ 저 같은 경우에는 프로가드 세팅문제 였네요. 댓글 감사합니다. ^_^
...