2017-02-10 81 views
2

我在CrashListics從操作系統的三星設備反覆得到這個Exception5.0.1我搜索的SO了很多,發現它是三星設備中的一個錯誤,但無法找到任何解決方案。任何人都可以建議我如何處理這個異常(任何解決方案或任何技巧)?致命異常:java.lang.IncompatibleClassChangeError:找不到com.google.aaca

Fatal Exception: java.lang.IncompatibleClassChangeError: Couldn't find com.google.a.a.c.a at libcore.reflect.AnnotationAccess.toAnnotationInstance(AnnotationAccess.java:659) at libcore.reflect.AnnotationAccess.toAnnotationInstance(AnnotationAccess.java:641) at libcore.reflect.AnnotationAccess.getDeclaredAnnotation(AnnotationAccess.java:170) at java.lang.reflect.Field.getAnnotation(Field.java:242) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.excludeField(Unknown Source) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.excludeField(Unknown Source) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.excludeField(Unknown Source) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.excludeField(Unknown Source) at com.google.gson.Gson.doubleAdapter(Unknown Source) at com.google.gson.Gson.doubleAdapter(Unknown Source) at com.google.gson.Gson.doubleAdapter(Unknown Source) at com.google.gson.Gson.doubleAdapter(Unknown Source) at com.google.gson.Gson.doubleAdapter(Unknown Source) at com.app.Data.Sessions.LoginSession.createLoginSession(Unknown Source) at com.app.Data.UserInformation.getInfo(Unknown Source) at com.app.Main.LocationUpdateService.locationUpdate(Unknown Source) at com.app.Main.LocationUpdateService.locationUpdate(Unknown Source) at com.app.Main.LocationUpdateService$1.onLocationChanged(Unknown Source) at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:281) at android.location.LocationManager$ListenerTransport.access$000(LocationManager.java:210) at android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:226) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:5942) at java.lang.reflect.Method.invoke(Method.java) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)

createLoginSession我在做什麼是:

public void createLoginSession(UserData userData) { 
    Gson gson = new Gson(); 
    String info = gson.toJson(userData); 
    editor.putString(INFO, info); 
    editor.commit(); 
} 
+0

你在你的gradle這個搭配使用ProGuard? –

+0

@RoShanShan是的,我正在使用 –

回答

2

你需要保持你的模型UserData,不要混淆這一點。就像這樣:

-keep class yourpackage.model.** { *; }

,並保持你的GSON

-keep class com.google.gson.stream.** { *; }

+0

會嘗試它的朋友感謝您的答案 –

+0

@KapilRajput它有幫助嗎? 如果是,請標記爲答案 –

相關問題