SlidingMenu icon indicating copy to clipboard operation
SlidingMenu copied to clipboard

invalid dependecy on google maps API

Open Avinash-Bhat opened this issue 13 years ago • 6 comments

after the last pull request #191 the building of the project fails with error

Failure to find com.google.android.maps:maps:jar:17_r1

this was because there was dependency on google maps.

but why does the library be dependent upon the google maps API

the offending code is at library/pom.xml:22

Avinash-Bhat avatar Feb 20 '13 02:02 Avinash-Bhat

It's because of SlidingMapActivity. Like you already know, you're going to have to help me out with anything Maven related. You guys asked for it, so here it is. Now help meee! :)

jfeinstein10 avatar Feb 20 '13 02:02 jfeinstein10

this is an easy fix, you can try by removing the offending code from L22 - L25 and testing the example app.

I'm doing this now but it will take some time (expect a pull request by today)

thx.

Avinash-Bhat avatar Feb 20 '13 03:02 Avinash-Bhat

Btw if you have a failure on "com.google.android.maps:maps" You should think about running Android Maven SDK Deployer ! https://github.com/mosabua/maven-android-sdk-deployer

Currently the map is needed for this lib, if you don't want it you need to split the library into modules which will have to be accepted by jfeinstein....

Good luck guys ;)

@jfeinstein10 btw in the long run things will need to change (structure, package, etc)

Shusshu avatar Feb 20 '13 09:02 Shusshu

I solved this issue in my environment by changing the pom dependency to version to 17_r2 which is what i had installed automatically by the android utility...

toms972 avatar Mar 30 '13 19:03 toms972

How it should be 17_r3

  1. git clone https://github.com/mosabua/maven-android-sdk-deployer
  2. cd maven-android-sdk-deployer && mvn install
  3. update pom.xml
diff --git a/pom.xml b/pom.xml
index 8b0df60..0090cc1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -66,7 +66,7 @@
                        <dependency>
                                <groupId>com.google.android.maps</groupId>
                                <artifactId>maps</artifactId>
-                               <version>17_r1</version>
+                               <version>17_r3</version>
                        </dependency>
                        <dependency>
                                <groupId>com.google.android</groupId>

axet avatar Sep 18 '13 08:09 axet

@axet is right, but if you only want to use the 17_r3. you can just mvn install -P 4.2 in the maven-android-sdk-deployer

chancyWu avatar Sep 16 '14 09:09 chancyWu