error in typeanumber - android.support.v4.app.fragment cannot be resolved
Solution 1
I fixed this myself by adding the google-play-lib library and BaseGameUtil to the Android build path NOT the java build path. That is, under project properties, in the Android tab, add the libraries
Solution 2
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
Solution 3
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
Hamzah Malik
I'm a freelance software developer, specialising in mobile apps for Android and iOS
Updated on June 08, 2022Comments
-
Hamzah Malik about 2 years
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