Android error – Caused by: java.lang.NoClassDefFoundError: android.support.v4.util.SparseArrayCompat

Right Click on your project -> Build Path -> Configure Build Path -> Order and Export Tab.

Make sure that “Android Private Libraries” is checked for Export.

If you’ve added any libraries from the libs/ folder, remove them as they are automatically added in the “Android Private Libraries” section.

Leave a Comment