Keywords: Eclipse | ADT | Android Development | Version Conflict | ProGuard
Abstract: This paper provides an in-depth analysis of dependency conflicts and tool missing issues encountered during the upgrade from Android Development Tools (ADT) v22 to v23 in Eclipse. By examining Eclipse plugin management mechanisms and SDK tool structures, it offers comprehensive solutions including using ADT v23.0.2 fixes, manually restoring missing ProGuard tool files, and recommending complete ADT Bundle installations. The paper also explores the technical principles of Eclipse plugin dependency management, providing practical troubleshooting guidance for Android developers.
Problem Background and Technical Analysis
In the Android development tool ecosystem, version compatibility between Eclipse IDE and Android Development Tools (ADT) is crucial. When developers attempt to upgrade from ADT v22 series to v23, they frequently encounter two core issues: plugin dependency conflicts and missing SDK tool files.
Technical Root of Dependency Conflicts
Eclipse's plugin management system is based on the OSGi framework, employing strict version control mechanisms. Analysis of the error message reveals:
Cannot complete the install because of a conflicting dependency.
Software being installed: Android Development Tools 23.0.0.1245622
Software currently installed: Android Developer Tools 22.2.1.v201309180102-833290
Only one of the following can be installed at once:
ADT Package 22.6.3.v201404151837-1123206
ADT Package 23.0.0.1245622
This conflict stems from Eclipse's mutual exclusion installation policy for different versions of the same plugin. ADT v23 requires complete replacement of v22 core components, but existing v22 plugins prevent this process.
Official Solution: ADT v23.0.2 Fixes
Google has officially released ADT v23.0.2, specifically addressing multiple issues in early v23 versions. Recommended installation steps:
- Open Eclipse, select Help → Install New Software
- Enter Android update source in "Work with" field:
https://dl-ssl.google.com/android/eclipse - Select ADT v23.0.2 for installation
- When "Install Remediation Page" appears, select "Update my installation to be compatible with items being installed"
This option automatically uninstalls the old version and installs the new version, effectively resolving dependency conflicts.
Handling Missing SDK Tools Issues
The initial ADT v23 release suffered from severe packaging errors, resulting in missing critical tool files:
- Complete absence of
tools/proguarddirectory - Missing
tools/hprof-convtool - Non-existent
tools/support/annotations.jarsupport library file
Temporary solution involves manually copying these files from ADT v22.6.2:
# Download ADT v22.6.2 for corresponding platform
# Copy following files to new SDK tools directory:
# - tools/hprof-conv
# - tools/support/annotations.jar
# - tools/proguard/ directory with all contents
Recommended Best Practice: Complete ADT Bundle Installation
To avoid various issues during upgrade process, Google recommends directly downloading and using complete ADT Bundle:
- Linux 64-bit:
http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip - Linux 32-bit:
http://dl.google.com/android/adt/adt-bundle-linux-x86-20140702.zip - macOS:
http://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip - Windows 32-bit:
http://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip - Windows 64-bit:
http://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip
This approach completely avoids version conflict issues and ensures integrity of all tool files.
Technical Explanation of Tool Path Changes
In ADT v23, storage locations for some tools have changed:
# zipalign tool moved from tools/ directory to build-tools/ directory
# Old path: SDK/tools/zipalign
# New path: SDK/build-tools/<version>/zipalign
This change reflects architectural evolution of Android build system, separating core build tools from general development tools.
Alternative Solutions and Migration Recommendations
For developers experiencing persistent issues, consider following alternatives:
- Download fresh Eclipse version, then install ADT through plugin marketplace
- Update workspace to point to original project files
- Consider migrating to Android Studio, Google's officially recommended next-generation Android development environment
Conclusion and Best Practice Summary
ADT v23 update issues highlight version management challenges in large development tool ecosystems. By adopting complete ADT Bundle installations, promptly applying official fix patches, and understanding architectural changes in tool paths, developers can effectively avoid these problems. This also reminds us to pay attention to evolution trends in tool ecosystems and consider migrating to more modern development environments when appropriate.