Bug 24551 - Google Play Services analytics SetNewSession runtime lookup error
Summary: Google Play Services analytics SetNewSession runtime lookup error
Status: RESOLVED DUPLICATE of bug 22155
Alias: None
Product: Components
Classification: Xamarin
Component: Xamarin Components ()
Version: Production (addons.xamarin.com)
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bill Holmes
URL:
Depends on:
Blocks:
 
Reported: 2014-11-15 10:52 UTC by Mart Roosmaa
Modified: 2014-11-29 06:31 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 22155

Description Mart Roosmaa 2014-11-15 10:52:16 UTC
When trying to start a new session in Google Analytics, the following code produces a runtime NoSuchMethodError:

  var builder = new HitBuilders.ScreenViewBuilder ();
  builder.SetNewSession ();

Java.Lang.NoSuchMethodError: no method with name='setNewSession' signature='()Ljava/lang/Object;' in class Lcom/google/android/gms/analytics/HitBuilders$HitBuilder;

Seems that the binding generator is having trouble with the correct signature of the setNewSession function?

Dedex tool gives the following signature for the method:
    #11              : (in Lcom/google/android/gms/analytics/HitBuilders$HitBuilder;)
      name          : 'setNewSession'
      type          : '()Lcom/google/android/gms/analytics/HitBuilders$HitBuilder;'
      access        : 0x0001 (PUBLIC)
      code          -
      registers     : 3
      ins           : 1
      outs          : 3
      insns size    : 8 16-bit code units
      catches       : (none)
      positions     :
      locals        :
Comment 1 dean.ellis 2014-11-29 06:31:09 UTC
This is a duplicate of 22155 and should be fixed in the next major release

*** This bug has been marked as a duplicate of bug 22155 ***