1

According to this link (Detect when users start ou end an activity), I have added the com.google.android.gms:play-services-location:17.0.0 library to use the ActivityRecognition API in my app. The problem is that Android Studio, despite this, doesn't find the definition for ActivityTransition or DetectedActivity classes.

Does anyone know what I should add to be able to use these classes?

Edit : as found somewhere in the Android doc, I have already added the following dependencies :

'com.google.android.gms:play-services-auth:17.0.0'
'com.google.android.gms:play-services-drive:17.0.0'
'com.google.android.gms:play-services-fitness:18.0.0'
'com.google.android.gms:play-services-games:19.0.0'
'com.google.android.gms:play-services-nearby:17.0.0'
Zelig63
  • 1,592
  • 1
  • 23
  • 40

0 Answers0