我正在遵循本指南: https: //flutter.dev/docs/deployment/obfuscate
\n运行 Flutter 1.17.5 \xe2\x80\xa2 通道稳定
\n当我跑步时:
\nflutter build apk --obfuscate --split-debug-info=/sample/debug --target-platform android-arm,android-arm64,android-x64\nRun Code Online (Sandbox Code Playgroud)\n然后我收到以下错误:
\n Target android_aot_release_android-arm failed: FileSystemException: Creation failed, path =\n \'/sample\' (OS Error: Read-only file system, errno = 30)\n Target android_aot_release_android-x64 failed: FileSystemException: Creation failed, path = \n\'/sample\' (OS Error: Read-only file system, errno = 30)\n Target android_aot_release_android-arm64 failed: FileSystemException: Creation failed, path = \n\'/sample\' (OS Error: Read-only file system, errno = 30)\n build failed. \n \n FAILURE: Build failed with an exception. \n \n * Where: \n Script \'/Users/user/Developer/flutter/packages/flutter_tools/gradle/flutter.gradle\' line: 882\n \n * What went wrong: \n Execution failed for task \':app:compileFlutterBuildRelease\'. \n > Process \'command \'/Users/user/Developer/flutter/bin/flutter\'\' finished with non-zero exit value 1\n \n * Try: \n Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get \nmore log output. Run with --scan to get full insights.\n \n * Get more help at https://help.gradle.org \nRun Code Online (Sandbox Code Playgroud)\n
您应该提供从根目录开始的相对路径:
flutter build apk --obfuscate --split-debug-info=./sample/debug
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
720 次 |
| 最近记录: |