invalid dependecy on google maps API
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
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! :)
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.
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)
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...
How it should be 17_r3
- git clone https://github.com/mosabua/maven-android-sdk-deployer
- cd maven-android-sdk-deployer && mvn install
- 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 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