我有一个spiner,我想设置一个键和一个值,我使用HashMap,这是工作,但显示一行,如下所示:

码:
final View rootView = inflater.inflate(R.layout.fragment_photos, container, false);
Spinner spin=(Spinner)rootView.findViewById(R.id.spinner1);
HashMap<Integer, String> P_Hash=new HashMap<Integer, String>();
Update Get_Information=new Update(rootView.getContext());
ArrayList<String> Province_NAME=new ArrayList<String>();
Province_NAME=Get_Information.GET_Province();
ArrayList<Integer> Province_ID=new ArrayList<Integer>();
Province_ID=Get_Information.Get_Province_ID();
for (int i = 0; i < Province_ID.size(); i++)
{
P_Hash.put(Province_ID.get(i), Province_NAME.get(i));
Log.d("Province_ID.get(i)", Province_ID.get(i)+"");
Log.d(" Province_NAME.get(i)", Province_NAME.get(i)+"");
}
ArrayAdapter<HashMap<Integer, String>> adapter = new ArrayAdapter<HashMap<Integer,String>>(rootView.getContext(), android.R.layout.simple_spinner_item);
adapter.add(P_Hash);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spin.setAdapter(adapter);
Run Code Online (Sandbox Code Playgroud) 我正在尝试在Cygwin中为Android NDK配置工具链.我使用本教程.当我运行以下命令时:
./make-standalone-toolchain.sh --platform = android-9 --install-dir = c:/ android-toolchain --ndk-dir = c:/ android-ndk-r10d /
它显示"无法从工具链自动配置拱门"
我该如何解决问题?