下载的 APK 保存在 getApplicationDocumentsDirectory() 即 /data/data/<pkg>/app_flutter/updates/, 但 file_paths.xml 只配置了 files-path(对应 /data/data/<pkg>/files/), 导致 FileProvider.getUriForFile() 找不到匹配的根路径。 添加 <files-path name="app_flutter" path="app_flutter/" /> 与 mobile-app 保持一致。 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app | ||
| gradle/wrapper | ||
| .gitignore | ||
| build.gradle.kts | ||
| gradle.properties | ||
| settings.gradle.kts | ||