开发者社区 问答 正文

使用github下载的xutils里的httputils参数报错 ?报错

图片说明
@Override
public void onSuccess(ResponseInfo file) {
// TODO Auto-generated method stub
// 、、跳转到安装页面
Intent intent=new Intent(Intent.ACTION_VIEW);
intent.addCategory(Intent.CATEGORY_DEFAULT);
intent.setDataAndType(Uri.fromFile(arg0.result), //这里的arg0.result报错
"application/vdn.android.package-archive");

            }

展开
收起
爱吃鱼的程序员 2020-06-23 21:20:48 632 分享
分享
版权
举报
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    你用的是什么版本的?是2.6.14的吗,要不用最新的3.0的试试

    2020-06-23 21:21:05 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论