Skip to content Skip to sidebar Skip to footer

Google Fit Android Plug-in For Unity3d

I am relatively new to Android development and Unity and I am trying to create an Android plug-in for Unity3D that detects steps and distance using the Google fit Sensors API. I ha

Solution 1:

I could think of 2 possible scenarios:

  1. You run proguard on your library with "minify enabled" which cuts that class (because you don't reference it anywhere in your activity). In this case tell proguard to keep the class by adding to your proguard.properties file the following line:

    -keep class "com.google.android.gms.fitness.request.OnDataPointListener"

  2. You are using implementation setting for you Fit dependency therefore not including it in the output. Try adding the same dependency to your Unity project.

Post a Comment for "Google Fit Android Plug-in For Unity3d"