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

Firebase.Analytics Error - Failed resolution of: Lcom/google/android/gms/R$string; #117

Closed
ilanolkies opened this Issue Jun 4, 2018 · 6 comments

Comments

Projects
3 participants
@ilanolkies
Copy link

ilanolkies commented Jun 4, 2018

Xamarin.Android Version:

8.3.0.19 (Visual Studio Community)

Operating System & Version:

Mac OS X 10.13.4

Google Play Services Version:

48

Description:

When I add Firebse.Analytics in my project and run it I get a Java.Lang.NoClassDefFoundError exception. Then, I clean the Android project and rebuild it and the error is gone.

Steps to Reproduce:

  1. Create a new project.
  2. Add the Firebase.Analytics Google Pklay Service
  3. Run the Android app.

I tried to reproduce it several times and I always get the same error.

Relevant Exception:

Java.Lang.NoClassDefFoundError
    Message: Failed resolution of: Lcom/google/android/gms/R$string;
@newky2k

This comment has been minimized.

Copy link

newky2k commented Aug 7, 2018

@ilanolkies sorry for the delay in looking into this for you. Have you converted to PackageReferences instead of packages.config? does doing so make a difference, might be a long shot, but worth a try.

Does it matter what version of Android the simulator is running? does it occur if you build and deploy straight on to a device?

Could you provide some more specifics on the target enviroment as well as trying the lastest preview of GPS, to see if this resolves it at all for you.

Thank you for your patience

@newky2k newky2k added the needs-info label Aug 7, 2018

@ilanolkies

This comment has been minimized.

Copy link
Author

ilanolkies commented Aug 8, 2018

Here's a project reference where it: https://github.com/ilanolkies/XamarinGAExample
Reference to Firebase over here: https://github.com/ilanolkies/XamarinGAExample/blob/master/GAExample.Android/GAExample.Android.csproj#L59

It does not start in any simulator, as far as I tested.

There is no problem to 'be resolved at all for me'

Then, I clean the Android project and rebuild it and the error is gone.
This is an issue. I came up with this writing a simple article in my blog, and this type of 'autosolvable' errors are tedious.

Thanks for the answear.

@newky2k

This comment has been minimized.

Copy link

newky2k commented Aug 9, 2018

@ilanolkies Thank you for getting back to me, i will investigate further and let you know what i find

@Redth Redth added this to Needs triage in Triage Nov 19, 2018

@Redth

This comment has been minimized.

Copy link
Member

Redth commented Nov 20, 2018

This is either due to an old version of the packages, or an issue with bin/ obj/ cache. I'd suggest updating both your Xamarin install and the nuget package version.

Please open a new issue if you're still experiencing this after.

@Redth Redth closed this Nov 20, 2018

Triage automation moved this from Needs triage to Closed Nov 20, 2018

@ilanolkies

This comment has been minimized.

Copy link
Author

ilanolkies commented Nov 20, 2018

@Redth saying that it’s an old version package problem 6 months later is funny. Anyway, thanks for helping...

@Redth

This comment has been minimized.

Copy link
Member

Redth commented Nov 20, 2018

Yes, apologies for the lack of response. We are working on cleaning up the issue backlog and making sure we don't miss these again going forward with a better process in place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment