Android SDK Content Loader failing with NullPointerException

The issue is in the your-avd-name.ini that is located at …\<user-profile>\.android on your Windows machine (if you’re Windows user). When any error occurs during the avd.ini parser, the Google ADT plugin tries to access a map that is null. The workaround is to delete the offending .ini file and recreate your avd(s). This information was … Read more

Caused by java.lang.NullPointerException: Attempt to invoke virtual method ‘int android.graphics.Bitmap.getWidth()’ on a null object reference

The problem you are facing is that you are trying to getWidth() on your unscaledBitmap in the createScaledBitmap function. Clearly, your unscaledBitmap is null sometimes; and calling getWidth() is causing the Null Pointer exception. The root cause is that decodeResource is returning you a null for whatever reason. The reasons can include – No read … Read more

tech