变化code,当我运行在Android Libgdx项目不会反映 [英] Changes in code aren't reflected when I run Libgdx project on Android

查看:188
本文介绍了变化code,当我运行在Android Libgdx项目不会反映的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在关注的Libgdx教程<一href="http://obviam.net/index.php/getting-started-in-android-game-development-with-libgdx-create-a-working-prototype-in-a-day-tutorial-part-1/"相对=nofollow称号=开始在Android的游戏开发与libgdx - 在日创建一个工作原型 - 教程第1部分>在此,我遇到了一个奇怪的问题。由于我的工作环境的限制,我无法下载OpenGL驱动程序我的桌面上,所以我不能测试我的桌面上的应用程序。我有我的Andr​​oid设备上进行测试。它运行的是Android 2.3.4版本,这是API 10级的一些变化。

现在的问题是,每当我修改我的code和运行Android应用程序,这些变化不会反映。这只是开始它安装的第一次,我跑我的code构建。我卸载应用程序在我的Andr​​oid和重新跑了,跑了同样的问题。我做了一个完全新鲜的Libgdx项目,并复制我的新code交给它,它工作得很好,直到我到新版本做出更多的变化,然后我遇到了同样的问题。所以,我知道一个事实,即code我改变正在于它应该如何看一个区别,它只是没有被反映出来。是否有什么我失踪?

我的步骤,以澄清:

  1. 设置了一个Libgdx项目GDX-设置-ui.jar
  2. 导入新创建的项目使用默认设置导入到Eclipse
  3. code一会儿,创造一些版本我的应用程序(例如,在教程中,我code,直到我成立了调试 ShapeRenderer 和测试,以确保我的应用程序看起来右)
  4. 运行Libgdx的Andr​​oid应用程序在手机上测试它
  5. code更多一些,改变的东西,添加的东西,什么(甚至是不断变化的图像在我的资产)
  6. 重新运行Libgdx的Andr​​oid应用程序在手机上进行测试
    • ,显示了该应用程序是一样的,因为它是当我跑它第一次在第4步
解决方案

这是在新版本ADT的错误。请明星的<一个href="http://$c$c.google.com/p/android/issues/detail?id=36174&thanks=36174&ts=1344514616">bug报告使谷歌意识到这个问题重重的给了。

最简单的方法是在Eclipse 清洁工程(或任何IDE你正在使用)或添加一个空格/换行符在你的Andr​​oid项目和保存。

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:

  1. Set up a Libgdx project with gdx-setup-ui.jar
  2. Import the newly created project to Eclipse using the default import settings
  3. 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)
  4. Run the Libgdx Android application to test it on my phone
  5. Code some more, changing things, adding things, whatever (even changing images in my assets)
  6. 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

解决方案

This is a bug in the newer versions of ADT. Please star the bug report to make Google aware of the troubles this gives.

Easiest way is to clean project in Eclipse (or whatever IDE you are using) or to add a space/newline in your Android project and save.

这篇关于变化code,当我运行在Android Libgdx项目不会反映的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆