Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Droid-Fu build error

I am trying to build Droid-Fu as specified on the GitHub page but the build is failing. Here is the message which I got after running mvn package inside the Droid-Fu folder

[INFO] artifact junit:junit: checking for updates from central
Downloading: http://powermock.googlecode.com/svn/repo//com/google/android/maps/maps/9_r1/maps-9_r1.jar
[INFO] Unable to find resource 'com.google.android.maps:maps:jar:9_r1' in repository powermock-repo (http://powermock.googlecode.com/svn/repo/)
Downloading: http://repo1.maven.org/maven2/com/google/android/maps/maps/9_r1/maps-9_r1.jar
[INFO] Unable to find resource 'com.google.android.maps:maps:jar:9_r1' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) com.google.android.maps:maps:jar:9_r1

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=com.google.android.maps -DartifactId=maps -Dversion=9_r1 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=com.google.android.maps -DartifactId=maps -Dversion=9_r1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
    1) com.github.droidfu:droid-fu:jar:1.0-SNAPSHOT
    2) com.google.android.maps:maps:jar:9_r1

----------
1 required artifact is missing.

for artifact: 
  com.github.droidfu:droid-fu:jar:1.0-SNAPSHOT

Any idea what I may be doing wrong?

like image 956
Abhinav Avatar asked May 09 '26 08:05

Abhinav


1 Answers

I had the same problem. The newer versions of the Android SDK have shifted directories slightly. You have to point maven at the correct path for the Google Maps jar version 9.

Just replace path-to-android-sdk with your base directory in the following command

mvn install:install-file -DgroupId=com.google.android.maps -DartifactId=maps -Dversion=9_r1 -Dpackaging=jar -Dfile=path-to-android-sdk/add-ons/addon_google_apis_google_inc_9/libs/maps.jar

Then you want to execute the following command to build the droid-fu jar: mvn package

Hope this helps!

like image 73
bumbobway Avatar answered May 10 '26 23:05

bumbobway