I've been following the Libgdx tutorial here and I'm running into a strange problem. Due to the constraints of my work environment, I can't download OpenGL drivers on my desktop, so I can't test my application on the desktop. I have to test it on my Android device. It's running some variation of an Android 2.3.4 build, which is API level 10.
The problem is, whenever I make changes to my code and run the Android application, the changes aren't reflected. It just starts the build it installed the first time I ran my code. I uninstalled the app on my Android and re-ran it, running into the same problem. I made an entirely fresh Libgdx project and copied my new code over to it, and it worked fine, until I made more changes to the new version, then I ran into the same problem. So I know for a fact that the code I'm changing is making a difference in how it should look, it just isn't being reflected. Is there something I'm missing?
My steps, to clarify:
- Set up a Libgdx project with gdx-setup-ui.jar
- Import the newly created project to Eclipse using the default import settings
- Code for a while, creating some version of my application (for instance, in that tutorial, I code till I set up the debug
ShapeRenderer
, and test to make sure my app looks right)
- Run the Libgdx Android application to test it on my phone
- Code some more, changing things, adding things, whatever (even changing images in my assets)
- Re-run the Libgdx Android application to test it on my phone
- The application that shows up is the same as it was when I ran it the first time in step 4
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…