Closed ewpatton closed 2 years ago
@william-vw
Still getting the same error, unfortunately:
05-28 15:08:34.873 28156 28156 E AndroidRuntime: java.lang.NoSuchMethodError: No direct method <init>(Lcom/google/gson/internal/ConstructorConstructor;Lcom/google/gson/FieldNamingStrategy;Lcom/google/gson/internal/Excluder;)V in class Lcom/google/gson/internal/bind/ReflectiveTypeAdapterFactory; or its super classes (declaration of 'com.google.gson.internal.bind.ReflectiveTypeAdapterFactory' appears in /data/app/~~vAHD4CJwOcCzA1aCyiExAw==/edu.mit.appinventor.punya.aicompanion3-2Cdt1ETRSQeOlGRJ-isr7w==/base.apk!classes2.dex)
05-28 15:08:34.873 28156 28156 E AndroidRuntime: at edu.mit.media.funf.config.ConfigurableTypeAdapterFactory.<init>(ConfigurableTypeAdapterFactory.java:48)
05-28 15:08:34.873 28156 28156 E AndroidRuntime: at edu.mit.media.funf.FunfManager.getProbeFactory(FunfManager.java:410)
05-28 15:08:34.873 28156 28156 E AndroidRuntime: at edu.mit.media.funf.FunfManager.getGsonBuilder(FunfManager.java:361)
05-28 15:08:34.873 28156 28156 E AndroidRuntime: at edu.mit.media.funf.FunfManager.getGsonBuilder(FunfManager.java:352)
05-28 15:08:34.873 28156 28156 E AndroidRuntime: at edu.mit.media.funf.FunfManager.getGson(FunfManager.java:381)
05-28 15:08:34.873 28156 28156 E AndroidRuntime: at edu.mit.media.funf.FunfManager.onCreate(FunfManager.java:129)
05-28 15:08:34.873 28156 28156 E AndroidRuntime: at android.app.ActivityThread.handleCreateService(ActivityThread.java:4192)
05-28 15:08:34.873 28156 28156 E AndroidRuntime: at android.app.ActivityThread.access$1500(ActivityThread.java:237)
05-28 15:08:34.873 28156 28156 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1932)
05-28 15:08:34.873 28156 28156 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
05-28 15:08:34.873 28156 28156 E AndroidRuntime: at android.os.Looper.loop(Looper.java:223)
05-28 15:08:34.873 28156 28156 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7656)
05-28 15:08:34.873 28156 28156 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-28 15:08:34.873 28156 28156 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
05-28 15:08:34.873 28156 28156 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
After manually cleaning the appinventor/build/components/deps
folder it works. It was still using gson version 2.8.5.
Potential fix for #49
Change-Id: I504d06d4d9abf01f255e9ff0e4a257c6e958ddca