昨天弄android 碰到的几个问题总结

1、File Explorer 没有文件。
  solution:重启模拟器


2、java.lang.IllegalStateException: get field slot from row 0 col -1 failed
  solution:数据库查询时写错cursor.getString(cursor.getColumnIndex("cardNum"));正确为:                                          cursor.getString(cursor.getColumnIndex("promoteContent"));

3、java.lang.NoClassDefFoundError: org.ksoap2.serialization.SoapObject
  solution:step1:选择项目-》鼠标右键-》build path-》config build path -》Order and Export,在KSoap2包前打勾;
       step2:eclipse -》project -》clean-》-》clean projects selected below -》选择项目-》OK


4、System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: 参数化查询           '(@userid nvarchar(4000))select SYSTOLIC, DIASTOLIC from BLOOD_PR' 需要参数 '@userid',但未提供该参数。
  solution:我要调用的webservice定义的数据格式是<cardnum>string</cardnum>,而我传的参数是{userid=249190020},不能理解这个 误,不过改成   {cardnum=249190020}确实可以了,看来与HashMap<key, value>有关系


5、eclipse中大小写切换
  solution:先选中ctrl+shift+x转为大写,ctrl+shift+y转为小写

原文地址:https://www.cnblogs.com/fengfenggirl/p/2613321.html