jenly1314 / AppUpdater

🚀 AppUpdater一个专注于App更新,一键傻瓜式集成App版本升级的轻量开源库。(集成步骤超简单)
https://jenly1314.github.io/AppUpdater/
MIT License
891 stars 131 forks source link

Unable to build a new hidden directory #3

Closed ruancaipu closed 5 years ago

ruancaipu commented 6 years ago

android 8.0 Unable to build a new hidden directory java.io.FileNotFoundException: /storage/emulated/0/.AppUpdater/AppUpdater.apk (No such file or directory)

jenly1314 commented 6 years ago

请确认是否允许了SDcard的读写权限,AppUpdater实例化的时候需要传Context,这个Context不强制要求是Activity,但能传Activity尽量传。AppUpdater本应该只专注于App更新,尽量不涉及动态权限相关的处理。如果Context传的是Activity默认会优先校验一次动态权限。