1

I use Eclipse to write android code. I created a new android project. When I attempt to import the Google play service library I get the following error:

Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Holo.Light.DialogWhenLarge.NoActionBar'. appinvite_styles.xml /google-play-services_lib/res/values-v11

The following are my API level details:

  <uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="21" />

enter image description here

I downloaded the Google play service via the SDK manager. It is better to say that I downloaded the FULL package of android SDK.

i think API 11 it's problem how can i change it ?

enter image description here

How should I resolve this?

i right click the google service library~> android ~> set API 21

That's works fine ! good luck

Dunatotatos
  • 1,706
  • 15
  • 25
aH ProgrammeR
  • 73
  • 1
  • 2
  • 7

2 Answers2

0

I recently faced this issue. I believe you would have imported the google play services library project in your workspace? It's weird but android wants you to build that project with their latest API. Try to install and change the Project Build Target to Android 6.0(API 23). Then clean the project and build again. Errors should go now.

LoveForDroid
  • 1,072
  • 12
  • 25
0

[Solved] : i right click the google service library(when i add it to my project ) ~> android ~> set API 21

That's works fine ! good luck

aH ProgrammeR
  • 73
  • 1
  • 2
  • 7