关闭→
当前位置:趣知常识网>游戏数码>互联网>java.lang.RuntimeException

java.lang.RuntimeException

趣知常识网 人气:8.57K

05-21 10:03:03.916: E/AndroidRuntime(18573): FATAL EXCEPTION: main
05-21 10:03:03.916: E/AndroidRuntime(18573): imeException: Unable to instantiate activity ComponentInfo{com.example.tomato/com.example.alarmtest.AppStart}: sNotFoundException: com.example.alarmtest.AppStart
05-21 10:03:03.916: E/AndroidRuntime(18573): at ormLaunchActivity()
05-21 10:03:03.916: E/AndroidRuntime(18573): at leLaunchActivity()
05-21 10:03:03.916: E/AndroidRuntime(18573): at ss$600()
05-21 10:03:03.916: E/AndroidRuntime(18573): at vityThread$leMessage()
05-21 10:03:03.916: E/AndroidRuntime(18573): at atchMessage()
05-21 10:03:03.916: E/AndroidRuntime(18573): at ()
05-21 10:03:03.916: E/AndroidRuntime(18573): at ()
05-21 10:03:03.916: E/AndroidRuntime(18573): at keNative(Native Method)
05-21 10:03:03.916: E/AndroidRuntime(18573): at ke()
05-21 10:03:03.916: E/AndroidRuntime(18573): at teInit$()
05-21 10:03:03.916: E/AndroidRuntime(18573): at ()
05-21 10:03:03.916: E/AndroidRuntime(18573): at (Native Method)
05-21 10:03:03.916: E/AndroidRuntime(18573): Caused by: sNotFoundException: com.example.alarmtest.AppStart
05-21 10:03:03.916: E/AndroidRuntime(18573): at Class()
05-21 10:03:03.916: E/AndroidRuntime(18573): at Class()
05-21 10:03:03.916: E/AndroidRuntime(18573): at Class()
05-21 10:03:03.916: E/AndroidRuntime(18573): at ctivity()
05-21 10:03:03.916: E/AndroidRuntime(18573): at ormLaunchActivity()

imeException

操作方法

(01)一般出现这个问题主要是没有在项目的里注册使用activity,主要就是这句: imeException: Unable to instantiate activity ComponentInfo{com.example.tomato/com.example.alarmtest.AppStart}: sNotFoundException: com.example.alarmtest.AppStart

(02)上面它已经就说,你没有实例化com.example.tomato/com.example.alarmtest.AppStart,tomato是项目名字,AppStart是没有实例化的activity。这就明白了,检查这下,注册<activity android:name="com.example.tomato.AppStart"/>。

(03)但有时你发觉你已经注册,这时你要仔细检查,看看是不是包名写错了,仔细排查错误。就能解决了。

TAG标签:#
猜你喜欢