简体   繁体   English

找不到资源 - Google Play 服务版本 - 旧 Android 项目

[英]No Resource found - Google Play Services version - Old Android Project

I am actually trying to open an old android project, which I have to edit.我实际上是在尝试打开一个旧的 android 项目,我必须对其进行编辑。 The project was coded back in Oct 14.该项目于 10 月 14 日重新编码。

Now I downloaded the project from Github, and opened it in Android Studio via Import.现在我从 Github 下载了该项目,并通过导入在 Android Studio 中打开它。 When I try to build or debug, I get the error:当我尝试构建或调试时,出现错误:

Error:(113, 28) No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').错误:(113, 28) 找不到与给定名称匹配的资源(在“值”处,值为“@integer/google_play_services_version”)。

After hours of searching in similar topics I did not find a solution that helped me.在类似主题中搜索数小时后,我没有找到对我有帮助的解决方案。

Has anyone an idea how to solve the problem?有谁知道如何解决这个问题?

Try this below Methods,I hope this will help you.试试下面的方法,我希望这会帮助你。

Edit 1:编辑1:

Import Eclipse Project to Android Studio:将 Eclipse 项目导入 Android Studio:

1.Start Android Studio and close any open Android Studio projects. 1.启动Android Studio并关闭所有打开的Android Studio项目。

2.From the Android Studio menu click File > New > Import Project. 2. 从 Android Studio 菜单中单击文件 > 新建 > 导入项目。 Alternatively, from the Welcome screen, click Import project (Eclipse ADT, Gradle, etc.).或者,从欢迎屏幕中,单击导入项目(Eclipse ADT、Gradle 等)。

3.Select the Eclipse ADT project folder with the AndroidManifest.xml file and click Ok. 3.选择带有AndroidManifest.xml 文件的Eclipse ADT 项目文件夹,然后单击Ok。

4.Select the destination folder and click Next. 4.选择目标文件夹并单击下一步。

5.Select the import options and click Finish. 5.选择导入选项并单击完成。

6.The import process prompts you to migrate any library and project dependencies to Android Studio, and add the dependency declarations to the build.gradle file. 6.导入过程会提示您将任何库和项目依赖项迁移到Android Studio,并将依赖项声明添加到build.gradle文件中。 For detail description try this link有关详细说明,请尝试此链接

https://developer.android.com/studio/intro/migrate.html#migrating_from_eclipse https://developer.android.com/studio/intro/migrate.html#migrating_from_eclipse

Edit2:编辑2:

Remove the line in the project.properties file that was making reference to the google_play_services_version .删除 project.properties 文件中引用google_play_services_version 的行

All the Best.祝一切顺利。

暂无
暂无

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

相关问题 Android:找不到Admob资源@ integer / google_play_services_version - Android: Admob resource not found @integer/google_play_services_version 找不到Google Play服务资源 - Google play services resource not found 错误:找不到资源整数/ google_play_services_version(又名app:integer / google_play_services_version) - error: resource integer/google_play_services_version (aka app:integer/google_play_services_version) not found 找不到Android清单@ integer / google_play_services_version - Android manifest @integer/google_play_services_version not found 在Android Eclipse中出现错误“找不到与给定名称匹配的资源(在'value'值'@integer/google_play_services_version')” - Getting error "No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version')" in Android Eclipse 如何修复Xamarin android c#中的“找不到与给定名称(在'value'处与值'@ integer / google_play_services_version匹配)的资源” - How to fix“No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version)” in Xamarin android c# 在旧项目中更新Google Play服务 - Updating google play services in old project Android-使用旧的播放服务版本 - Android - Use old play services version 找不到google_play_services_version - google_play_services_version not found 如何修复“找不到与给定名称匹配的资源('value'与值'@ integer / google_play_services_version')” - How to fix “No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version')”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM