From 45d038bd4b0f9dd044ed3502545403b973b98e50 Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 30 Jan 2026 13:44:00 -0800 Subject: [PATCH] =?UTF-8?q?fix(mining-app):=20FileProvider=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20app=5Fflutter=20=E8=B7=AF=E5=BE=84=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20APK=20=E5=AE=89=E8=A3=85=20IllegalArgument?= =?UTF-8?q?Exception?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 下载的 APK 保存在 getApplicationDocumentsDirectory() 即 /data/data//app_flutter/updates/, 但 file_paths.xml 只配置了 files-path(对应 /data/data//files/), 导致 FileProvider.getUriForFile() 找不到匹配的根路径。 添加 与 mobile-app 保持一致。 Co-Authored-By: Claude Opus 4.5 --- frontend/mining-app/android/app/src/main/res/xml/file_paths.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/mining-app/android/app/src/main/res/xml/file_paths.xml b/frontend/mining-app/android/app/src/main/res/xml/file_paths.xml index c192eedf..23f37043 100644 --- a/frontend/mining-app/android/app/src/main/res/xml/file_paths.xml +++ b/frontend/mining-app/android/app/src/main/res/xml/file_paths.xml @@ -2,6 +2,8 @@ + +