android - mLocationClient cannot be resolved -


i have problem using google play location services. trying follow http://developer.android.com/training/location/retrieve-current.html more or less. eclipse tells me cannot resolve locationclient. code looks this:

    @override protected void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     setcontentview(r.layout.activity_main);     overridependingtransition(0,0);      mlocationclient = new locationclient(this, this, this);        if (savedinstancestate == null) {         getsupportfragmentmanager().begintransaction()                 .add(r.id.container, new placeholderfragment()).commit();     } }  @override protected void onstart() {     super.onstart();     // connect client.     mlocationclient.connect(); } 

i got feeling, google-play-services library not referenced proper, when got properties of project there green check mark next it. if need more code let me know. in advance!

close , reopen project.

clean , rebuild project.

make sure you've added correct imports activity class.

make sure have private locationclient mlocationclient; defined in activity.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -