w2ysw3m / adt-addons

Automatically exported from code.google.com/p/adt-addons
0 stars 0 forks source link

API Analysis not compatible with latest ADK 15 (SHOWSTOPPER) #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Update android to ADT 15
2. run check for updates in eclipse

What is the expected output? What do you see instead?
- I expect to be able to update the ADT plugins.
- instead I get an error about incompatible dependencies.

What version of the product are you using? On what operating system?
- OSX Lion
- Eclipse Helios
- ADT 15

Please provide any additional information below.

Here is the error log from the plugin update screen:

Cannot complete the install because of a conflicting dependency.
  Software being installed: Android Development Tools 15.0.0.v201110251216-213216 (com.android.ide.eclipse.adt.feature.group 15.0.0.v201110251216-213216)
  Software currently installed: Android API Analysis 1.0.2.201110100622 (com.android.ide.eclipse.api.analysis.feature.feature.group 1.0.2.201110100622)
  Only one of the following can be installed at once: 
    Android Development Toolkit 14.0.0.v201110171935-205994 (com.android.ide.eclipse.adt 14.0.0.v201110171935-205994)
    com.android.ide.eclipse.adt 15.0.0.v201110251216-213216
  Cannot satisfy dependency:
    From: Android Development Tools 15.0.0.v201110251216-213216 (com.android.ide.eclipse.adt.feature.group 15.0.0.v201110251216-213216)
    To: com.android.ide.eclipse.adt [15.0.0.v201110251216-213216]
  Cannot satisfy dependency:
    From: Android API Analysis 1.0.2.201110100622 (com.android.ide.eclipse.api.analysis 1.0.2.201110100622)
    To: bundle com.android.ide.eclipse.adt [11.0.0,15.0.0)
  Cannot satisfy dependency:
    From: Android API Analysis 1.0.2.201110100622 (com.android.ide.eclipse.api.analysis.feature.feature.group 1.0.2.201110100622)
    To: com.android.ide.eclipse.api.analysis [1.0.2.201110100622]

Original issue reported on code.google.com by o...@sixgreen.com on 28 Oct 2011 at 8:00

GoogleCodeExporter commented 9 years ago
I think that all thats required is a change tot he manifest. at the moment the 
dependencies specify 11 inclusive to 15 exclusive.

Original comment by o...@sixgreen.com on 28 Oct 2011 at 8:09

GoogleCodeExporter commented 9 years ago

Index: META-INF/MANIFEST.MF
===================================================================
--- META-INF/MANIFEST.MF    (revision 62)
+++ META-INF/MANIFEST.MF    (working copy)
@@ -2,13 +2,13 @@
 Bundle-ManifestVersion: 2
 Bundle-Name: Android API Analysis
 Bundle-SymbolicName: com.android.ide.eclipse.api.analysis;singleton:=true
-Bundle-Version: 1.0.2.qualifier
+Bundle-Version: 1.0.3.qualifier
 Bundle-Activator: com.android.ide.eclipse.api.analysis.Activator
 Bundle-Vendor: The Android Open Source Project
 Require-Bundle: org.eclipse.ui;bundle-version="3.6.2",
  org.eclipse.core.runtime;bundle-version="3.6.0",
  org.eclipse.jdt.core;bundle-version="3.6.1",
- com.android.ide.eclipse.adt;bundle-version="[11.0.0,15.0.0)",
+ com.android.ide.eclipse.adt;bundle-version="[11.0.0,15.0.0]",
  org.eclipse.core.resources;bundle-version="3.6.0"
 Bundle-RequiredExecutionEnvironment: JavaSE-1.6
 Bundle-ActivationPolicy: lazy

Original comment by o...@sixgreen.com on 28 Oct 2011 at 8:16

GoogleCodeExporter commented 9 years ago
well there is a patch that makes 15.0.0 inclusive rather than exclusive, but 
really you could likely get away with no maximum dependency:

+ com.android.ide.eclipse.adt;bundle-version="11.0.0",

it would likely work for the next several plugin updates... you would 
eventually have to fix it, but maybe not right at the next update.

Original comment by o...@sixgreen.com on 28 Oct 2011 at 8:18

GoogleCodeExporter commented 9 years ago
> + com.android.ide.eclipse.adt;bundle-version="11.0.0",

These settings can cause that main ADT plugin crash when ADT team change API 
and it is harder to detect.

I have upgrade to ADT 15 and test it.

Original comment by snp...@gmail.com on 28 Oct 2011 at 9:37