Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hidden build.xml in google play services library used for google maps v2?

Tags:

android

I believe eclipse had a case of the crashes and something weird happened. I restarted the project and have done everything I can think of from scratch.

The code and config files look perfect.

++I have updated the project via command line. (./android update project --name GPSTest --target 4 --path "/home/me/workspace/GPSTest")

++I then go to the root of the project and use ant debug

and I get this error:

-build-setup:
[echo] Resolving Build Target for GPSTest...
[gettarget] Project Target:   Google APIs
[gettarget] Vendor:           Google Inc.
[gettarget] Platform Version: 4.2
[gettarget] API level:        17
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for GPSTest...
[dependency] Library dependencies:
[dependency] 
[dependency] ------------------
[dependency] Ordered libraries:
[echo] ----------
[echo] Building Libraries with 'debug'...

BUILD FAILED
/home/me/android-sdks/tools/ant/build.xml:595: 
Invalid file: /home/me/android-sdks/extras/google/google_play_services/libproject
/google-play-services_lib/build.xml

I have no idea how this happened

like image 219
Jane Doh Avatar asked Feb 08 '13 17:02

Jane Doh


2 Answers

Running

android update project --path . 

on the google_play_services directory fixed this exact problem for me.

like image 114
deepwinter Avatar answered Oct 24 '22 12:10

deepwinter


Try running android update project on the play services lib.

Beyond that, I would delete google_play_services and get a fresh copy from the Android SDK manager.

like image 23
Jon F Hancock Avatar answered Oct 24 '22 12:10

Jon F Hancock