Dorel Dorel - 1 year ago 147
Android Question

Error using Google Play services

I am trying to use the google play service locations API.
I have installed the Google Repositories from the sdk manager.

I am using Eclipse and for importing the locations jar I went to:

I have unziped the aar file and added the classes.jar file to the libs folder in my project. And also included as a library for the project.

After adding the code:

public class ListenerService extends Service {
public void onCreate() {
mGoogleApiClient = new GoogleApiClient.Builder(this)

I get this error in eclipse:

The type$zzf cannot be resolved. It is indirectly referenced from required .class files

What am I doing wrong? What am I missing?

Answer Source

play-services-location depends on other AARs: play-services-base, play-services-basement, play-services-maps, play-services-tasks and firebase-common (from looking at the POM file for 9.0).

You'll need to include those in your app to be sure of having all classes resolved.