AS 0.8.14, new project, Fullscreen Activity gives “Failed to find: com.android.support:support-v4:21.+”

402 Views Asked by At

For Android Studio 0.8.14 (just downloaded) running on MacOS 10.9.5, brand new project, I get the complaint “Failed to find: com.android.support:support-v4:21.+” in the Messages Gradle Sync pane. This happens after I created a new project and in that wizard when doing "Add an activity to Mobile..." I chose "Fullscreen Activity".

If I choose different activities instead of Fullscreen when creating the project, I get different results, some good, some bad. All the bad results must be linked to the same root problem. This is What have I done wrong?

I get the same error as above if I instead choose: Master/Detail Flow Activity Settings Activity

I get no error if I instead choose: Blank Activity Blank Activity with Fragment Navigation Drawer Activity

I get “Failed to find: com.google.android.gms:play-services:4.2.42 Failed to find: com.android.support:appcompat-v7:21.+” when I choose: Google Maps Activity Login Activity

I get “Failed to find: com.google.android.gms:play-services:4.2.42" when I choose: Google Play Services Activity

I get "Failed to find: com.android.support:support-v13:21.+" when I choose: Tabbed Activity

1

There are 1 best solutions below

2
On BEST ANSWER

Depending on which targetSdkVersion you select, the template projects may require at least one of the support libraries. You need to install them:

http://developer.android.com/tools/support-library/setup.html

  1. Start the Android SDK Manager.
  2. In the SDK Manager window, scroll to the end of the Packages list, find the Extras folder and, if necessary, expand to show its contents.
  3. Select the Android Support Library item. Note: If you're developing with Android Studio, select and install the Android Support Repository item instead.
  4. Click the Install packages... button.