日食朱诺/ Android的打破,调试是错误的,根文件夹没有创建(R误差) [英] Eclipse Juno/Android broken, the debug is wrong and gen folder not created (R error)

查看:166
本文介绍了日食朱诺/ Android的打破,调试是错误的,根文件夹没有创建(R误差)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常非常奇怪的问题,我相信我的elcipse JUNO坏了。我在这次月食Android的ADT插件。

I have a very very strange issue, and i believe my elcipse juno is broken. I have the Android ADT plugin in this eclipse.

下面的截图将证明我的信。

The following screenshot will prove my believe.

和其尚未完成。上面的截图后,我再次preSS F6,这是我得到了什么:

And its not finished yet. After the screenshot above, i press F6 again, and this is what i got :

我会再次解释这种情况下做出明确的问题。调试我的应用程序,然后我得到了 ARG2 值是1。在那之后,我preSS F6和code变为0的情况(而不是案例1),然后我preSS再次F6和code去区分6(WTF ?????我有一个,怎么来的它涉及到的情况下0和6的情况下?)

I will explain this case once again to make a clear question. I debug my application, then i got that the arg2 value is 1. After that, i press f6 and the code goes to case 0 (instead of case 1) and then i press f6 again and the code goes to case 6 (WTF????? i do have a break, how come it comes to case 0 and case 6?)

如果你需要它,这是在上面的截图code:

In case you need it, this is the code in the above screenshots :

public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
        // TODO Auto-generated method stub
        Intent i = new Intent(this, Chapter.class);

        switch(arg2)
        {
        case 0:
            Toast.makeText(this, "a", Toast.LENGTH_SHORT).show();
            break;
        case 1:
            i.putExtra("key", 1);
            Toast.makeText(this, arg2 , Toast.LENGTH_SHORT).show();
            startActivity(i);
            break;
        case 2:
            i.putExtra("key", 2);
            startActivity(i);
            break;
        case 3:
            i.putExtra("key", 3);
            startActivity(i);
            break;
        case 4:
            i.putExtra("key", 4);
            startActivity(i);
            break;
        case 5:
            i.putExtra("key", 5);
            startActivity(i);
            break;
        case 6:
            i.putExtra("key", 6);
            startActivity(i);
            break;
        case 7:
            i.putExtra("key", 7);
            startActivity(i);
            break;
        case 8:
            i.putExtra("key", 8);
            startActivity(i);
            break;
        }
    }

非常感谢你,任何帮助是AP preciated。

Thank you very much, and any help is appreciated.

推荐答案

,这是因为在 ADT 22 的bug打破。我需要升级到ADT最新版本并安装的 Android组建工具。在此之后,程序和调试运行正常。

YES, it is broken because of the bug in ADT 22. I need to upgrade the ADT to latest version and install Android Build Tools. After that, the program and the debugging runs NORMALLY.

这些都是可以帮助你,如果你遇到一个同样的问题,与我的链接:

Those are the links that may help you if you encounter a same problem with me :

https://groups.google.com/forum/ ?fromgroups#!话题/ Android的开发者/ rCaeT3qckoE
https://groups.google.com/forum/?fromgroups =#!话题/ ADT-dev /目录epOfZbKPFdk

这篇关于日食朱诺/ Android的打破,调试是错误的,根文件夹没有创建(R误差)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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