Android:由于依赖冲突而无法完成安装
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24583267/
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
Android : Cannot complete the install because of a conflicting dependency
提问by Sun
I am installing new softwares, using this link : https://dl-ssl.google.com/android/eclipse/
我正在安装新软件,使用此链接:https: //dl-ssl.google.com/android/eclipse/
but always getting: The operation cannot be completed. see the details.
但总是得到:操作无法完成。查看详情。
Cannot complete the install because of a conflicting dependency.
Software being installed: Android DDMS 23.0.2.1259578 (com.android.ide.eclipse.ddms.feature.feature.group 23.0.2.1259578)
Software currently installed: Android DDMS 22.6.2.v201403212031-1085508 (com.android.ide.eclipse.ddms.feature.group 22.6.2.v201403212031-1085508)
Only one of the following can be installed at once:
Dalvik Debug Monitor Service 23.0.2.1259578 (com.android.ide.eclipse.ddms 23.0.2.1259578)
Dalvik Debug Monitor Service 22.6.2.v201403212031-1085508 (com.android.ide.eclipse.ddms 22.6.2.v201403212031-1085508)
Cannot satisfy dependency:
From: Android DDMS 23.0.2.1259578 (com.android.ide.eclipse.ddms.feature.feature.group 23.0.2.1259578)
To: com.android.ide.eclipse.ddms [23.0.2.1259578]
Cannot satisfy dependency:
From: Android DDMS 22.6.2.v201403212031-1085508 (com.android.ide.eclipse.ddms.feature.group 22.6.2.v201403212031-1085508)
To: com.android.ide.eclipse.ddms [22.6.2.v201403212031-1085508]
采纳答案by Sun
This is a packaging bug. The entire proguard file is missing. We'll have an update asap, but until then just copy it over from a previous version of the tools:
这是一个打包错误。整个 proguard 文件丢失。我们将尽快进行更新,但在那之前只需从以前版本的工具中复制它:
http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz
http://dl.google.com/android/android-sdk_r22.6.2-windows.zip
http://dl.google.com/android/android-sdk_r22.6.2-macosx.zip
and copy over the following files:
并复制以下文件:
tools/hprof-conv
tools/support/annotations.jar
tools/proguard
So at the end if you started from a new ADT copy by hand the files :)
所以最后,如果你从一个新的 ADT 手动复制文件开始:)
Edit: with the latest ADT release, the bundle should now work with auto-update, so install these new versions:
编辑:使用最新的 ADT 版本,该包现在应该可以自动更新,所以安装这些新版本:
linux 64 bit vm: http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip
linux 32 bit vm: http://dl.google.com/android/adt/adt-bundle-linux-x86-20140702.zip
mac: http://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip
win32: http://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip
win64: http://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip
Don't try to upgrade from previous version because it doensn't work at all. If you have got problems with zipalign, it's now under platform-tools and no more under tools/ so you can do a symbolic link or just copy it into the expected folder.
不要尝试从以前的版本升级,因为它根本不起作用。如果您在使用 zipalign 时遇到问题,它现在位于 platform-tools 下,而不再位于 tools/ 下,因此您可以执行符号链接或将其复制到预期的文件夹中。
credit goes to @greywolf82 answered here: Update Eclipse with Android development tools v. 23
归功于@greywolf82 在这里回答:使用 Android 开发工具 v. 23 更新 Eclipse
credit goes to @MarcoDuff answered here: Cannot complete the install because of a conflicting dependency
归功于@MarcoDuff 在这里回答:由于依赖冲突,无法完成安装