Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / If you are getting the error about android.support.v4.app.fragment

Author
Message
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 31st May 2013 17:45
My Eclipse builds had been fine. Then I updated my android-sdk to the latest version.

And thinks went to heck.

And I finally found what appears to be a solution for the errors mentioning 'android.support.v4.app.fragment' and the mysterious 'java build path'.

Right click on your project and bring up the Properties.

Click on 'Java Build Path' and then its 'Libraries' tab.

Click on 'Add External JARs...'.

(The following assumes that all your android stuff is in C:\Android and the android sdk is in C:\Android\android-sdk. Adjust as necessary for your installation.)

Navigate to C:\Android\android-sdk\extras\android\support\v4.

Select 'android-support-v4.jar' and click on the 'Open' button.

Refresh your project and the android.support.v4.app.fragment errors should be gone.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
LiamBradbury
13
Years of Service
User Offline
Joined: 28th Apr 2011
Location: Manchester, UK
Posted: 14th Jul 2013 16:27 Edited at: 14th Jul 2013 16:29
Thanks! Just spent 2 hours trying to fix this!

I now have an error message saying "g_iResult cannot be resolved or is not a field".

I also updated the android-sdk to the latest version! it seems to have messed everything up!

audiosparx.com/liambradburymusic - professional music for your games.
LiamBradbury
13
Years of Service
User Offline
Joined: 28th Apr 2011
Location: Manchester, UK
Posted: 14th Jul 2013 16:56
Ah, just sorted it!

audiosparx.com/liambradburymusic - professional music for your games.

Login to post a reply

Server time is: 2024-11-24 18:42:13
Your offset time is: 2024-11-24 18:42:13