0

I'm trying to import this two Libraries :

import com.google.android.gms.location.ActivityRecognitionClient; import com.google.android.gms.location.DetectedActivity;

but the .android turns to red. this what it shows

Did i forget to add a package to my project ?

1 Answers1

0

You need to add this in your gradle file :

implementation 'com.google.android.gms:play-services:12.0.1'

Check out this : Can't find the class com.google.android.gms.location.LocationClient (android)