我每次都收到此错误“java.lang.ArrayIndexOutOfBoundsException:13” [英] i am receiving this error everytime "java.lang.ArrayIndexOutOfBoundsException: 13 "

查看:95
本文介绍了我每次都收到此错误“java.lang.ArrayIndexOutOfBoundsException:13”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

//mainactivity java

package com.example.helloworld; 
import android.os.Bundle; 
import android.app.Activity; 
import android.view.Menu;
import android.content.Intent; 
import android.view.View; 
public class MainActivity extends Activity {
	@Override 
public void onCreate(Bundle savedInstanceState) <big></big>//point of error
	{ super.onCreate(savedInstanceState); 
	setContentView(R.layout.activity_main); }
	
	@Override 
	public boolean onCreateOptionsMenu(Menu menu) 
	{
		getMenuInflater().inflate(R.menu.main, menu); 
	return true; 
	} 
	// broadcast a custom intent. 
	
	public void broadcastIntent(View view)
	{ 
		Intent intent = new Intent(); 
		intent.setAction("com.tutorialspoint.CUSTOM_INTENT"); 
		sendBroadcast(intent); 
		} 
	}

推荐答案

请激活IDE编辑器的行号。

IDE会告诉你发生了哪一行。



你也可以调试异常。

请参阅IDE的在线帮助。
Please activate the line numbers for the editor of your IDE.
The IDE will tell you in which line that happens.

You can also Debug the exception.
Please refer to the online help for your IDE for that.


这篇关于我每次都收到此错误“java.lang.ArrayIndexOutOfBoundsException:13”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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