eclipse can't find android.support.v4.widget.SwipeRefreshLayout

前端 未结 9 1733
余生分开走
余生分开走 2020-11-30 11:20

Even after clicking on Add Support Library and choosing version 19, eclipse still can\'t find android.support.v4.widget.SwipeRefreshLayout. Does anyone know how to get this

9条回答
  •  独厮守ぢ
    2020-11-30 11:44

    For some reason, even though you may include v4 support library or you may have v7-appcompat included in your project, you may not be able to import SwipeRefreshLayout.

    You need to make sure that

    • you change the target=android-19 to target=android-22(It should be anything greater that 19) and
    • manually import : import android.support.v4.widget.SwipeRefreshLayout; in your activity which will resolve the import related issue.

提交回复
热议问题