java.lang.VerifyError:拒绝类,调用类的编译时验证失败

时间:2016-06-05 13:41:15

标签: android android-5.0-lollipop android-runtime

我需要在selectuser类中调用类数据 当用户从微调器中选择任何项目

时,我正在使用它
controller.hears(['texas'], 'ambient', function(bot, message) {
  bot.api.users.info({user: message.user}, function(err, info){
    //check if it's the right user using info.user.name or info.user.id
    bot.reply(message, info.user.name)
  })
})

它显示错误

@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
    int icon = imgid1[userspinner.getSelectedItemPosition()];
    prefs.edit().putInt("userposition", icon).commit();
    data d = new data();
    data d1 = d.Accept(userspinner.getSelectedItemPosition());
    current.setText(d1.getWeapon_pack());
}

这是Stacktrace

data d = new data();

1 个答案:

答案 0 :(得分:0)

我不确定这是否会对您有所帮助,但我在开始新活动时收到了相同的错误消息。在Android Studio偏好设置中禁用“即时运行”会使此错误消失。

settings screen shot