Skip to content Skip to sidebar Skip to footer

Android Webview App Crashing In Emulator: Null Application Context?

I'm developing a very simple Android app on a Mac in AndroidStudio and I've created an AVD based on the Nexus S. The app compiles with no issues, the emulator launches and then I g

Solution 1:

Here's the logcat output

That is not a Java stack trace, and therefore is not what you're looking for.

I'm assuming that the first error related to ApplicationContext is the cause of the other errors, but I'm not sure about that

That is some spurious message that you will see, even from apps that run fine.

If not, what is?

As ozbek notes, your <uses-permission> element needs to be moved outside of <application> and made a direct child of <manifest>. Your Java stack trace should mention a missing INTERNET permission.

It is possible that there are other problems, but that's definitely one.

Post a Comment for "Android Webview App Crashing In Emulator: Null Application Context?"