Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是初学者,我需要一些帮助。我想生成一个调试模式的颤振 apk。当我运行“flutter build apk”时,它只生成flutter-release.apk文件,但我想生成最新代码的flutter-debug.apk。非常感谢任何形式的帮助。
flutter build apk --debug
这应该有效。你的应用应该在build/app/outputs/flutter-apk/app-debug.apk你的项目目录里面
build/app/outputs/flutter-apk/app-debug.apk
但是,对于调试,您应该通过 IDE 执行此操作,例如在 Visual Studio 代码中,您只需按 F5 即可调试您的应用程序。