我的Android應用程序在Samsung Galaxie S2,MotoDroid,ZTE Blade和Android模擬器上正常工作,但在HTC Desire上崩潰。 當我在HTC Desire上調試我的代碼時,它會拋出Resource Not found
例外SetContentView(R.layout.splash_screen_layout);
我已刪除並重新生成Gen文件夾,但無濟於事,迄今爲止只在HTC設備上再現該問題。Android應用程序不能在HTC Desire上工作,但在其他設備上工作正常
這裏的logcat的:
01-06 05:32:58.024: ERROR/AndroidRuntime(630): FATAL EXCEPTION: main
01-06 05:32:58.024: ERROR/AndroidRuntime(630): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.relay.BA/com.relay.BA.SplashScreen}: android.content.res.Resources$NotFoundException: Resource ID #0x7f030010
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2781)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2797)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at android.app.ActivityThread.access$2300(ActivityThread.java:135)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2132)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at android.os.Handler.dispatchMessage(Handler.java:99)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at android.os.Looper.loop(Looper.java:143)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at android.app.ActivityThread.main(ActivityThread.java:4914)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at java.lang.reflect.Method.invokeNative(Native Method)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at java.lang.reflect.Method.invoke(Method.java:521)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at dalvik.system.NativeStart.main(Native Method)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f030010
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at android.content.res.Resources.getValue(Resources.java:892)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at android.content.res.Resources.loadXmlResourceParser(Resources.java:1869)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at android.content.res.Resources.getLayout(Resources.java:731)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at android.view.LayoutInflater.inflate(LayoutInflater.java:318)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at android.app.Activity.setContentView(Activity.java:1654)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at com.relay.BA.SplashScreen.onCreate(SplashScreen.java:43)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1065)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2745)
有沒有人遇到此問題或有任何想法是怎麼回事?
什麼是你正在開發的應用程序..... – developer
這是保密的傢伙! – tipycalFlow