[英]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: 我刚刚使用SDK管理器安装了Google Analytics(分析)V4 API,但尝试这些导入时:
import com.google.android.gms.analytics.GoogleAnalytics;
import com.google.android.gms.analytics.Tracker;
the words "com.google" are highlighted in red. “ com.google”一词以红色突出显示。 This makes me believe I have to add some sort of file to my libs directory but I don't know what to do.
这使我相信必须将某种文件添加到我的libs目录中,但是我不知道该怎么做。
Add google play services library to your project. 将Google Play服务库添加到您的项目。 First download it from sdk manager-> extras.
首先从sdk Manager-> Extras下载它。 Then, select project-> properties-> Android.
然后,选择项目->属性-> Android。 Add the google play services project.
添加Google Play服务项目。 No need to add jar files etc.
无需添加jar文件等。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.