xuexiangjys / xupdateapi Goto Github PK
View Code? Open in Web Editor NEW简化XUpdate的使用, 一键实现版本更新功能!
License: Apache License 2.0
简化XUpdate的使用, 一键实现版本更新功能!
License: Apache License 2.0
实测安卓7.0以上可以支持,7.0以下闪退!!可否提供帮助!!
采用断点下载时,遇到以下问题
Apk更新下载完成后,跳转到安装界面,这时不安装,点击取消按钮;取消后返回到APP,再次点击升级,升级框瞬间消失,进度显示100%,无法弹出Apk安装界面;
测试机:vivo android10
Could not resolve all files for configuration ':app:releaseRuntimeClasspath'.
Could not find com.zhy:okhttputils:2.6.2.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/zhy/okhttputils/2.6.2/okhttputils-2.6.2.pom
- https://repo.maven.apache.org/maven2/com/zhy/okhttputils/2.6.2/okhttputils-2.6.2.pom
- https://frontjs-static.pgyer.com/dist/sdk/pgyersdk/com/zhy/okhttputils/2.6.2/okhttputils-2.6.2.pom
- https://jitpack.io/com/zhy/okhttputils/2.6.2/okhttputils-2.6.2.pom
Required by:
project :app > com.github.xuexiangjys.XUpdateAPI:xupdate-easy:1.0.1
小米电视。安卓6.0.1
你好:
class MainActivity : AppCompatActivity() {
private lateinit var bind: ActivityMainBinding
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
/**
* 版本更新
*/
EasyUpdate.checkUpdate(this,Http.httpVersion)
}
}
build app 没有任何反应,日志也没有报错和警告,
版本1.0
服务器输出的json 是 1.0.1
md5 都有
请问可能的原因会是哪方面,谢谢
EasyUpdate.checkUpdate(this,url);
通过一下代码设置的文件加密实体不生效,debug了代码发现读取的一直是XUpdate里面的
EasyUpdate.setUpdateConfigProvider(new IUpdateConfigProvider() {
@NonNull
@NotNull
@Override
public UpdateConfig getUpdateConfig(@NonNull @NotNull Context context) {
UpdateConfig updateConfig = UpdateConfig.create();
updateConfig.setFileEncryptor(new IFileEncryptor() {
@Override
public String encryptFile(File file) {
return null;
}
@Override
public boolean isFileValid(String encrypt, File file) {
return false;
}
});
return updateConfig;
}
});
所以需要更改为才生效
XUpdate.get().setIFileEncryptor(new IFileEncryptor() {
@Override
public String encryptFile(File file) {
return "1";
}
@Override
public boolean isFileValid(String encrypt, File file) {
return true;
}
});
请问 下载100%后,窗口消失了,没有弹出安装界面,是什么原因呢?
Could not find com.zhy:okhttputils:2.6.2.
Required by:
project :app
看作者okhttp-utils的github:
由于个人原因,现已停止维护。5年前就停止维护了。
implementation 'com.github.xuexiangjys:XUpdate:2.0.9'
implementation 'com.github.xuexiangjys.XUpdateAPI:xupdate-easy:1.0.1'
implementation 'com.zhy:okhttputils:2.6.2'
请问安装遇到 安装失败,已安装签名冲突的应用提示
直接使用的XUpdateApi,请问是否支持自定义弹窗dialog的layout,或者修改xupdate_dialog_update.xml呢?因为现有的样式不太能满足需求
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.