2012-10-04 61 views
0

我已經在Android手機和模擬器上運行得很好的應用程序的其他設備,但它給了我,當我在Nexus 7上運行一個錯誤:應用並不在Nexus 7上運行,但運行在

這裏我的logcat報告:

java.lang.RuntimeException: Unable to start activity 
ComponentInfo{com.aks.mobilereagents/com.aks.mobilereagents.MobileReagentsAc 
tivity}: java.lang.NullPointerException at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667) 
at android.app.ActivityThread.access$1500(ActivityThread.java:117) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935) 
at android.os.Handler.dispatchMessage(Handler.java:99) 
at android.os.Looper.loop(Looper.java:130) 
at android.app.ActivityThread.main(ActivityThread.java:3687) 
at java.lang.reflect.Method.invokeNative(Native Method) at 
java.lang.reflect.Method.invoke(Method.java:507) 
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:8 
67) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625) 
at dalvik.system.NativeStart.main(Native Method) Caused by: 
java.lang.NullPointerException at 
com.aks.mobilereagents.MobileReagentsActivity.onCreate(MobileReagentsActivit 
y.java:153) 
at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 
at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615) 
... 11 more 
+0

你可以擴展什麼是應用程序,也許? –

+0

謝謝你的回覆,但我發現我的錯誤。 – user1310156

+0

您可能會考慮擴展兩者,然後:p –

回答

1

您需要仔細閱讀您的例外情況。該錯誤幾乎肯定存在於您的代碼中(具體而言,在com.aks.mobilereagents.MobileReagentsActivity.onCreate(MobileReagentsActivit y.java:153)),而不是Nexus 7本身的錯誤。

相關問題