简体   繁体   English

将Google Play服务导入Ecplise时出错

[英]Error in importing Google-play-service into Ecplise

when i import google play service into my ecplise it shows error in appinvite_style.xml file 当我将google play服务导入到我的ecplise中时,appinvite_style.xml文件中显示错误

Error Location : res->values-v21->appinvite_styles.xml 错误位置:res-> values-v21-> appinvite_styles.xml

<!-- Base preview application theme. -->
<style name="Theme.AppInvite.Preview.Base" parent="@android:style/Theme.Material.Light.DialogWhenLarge.NoActionBar"/>

appinvite_styles.xml appinvite_styles.xml

and also i tried to import appcomport-v7 but it throws the error in that folder too. 而且我也尝试导入appcomport-v7,但是它也会在该文件夹中引发错误。

API Level :19 (4.2.2) API级别:19(4.2.2)

thanks in advance 提前致谢

The important thing in adding a library in eclipse is to remember that your project and the library project need to be in the same workspace. 在eclipse中添加库的重要之处在于要记住,您的项目和库项目必须位于同一工作区中。

To solve this follow below ways, 要解决此问题,请按以下方法进行,

You can copy the google-play-services library project to the same workspace where your main project is there. 您可以将google-play-services库项目复制到主项目所在的同一工作区中。

else 其他

While importing the library to eclipse remember to check copy projects into workspace which will add a copy of the library to your workspace. 在将库导入到eclipse时,请记住将项目复制到工作区中,这会将库的副本添加到您的工作区中。

Please refer this: eclipse android can not import google play services library 请参考此: eclipse android无法导入google play服务库

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 导入google-play-service库,出现“找不到要导入的项目” - Importing google-play-service library, appear “No projects are found to import” 导入此参考android旁边显示红色X的google-play-service库 - Importing google-play-service library showing a red X next to this reference android 导入google-play-service依赖红叉 - import google-play-service dependency red cross 将Google Play服务源添加到我的Android应用程序中 - Adding google-play-service source to my android application 导入google-play-service:资源“ / HomeActivity”已存在 - import google-play-service: Resource '/HomeActivity' already exists 错误 - 导入Google Play服务 - Error - Importing google play service Google Play需要4132500-导入了任何google-play-service库版本 - Google play requires 4132500 - with any google-play-service library version imported 为什么在我的 phonegap 应用程序中找不到 google-play-service,因为我已经添加了最新的 jar? - Why google-play-service is not found in my phonegap app as I already add the latest jar? 无法引用google-play-service lib。 我该如何解决? - Can't make a reference to google-play-service lib. How can i fix it? 由于google-play-service,无法在单个dex文件中使用所请求的类 - Cannot fit requested classes in a single dex file due to google-play-service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM