Android crash "Caused by: java.lang.NoSuchMethodError"
Hello,
I am having trouble tracing the following fatal error, which is produced by Google's Android Developer Consoles automated tests. I cannot reproduce the error directly.
java.lang.Error: FATAL EXCEPTION [ControllerMessenger]
04-02 15:45:16.950: E/AndroidRuntime(8368): Unity version : 2017.3.1f1
04-02 15:45:16.950: E/AndroidRuntime(8368): Device model : Google Pixel
04-02 15:45:16.950: E/AndroidRuntime(8368): Device fingerprint: google/sailfish/sailfish:7.1.1/NMF26U/3562008:user/release-keys
04-02 15:45:16.950: E/AndroidRuntime(8368): Caused by: java.lang.NoSuchMethodError: No static method writeStrongBinder(Landroid/os/Parcel;Landroid/os/IInterface;)V in class Lcom/google/android/aidl/Codecs; or its super classes (declaration of 'com.google.android.aidl.Codecs' appears in /data/app/com.google.android.apps.mtaas.crawler-1/base.apk)
The error occurs in an existing and previously working game that I have made some minor additions to. Mainly I have added music and improved some textures. The game works fine here, both when side-loaded into a Galaxy S8 and when installed back from the Google Play store via a Beta test channel.
I have tried a version without the music files (noting the reference to codecs in the error) as well as restoring the old textures. But neither get rid of this error which is preventing the updated game being re-accepted as a Daydream App.
Does anyone have any clue where to start tracing this issue, given that I can't reproduce the fail here? All I have to go on is the logcat files produced by the automated tests, which appear to show that my game doesn't even start!
Thanks for your help. DC