0

when i import google play service into my ecplise it shows error in appinvite_style.xml file

Error Location : res->values-v21->appinvite_styles.xml

<!-- Base preview application theme. -->
<style name="Theme.AppInvite.Preview.Base" parent="@android:style/Theme.Material.Light.DialogWhenLarge.NoActionBar"/>

appinvite_styles.xml

and also i tried to import appcomport-v7 but it throws the error in that folder too.

API Level :19 (4.2.2)

thanks in advance

Shiva Kumar
  • 85
  • 1
  • 10
  • Download latest google play service library and add this project as library in your main project, in my case it works – AmeeJoshi Mar 15 '16 at 12:21
  • What is your compile sdk version?? rightclick project=> dependency; there what is the version selected?? – DJphy Mar 15 '16 at 12:37

1 Answers1

0

The important thing in adding a library in eclipse is to remember that your project and the library project need to be in the same workspace.

To solve this follow below ways,

You can copy the google-play-services library project to the same workspace where your main project is there.

else

While importing the library to eclipse remember to check copy projects into workspace which will add a copy of the library to your workspace.

Please refer this: eclipse android can not import google play services library

Community
  • 1
  • 1
Android Enthusiast
  • 4,826
  • 2
  • 15
  • 30