Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error in typeanumber - android.support.v4.app.fragment cannot be resolved

Im using eclipse ide and recently decided to try out the google play game services. Im following this tutorial:

https://developers.google.com/games/services/android/quickstart#before_you_begin

Ive added the google play services SDK by downloading using android SDK manager, then copying the folder to my workspace. I then used file>import>android>project from exisiting code.

In step three it is adking me to import the typeanumber project. However as soon as i import it there are errors in it.

Am i doing something wrong?

Ive searched around but nothing seems to help

like image 586
Hamzah Malik Avatar asked Sep 22 '13 14:09

Hamzah Malik


2 Answers

Go to the project properties -> Java Build Path -> Libraries -> Add External JARs (Under 'extras' folder select 'Android' -> support -> v4 -> android-support-v4.jar) Add the file and build the project to get rid of this error

like image 184
Shilpa Avatar answered Oct 14 '22 12:10

Shilpa


You need to make sure android-support-v4.jar is in your project Libraries (in project properties, under Java Build Path.

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

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

like image 32
Jeremy Scoggins Avatar answered Oct 14 '22 12:10

Jeremy Scoggins