Building with Flutter
Build Android applications with Flutter.
Build on GUI
Add Build with Flutter, when configuring build actions. Set the parameters according to Table 1.
Parameter |
Description |
---|---|
Action Name |
Assign a custom name to the build action. The name can contain:
|
Flutter |
Select a Flutter version that matches your current development environment. For tool versions supported by CodeArts Build, see build tools and versions. If the current tools and versions do not meet your requirements, you can customize a build environment. |
JDK |
Select a JDK version that matches your current development environment. For tool versions supported by CodeArts Build, see build tools and versions. If the current tools and versions do not meet your requirements, you can customize a build environment. |
NDK |
Select an NDK version that matches your current development environment. For tool versions supported by CodeArts Build, see build tools and versions. If the current tools and versions do not meet your requirements, you can customize a build environment. |
Commands |
Configure the Flutter commands, or use the default ones. If you have special build requirements, enter your custom build script in the text box. For more commands, see the Flutter official website. |
Continue After Failure |
Specify whether to proceed after the current action fails by setting the parameter to either Yes or No. |
Build with Code
Modify the code in the BUILD block in Creating a YAML File for Your Code-based Build by referring to the following sample code:
1 2 3 4 5 6 7 8 9 10 |
version: 2.0 # The value must be 2.0. steps: BUILD: - flutter: inputs: flutter: '1.17.5' jdk: '3333' ndk: '23.1.7779620' command: ./instrumented.apk ignore_fail: true |
Parameter |
Type |
Description |
---|---|---|
flutter |
String |
Select a Flutter version that matches your current development environment. For tool versions supported by CodeArts Build, see build tools and versions. If the current tools and versions do not meet your requirements, you can customize a build environment. |
jdk |
String |
Select a JDK version that matches your current development environment. For tool versions supported by CodeArts Build, see build tools and versions. If the current tools and versions do not meet your requirements, you can customize a build environment. |
ndk |
String |
Select an NDK version that matches your current development environment. For tool versions supported by CodeArts Build, see build tools and versions. If the current tools and versions do not meet your requirements, you can customize a build environment. |
command |
String |
Configure the Flutter commands. For more commands, see the Flutter official website. |
ignore_fail |
String |
Whether to proceed after the current action fails.
|
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot