2013-05-28 4 views
1

참조 된 라이브러리에서 Gson jar를 사용하는 Android 앱이 있습니다. 현재 2.2.4 버전을 사용하고 있으며 테스트를 위해 2 대의 전화가 있습니다. 삼성 갤럭시 S 사전에 Gson 오류 JellyBean

은 LG 넥서스 4 4.2.2에 내가
The JAR gson-2.4.4 has no source attachment. 

및 로그에

은 물론

java.Lang.StackoverflowError 

파일 오류가 발생했습니다 동안 완벽하게 모든 작품을 2.3.6 필요한 라이브러리를 올바르게 가져 오지 않으면 안드로이드 2.3.6에서 작동하지 않을 것입니다.

의견이 있으십니까? 이것은 스택입니다

감사

:

05-28 14:58:50.540: E/AndroidRuntime(1038): FATAL EXCEPTION: Thread-92 
05-28 14:58:50.540: E/AndroidRuntime(1038): java.lang.StackOverflowError 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at    com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:375) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:380) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:375) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:380) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:375) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:380) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:375) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:380) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:375) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:380) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:375) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:380) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:375) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:380) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:375) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:380) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:375) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:380) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:375) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:380) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:375) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:380) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:375) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:380) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:375) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:380) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:375) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:355) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:117) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:72) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.Gson.getAdapter(Gson.java:356) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.<init>(ReflectiveTypeAdapterFactory.java:82) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:81) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:118) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:72) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.Gson.getAdapter(Gson.java:356) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.<init>(ReflectiveTypeAdapterFactory.java:82) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:81) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:118) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:72) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.Gson.getAdapter(Gson.java:356) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.<init>(ReflectiveTypeAdapterFactory.java:82) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:81) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:118) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:72) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.Gson.getAdapter(Gson.java:356) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.<init>(ReflectiveTypeAdapterFactory.java:82) 
05-28 14:58:50.540: E/AndroidRuntime(1038):  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:81) 
+0

오버플로의 원인이되는 전체 스택 추적을 게시 할 수 있습니까? – Bobbake4

+0

좋아, 추가 했어! –

+0

GSON에 대한 사용자 지정 구문 분석을 작성 했습니까? 그렇다면이 코드를 게시 할 수 있습니다. 무한 루프에 빠진 것처럼 보입니다. 이것은 GSON으로하기 쉽습니다. – Bobbake4

답변

2

이 새로운 안드로이드 버전의 변경에 관련된 버그 같은 소리. 직렬화하려고하는 클래스를 보지 않으면 문제를 지적하기 어렵습니다. 이 thread은 귀하가 겪고있는 문제점을 논의하고 올바른 방향으로 귀하를 안내 할 수 있습니다. 문제를 찾을 수없는 경우 Gson을 1.7.1로 되 돌리는 것처럼 들립니다.

+0

너는 위대해! 이것은 효과가있다! 그런데 안드로이드에서 호환성이 어떻게 처리되는지는 정말 불합리합니다. 특히 2 버전의 경우 ... –