Android Sdk Content Loader Failing with Nullpointerexception

Android SDK Content Loader failing with NullPointerException

Ok I've no idea exactly what I did but I used the standalone AVD manager (/tools/android from the command line) and un-installed most apart from the "Android SDK Tools, revision 2".
And then reinstalled the parts I wanted and the error seems to have gone away..
Confused!

Android SDK content loader has encountered an error

Alright, so i managed to fix this by deleting the AVD folder inside the .android folder on my home directory.

Android sdk Content Loader has encountered an issue

It's so Easy:

  1. Delete your "C:\Users\ [username] \ .android\avd"
  2. Delete all AVD
  3. Restart eclipse and
  4. start AVD manager

Done

Unknown exception in parseSdkContent

Maybe the file is referencing another file leading to some sort of infinite loop? Such a situation is discussed here(NPE). Maybe you have renamed the project or moved directories which created an error? Here is a similiar error but it is also created by a null pointer exception, but maybe some of the answers will be applicable. Also, I have heard of problems with the SDK when it is loaded in directories with a space. So if your SDK is located in "Program Files", maybe try moving it to another folder in your root directory "c:\SDK". Good luck.

Proguard shrinking causes Null Pointer Exception

Taker care that you excluded classes and methods from ProGuard processing:

# Hide warnings about references to newer platforms in the library
-dontwarn android.support.v7.**
# don't process support library
-keep class android.support.v7.** { *; }
-keep interface android.support.v7.** { *; }

The error occurs usually, if Reflection is involved because Proguard can't resolve the dependencies in this case.

I just see you missed the interfaces in your ProGuard file (as per exception):

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method ...


Related Topics



Leave a reply



Submit