网站首页 健康小知识 母婴教育 起名 运动知识 职场理财 情感生活 绿色生活 游戏数码 美容 特色美食 爱好

java.lang.RuntimeException

栏目: 互联网 / 发布于: / 人气:9.99K

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)但有时你发觉你已经注册,这时你要仔细检查,看看是不是包名写错了,仔细排查错误。就能解决了。

Tags:
推荐内容