Sunday, August 19, 2012

[android-developers] Re: NullPointerException launching Android application

  • Run your app
  • Open the LogCat View in Eclipse
  • Look for the Stack back trace in the LogCat view
  • Look for the line that says "Caused by" in the stack back trace
  • If this line is in your code put a breakpoint on that line and run your program again:
    • When your program breaks in to the debugger look at your code/variables in the debugger
    •  fix things
    • repeat :)
  • If it is NOT in your code the please post the LogCat stack dump here

On Sunday, August 19, 2012 12:58:05 PM UTC+1, emerald wrote:
I tried to build my first application today on eclipse. When I tried to run it, it writes "An internal error occurred during: "Launching My First App".
java.lang.NullPointerException". any solution?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate