-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoSuchMethodError: No virtual method isAssignableFrom() #976
Comments
I opened an issue on this on the ES SDK - microsoft/EmbeddedSocial-Android-SDK#119. |
This was referenced Apr 18, 2019
barbeau
added a commit
that referenced
this issue
Jun 27, 2019
Fix #976 - Resolve Guava version conflicts in Embedded Social
cagryInside
pushed a commit
to cagryInside/onebusaway-android
that referenced
this issue
Jun 27, 2019
After repeating the repro steps in this issue I can confirm that the issue appears to be fixed with new release version v2.5.3. |
FYI, with the re-packaged version of Guava in the new ES SDK release our total APK size only went up 0.03 MB. |
barbeau
pushed a commit
to cagryInside/onebusaway-android
that referenced
this issue
Jul 3, 2019
… collection feature Fix OneBusAway#990 - Interpret alert end time of 0 as unending alert Fix OneBusAway#976 Resolve Guava version conflicts in Embedded Social Fix OneBusAway#943 Workaround for String.isEmpty() being broken in newer versions of Gradle WIP Fix OneBusAway#875 - User-travel-behavior - Implement ignore battery optimizations feature User-travel-behavior - Implement storing device information
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary:
After doing the latest OneBusAway release build and updating from v2.4.4 to v2.5, I'm seeing a crash after updating the app, which seems to trigger a registration for Embedded Social push notifications (if you're logged in with an Embedded Social account).
Here's the stack trace:
When doing the release and trying to obfuscate via Proguard, I was getting the following warning that was blocking the build:
So, in this commit I added the following to our Proguard rules:
This lets me build the project, but then results in the above runtime exception.
After talking with @acrown-msft it looks like the ES SDK uses a ES Java API library (https://github.com/Microsoft/EmbeddedSocial-Java-API-Library), which uses an older version of a REST library (https://github.com/Azure/autorest-clientruntime-for-java), which is using an older version of Guava (18). OBA Android is stripping out this older version of Guava in favor of v26, which is being used by Firebase and other OBA dependencies. As a result, we get a runtime error because this method doesn't existing in v26 of the Guava library. Additionally, all interactions with the ES server aren't functional.
@acrown-msft is going to look at updating the ES Java API library dependency to use a newer version of the REST library, which is using a newer version of Guava.
Steps to reproduce:
Expected behavior:
Not crash
Observed behavior:
It crashes, and all interactions with ES server aren't functional
Device, Android, and Embedded Social SDK version:
Samsung Galaxy S8+ w/ Android 9.0
The text was updated successfully, but these errors were encountered: