2013-05-03 58 views
1

我有一個應用程序與100安裝dones,但我有java.lang.NullPointerException 2錯誤,事情是,當錯誤來到我的設備或模擬器我可以解決它,但我想問問是否有任何方法可以修復該錯誤,如果您不知道它在哪個部分崩潰?Google play java.lang.NullPointerException

java.lang.RuntimeException: Unable to start activityComponentInfo{espanolasguapas/espanolasguapas.MainActivity}: 
    java.lang.NullPointerException 
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1750) 
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1766) 
    at android.app.ActivityThread.access$1500(ActivityThread.java:125) 
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:955) 
    at android.os.Handler.dispatchMessage(Handler.java:99) 
    at android.os.Looper.loop(Looper.java:130) 
    at android.app.ActivityThread.main(ActivityThread.java:3821) 
    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:875) 
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:633) 
    at dalvik.system.NativeStart.main(Native Method) 
    Caused by: java.lang.NullPointerException 
    at espanolasguapas.MainActivity.onCreate(MainActivity.java:119) 
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1714) 
    ... 11 more 
+0

你能重現錯誤嗎? – 2013-05-03 13:10:44

+3

引起:java.lang.NullPointerException at sxa.sexolia.espanolasguapas.MainActivity.onCreate(MainActivity.java:119) – SLaks 2013-05-03 13:11:43

回答

1

你的堆棧跟蹤告訴你哪個繫有空指針:

Caused by: java.lang.NullPointerException 
    at sxa.sexolia.espanolasguapas.MainActivity.onCreate(MainActivity.java:119) 

你的問題是線119MainActivity.java

請確保您查看您在發佈產品時使用的代碼 - 自上次發佈代碼後,您的開發分支可能會發生變化,這可能會弄亂行號。