Android打包后,有些方法不能被调用??请大神们看看啊。。我看了有些说 混淆的问题,我试了啊
是被混淆了吧,对于用于反射的数据最好不要混淆
怎么解决呢??
// 数字字典 同步
private void getDigitalDictionary() {
DictVersionDBManager versionDB = DictVersionDBManager.getInstance(getApplicationContext());
ArrayList<DictVersion> versionList = versionDB.getVersion();
Gson gson = new Gson();
String json = gson.toJson(versionList);
AjaxParams params = new AjaxParams();
params.put("versions", json);
String urlString = YimiUrl.toAbsolute( YimiUrl.getDigitalDictionary) ;
postJSON(urlString, new NetworkJsonCallback() {
@Override
public void jsonLoaded(JSONObject jsonObject, int code) {
if (code == StatusConfig.success) {
JSONArray dataArray = Tools.getJJsonArr(jsonObject, "data");
updateDic(dataArray);
}
}
}, netControl,params);
}
这样 放在 启动页的activity里 为什么会 打包后不执行呢??求解