简体   繁体   中英

Eclipse not detecting Google Analytics V4 in imports

I just installed Google Analytics V4 API by using the SDK manager but when I try these imports:

import com.google.android.gms.analytics.GoogleAnalytics;
import com.google.android.gms.analytics.Tracker;

the words "com.google" are highlighted in red. This makes me believe I have to add some sort of file to my libs directory but I don't know what to do.

Add google play services library to your project. First download it from sdk manager-> extras. Then, select project-> properties-> Android. Add the google play services project. No need to add jar files etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM