Support Library

  1. Place the support library jar in the lib directory of project.

[sdk-dir]/extras/android/support/v4/android-support-v4.jar.

  1. AndroidManifest.xml.
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="17" />
  1. Import the support version instead of the original.

Imports android.support.v4.app.SearchViewCompat;.

Uses this line...

Imports android.widget.SearchView;.

Not this line!

Updated: 2026 Aug 19