Coder Social home page Coder Social logo

Comments (3)

xuexiangjys avatar xuexiangjys commented on May 28, 2024

那是你的数据解析不对,没有识别成强制更新。如需强制更新,请严格按照接口规范来,否则请自定义解析器。

from xupdate.

hufu4635 avatar hufu4635 commented on May 28, 2024

是对的啊,我把接口移动到DemoAPP中就没有了x号 其他的都是参考的Demoapp配置的
XUpdate.get() .isWifiOnly(true) //默认设置只在wifi下检查版本更新 .isGet(false) //默认设置使用get请求检查版本 .isAutoMode(false) //默认设置非自动模式,可根据具体使用配置 .param("versionCode", versionCode) //设置默认公共请求参数 .param("appKey", appKey) // .debug(true) .setOnUpdateFailureListener(new OnUpdateFailureListener() { //设置版本更新出错的监听 @Override public void onFailure(UpdateError error) { ToastUtils.showToast(error.toString()); } }) .setIUpdateHttpService(new XHttpUpdateHttpService(MyUrl.version)) //这个必须设置!实现网络请求功能。
.init(this); //这个必须初始化 //app强制版本升级代码
XUpdate.newBuild(this)
.isGet(false)
.param("appKey", "包名")
.updateUrl(XUpdateServiceParser.getVersionCheckUrl())
.updateParser(new XUpdateServiceParser())
.update();`

from xupdate.

xuexiangjys avatar xuexiangjys commented on May 28, 2024

你把你版本检查请求的返回数据贴一下

from xupdate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.