Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
找不到com.google.android.gms.maps.model.Latlng的类文件_Android_Github_Actionbarsherlock_Eclipse Adt - Fatal编程技术网

找不到com.google.android.gms.maps.model.Latlng的类文件

找不到com.google.android.gms.maps.model.Latlng的类文件,android,github,actionbarsherlock,eclipse-adt,Android,Github,Actionbarsherlock,Eclipse Adt,我在研究ActionBar Sherlock,我该如何修复它?在我的google-play-services_库中,我有我的latlng.class,但在我的错误描述中,它无法定义latlng.class,请帮助我 这是我的两个错误: 无法解析com.google.android.gms.maps.model.Latlng类型。它是从必需的.class文件间接引用的 未生成项目,因为其生成路径不完整。找不到com.google.android.gms.maps.model.Latlng的类文件

我在研究ActionBar Sherlock,我该如何修复它?在我的google-play-services_库中,我有我的latlng.class,但在我的错误描述中,它无法定义latlng.class,请帮助我

这是我的两个错误:

  • 无法解析com.google.android.gms.maps.model.Latlng类型。它是从必需的.class文件间接引用的
  • 未生成项目,因为其生成路径不完整。找不到com.google.android.gms.maps.model.Latlng的类文件。修复生成路径,然后尝试生成此项目
在“我的控制台”选项卡中:

[2014-10-29 20:46:33 - GoogleMapsV2WithActionBarSherlock] All versions of the libraries must be the same at this time.
[2014-10-29 20:46:33 - GoogleMapsV2WithActionBarSherlock] Versions found are:

[2014-10-29 20:46:33 - GoogleMapsV2WithActionBarSherlock] Path: C:\Users\joma\Desktop\workspace\GoogleMapsV2WithActionBarSherlock\libs\android-support-v7-gridlayout.jar
[2014-10-29 20:46:33 - GoogleMapsV2WithActionBarSherlock]   Length: 38334
[2014-10-29 20:46:33 - GoogleMapsV2WithActionBarSherlock]   SHA-1: bbd8a6ac0de84f30a15f1f6b11f61e8387da3db0

[2014-10-29 20:46:33 - GoogleMapsV2WithActionBarSherlock] Path: C:\Users\joma\Desktop\workspace\gridlayout_v7-master\libs\android-support-v7-gridlayout.jar

[2014-10-29 20:46:33 - GoogleMapsV2WithActionBarSherlock]   Length: 38334

[2014-10-29 20:46:33 - GoogleMapsV2WithActionBarSherlock]   SHA-1: 87d4ee6826a41fd3d2680d4f9ee63334455265a6
[2014-10-29 20:46:33 - GoogleMapsV2WithActionBarSherlock] Jar mismatch! Fix your dependencies

我试着重新修路,但什么也没发生,我还试图再次下载google-play-service_lib并导入,但没有发生任何错误

您正在使用两个不同的支持库删除其中一个,并将已删除库的引用设置为未删除库。

在您的问题中,您提到了错误。因此,问题是您没有正确引用图书馆

首先右键单击项目,然后单击项目属性中的“构建路径->配置构建路径->选择Android”(然后在右侧可以列出名称,以便单击Android)

检查是否添加了库google play服务…..检查是否有绿色勾号 如果你没有看到绿色的勾号,那意味着你在添加lib时是错误的

还要检查是否将库导入工作视图:-

步骤1:-将->项目->Android->现有Android代码导入工作区,选中“复制到工作区”并浏览到您的Android sdk文件夹所在的位置:/extras/google/google\u play\u services/libproject/google-play-services\u lib

第2步:-单击完成