Eclipse:Android 依赖项

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16438875/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 20:28:04  来源:igfitidea点击:

Eclipse: Android dependencies

androideclipseadmob

提问by 7heViking

I have update Google AdMob in my project from 6.2.1 to 6.4.1 but somehow eclipse fails. You can see it here:

我已将项目中的 Google AdMob 从 6.2.1 更新到 6.4.1,但不知何故 eclipse 失败了。你可以在这里看到它:

enter image description here

在此处输入图片说明

Here is the error messag Archive for required library: 'C:/Users/.../libs/GoogleAdMobAdsSdk-6.2.1.jar' in project '...' cannot be read or is not a valid ZIP file.

这是所需库的错误消息 存档:项目“...”中的“C:/Users/.../libs/GoogleAdMobAdsSdk-6.2.1.jar”无法读取或不是有效的 ZIP 文件。

Can you help with that?

你能帮忙吗?

BR

BR

回答by Sam

Go To

Project-->BuildPath-->in library tab-->click Add external jars-->
             Move to YourSdk_directory\extras\google\admob_ads_sdk

回答by bakriOnFire

Just remove the GoogleAdMobAdsSdk-6.2.1.jar from the library and again add it.. Then Refreshthe project and cleanit and then check..

只需从库中删除 GoogleAdMobAdsSdk-6.2.1.jar 并再次添加它..然后刷新项目并清理它,然后检查..

回答by CRUSADER

Well if you have updated from 6.2.1 to 6.4.1 then why is that 6.2.1 jar file still there in your referenced library. Remove that jar file from there.

好吧,如果您已从 6.2.1 更新到 6.4.1,那么为什么 6.2.1 jar 文件仍在您引用的库中。从那里删除那个 jar 文件

Also check that 6.4.1.jar in Import and export section

还要检查导入和导出部分中的 6.4.1.jar

回答by Amalan Dhananjayan

I had the same issue, but not after getting the new Admob jar but after updating to latest Android SDK, I solved it by creating a libs folder manually into the project file and copy pasted the library into it straight away. after that it worked perfectly.

我遇到了同样的问题,但不是在获得新的 Admob jar 之后而是在更新到最新的 Android SDK 之后,我通过在项目文件中手动创建一个 libs 文件夹并立即将库复制粘贴到其中来解决它。之后它完美地工作。