eclipse中android编码的问题 [英] Problem with android coding in eclipse
本文介绍了eclipse中android编码的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在eclipse中遇到以下错误
java.lang.ArrayIndexOutOfBoundException
i创建了一个简单的空白活动,我们在创建新项目时总是这样做。
i已经更新了sdk版本,最新jre安装得很好。
我正在使用Macbook。
我无法麻烦拍这个问题请帮助我out。
解决方案
在Java程序中,当我的代码需要一些程序参数但我忘了传递它时,它发生在我身上。
示例:
class A {
psvm( String ... s){
system.print.out(s [ 0 ]);
}
}
我们执行程序,如
> java A
so ArrayIndexOutOfBoundException例外是
所以你应该检查,如果这样的事情发生了吗?
i am getting following error in eclipse
" java.lang.ArrayIndexOutOfBoundException"
i have created a simple blank activity, which we always do while creating the new project.
i have updated sdk versions, latest jre installed well.
I am using Macbook.
I am unable to trouble shoot this problem kindly help me out.
解决方案
In Java programs it happened with me sometime when my code expects some program arguments but i forgot to pass them. Example: class A{ psvm(String ...s){ system.print.out(s[0]); } } And we execute the program like >java A so ArrayIndexOutOfBoundException Exception comes so may be you should check , if something like that is happening or not ??
这篇关于eclipse中android编码的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文