Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I've made a small application with libgdx framework, which works perfectly on desktop. It runs on Android too, however once I change something in my main project and try to recompile it on my phone, it seems like the Android still runs the old version.

I've tried to re-install the app, but it does not help. The only way I can see the changes on my phone is to recreate a different Android project.

Any ideas what might be causing this kind of behavior?

My projects are created the way it is shown here: http://code.google.com/p/libgdx/wiki/ProjectSetup

EDIT: Not sure why, but everything seems to work fine after "re-installing" Eclipse

share|improve this question
add comment

2 Answers 2

Maybe it's the fault of eclipse, not libgdx. Please check whether you tick Project->Build Automaticcally or not. Or else you can try to build by ant in command line. This is my complete compiling script:

cd "project_folder"
adb uninstall com.package
call ant clean
call ant debug
adb install "bin\project_debug.apk"
adb shell am start -n com.package/.MainActivity
share|improve this answer
    
Thanks for trying to help me, but it didn't work. It's so frustrating! –  Alvydas Jul 19 '12 at 9:16
add comment

I had similar problem, though I don't remember exact solution. It was one-time problem, which never appeared before and after and was also unexpected (I didn't do anything different from what I have done all the time). Try these steps:

  • remove your app from Android device
  • manually remove all directories containing bin data from every project associated with your game; rebuild all projects
  • restart your IDE and Android device (I suppose this is most important for Android device)
  • uncheck auto-build

You might also want to test it with other device, if available, to narrow possibilities.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.