日食找不到android.support.v4.widget.SwipeRefreshLayout [英] eclipse can't find android.support.v4.widget.SwipeRefreshLayout
问题描述
即使单击添加支持库,选择版本19,偏食还是找不到android.support.v4.widget.SwipeRefreshLayout。有谁知道如何得到这个工作?我使用
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 to work? I am using
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="19" />
我的工作在Mac计算机小牛与朱诺。
I am working on a mac mavericks computer with Juno.
更新:进口栏目
import java.util.Observer;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView;
import android.widget.TextView;
import android.support.v4.widget.SwipeRefreshLayout;//red underline
更新
顺便说一句,我不知道这是否很重要:这是连接Android项目的AppEngine上,我所要建造使用谷歌,Eclipse的插件
By the way, I don't know if this matters: this is an Appengine Connected Android Project, which I build using Google-Eclipse-Plugin
更新3:
它看起来像Android的支持库19.1.0是不是可以通过SDK管理器。我可能还有如何获得它?
It's looking like the Android Support Library 19.1.0 is not available through the SDK Manager. How else might I obtain it?
推荐答案
因此,原来的库在以下位置
So it turns out the library is in the following location
/android-sdk-macosx/extras/android/m2repository/com/android/support/support-v4/19.1.0
相对于通常的
As opposed to the usual
/android-sdk-macosx/extras/android/support
此外,我不得不重新启动Eclipse,然后转到 Android的SDK管理器
一遍又一遍又一遍,直到19.1.0版本显示出来。
Also I had to restart eclipse and go to Android SDK Manager
over and over and over, until the 19.1.0 version shows up.
我希望这样可以节省别人一些麻烦。
I hope this saves someone else some trouble.
这篇关于日食找不到android.support.v4.widget.SwipeRefreshLayout的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!