###Support Library v4 android-support-v4.jar 543 KB (556,198 bytes)
Copied In the libs folder of your project by ADT
###Google Play Services
https://gist.github.com/ddewaele/6277487
This project was in my workspace but the files were still in my sdk folder.
C:\SOFT\adt-bundle-windows-x86_64-20130729\sdk\extras\google\google_play_services\libproject\google-play-services_lib
###Compatibility-v7-appcompat
https://gist.github.com/ddewaele/6277476
This project was in my workspace but the files were still in my sdk folder.
C:\SOFT\adt-bundle-windows-x86_64-20130729\sdk\extras\android\support\v7\appcompat
Both library projects were copied into my workspace so that they are put on the same level as the project. (this fixes the Update Maven Project issue where the library references were lost).
Works great for launching the project in Eclipse
Library projects:
After Updating the project (Maven context menu)
A fix is
Fails however during a maven build because we had to exclude the compatibility library
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building com.ecs.foursquare 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- android-maven-plugin:3.6.0:generate-sources (default-generate-sources) @ com.ecs.foursquare ---
[DEBUG] Expanding: C:\Users\Corei5Amt\.m2\repository\com\google\android\gms\google-play-services\10\google-play-services-10.apklib into C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\target\unpack\apklibs\com.google.android.gms_google-play-services_apklib_10
[DEBUG] expand complete
[DEBUG] Expanding: C:\Users\Corei5Amt\.m2\repository\android\support\compatibility-v7-appcompat\18\compatibility-v7-appcompat-18.apklib into C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\target\unpack\apklibs\android.support_compatibility-v7-appcompat_apklib_18
[DEBUG] expand complete
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] Manifest merging disabled. Using project manifest only
[INFO] C:\SOFT\adt-bundle-windows-x86_64-20130729\sdk\build-tools\android-4.3\aapt.exe [package, -m, -J, C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\target\generated-sources\r, -M, C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\AndroidManifest.xml, -S, C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\res, -S, C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\target\unpack\apklibs/com.google.android.gms_google-play-services_apklib_10/res, -S, C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\target\unpack\apklibs/android.support_compatibility-v7-appcompat_apklib_18/res, --auto-add-overlay, -I, C:\SOFT\adt-bundle-windows-x86_64-20130729\sdk\platforms\android-17\android.jar]
[INFO] C:\SOFT\adt-bundle-windows-x86_64-20130729\sdk\build-tools\android-4.3\aapt.exe [package, --non-constant-id, -m, -J, C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\target\generated-sources\r, --custom-package, com.google.android.gms, -M, C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\AndroidManifest.xml, -S, C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\res, -S, C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\target\unpack\apklibs/com.google.android.gms_google-play-services_apklib_10/res, -S, C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\target\unpack\apklibs/android.support_compatibility-v7-appcompat_apklib_18/res, --auto-add-overlay, -I, C:\SOFT\adt-bundle-windows-x86_64-20130729\sdk\platforms\android-17\android.jar]
[INFO] C:\SOFT\adt-bundle-windows-x86_64-20130729\sdk\build-tools\android-4.3\aapt.exe [package, --non-constant-id, -m, -J, C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\target\generated-sources\r, --custom-package, android.support.v7.appcompat, -M, C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\AndroidManifest.xml, -S, C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\res, -S, C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\target\unpack\apklibs/com.google.android.gms_google-play-services_apklib_10/res, -S, C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\target\unpack\apklibs/android.support_compatibility-v7-appcompat_apklib_18/res, --auto-add-overlay, -I, C:\SOFT\adt-bundle-windows-x86_64-20130729\sdk\platforms\android-17\android.jar]
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ com.ecs.foursquare ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\src\main\resources
[INFO] skip non existing resourceDirectory C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\target\generated-sources\extracted-dependencies\src\main\resources
[INFO] Copying 0 resource
[INFO] skip non existing resourceDirectory C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\target\unpack\apklibs\android.support_compatibility-v7-appcompat_apklib_18\src
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ com.ecs.foursquare ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 29 source files to C:\Projects\Android\AndroidFoursquareGoogleApiJavaClient\target\classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /C:/Projects/Android/AndroidFoursquareGoogleApiJavaClient/src/com/ecs/android/foursquare/oauth2/store/SharedPreferencesCredentialStore.java: Some input files use or override a deprecated API.
[WARNING] /C:/Projects/Android/AndroidFoursquareGoogleApiJavaClient/src/com/ecs/android/foursquare/oauth2/store/SharedPreferencesCredentialStore.java: Recompile with -Xlint:deprecation for details.
[INFO] 2 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Projects/Android/AndroidFoursquareGoogleApiJavaClient/src/com/ecs/android/foursquare/FoursquareApiSample.java:[35,8] cannot access android.support.v4.app.TaskStackBuilder
class file for android.support.v4.app.TaskStackBuilder not found
[ERROR] /C:/Projects/Android/AndroidFoursquareGoogleApiJavaClient/src/com/ecs/android/foursquare/FoursquareApiSample.java:[174,13] cannot access android.support.v4.app.FragmentActivity
class file for android.support.v4.app.FragmentActivity not found
[ERROR] /C:/Projects/Android/AndroidFoursquareGoogleApiJavaClient/src/com/ecs/android/foursquare/FoursquareApiSample.java:[216,13] cannot access android.support.v4.app.ActionBarDrawerToggle
class file for android.support.v4.app.ActionBarDrawerToggle not found
[ERROR] /C:/Projects/Android/AndroidFoursquareGoogleApiJavaClient/src/com/ecs/android/foursquare/FoursquareApiSample.java:[56,17] cannot find symbol
symbol: variable super
location: class com.ecs.android.foursquare.FoursquareApiSample
So...
how to exclude the compatibility library in maven build