[Question] flet build apk Error!!! #3683
Replies: 4 comments 5 replies
-
|
Hi, I had the same problem. The solution I found was to download the NDK (Side by Side) in Android Studio and then retry building the APK, and it worked. |
Beta Was this translation helpful? Give feedback.
-
|
Are you using |
Beta Was this translation helpful? Give feedback.
-
|
flutter docor -> result below Doctor summary (to see all details, run flutter doctor -v): flet build apk -vv -> Full erorr code below [ +7 ms] FAILURE: Build completed with 2 failures. ( ●) Building .apk for Android ⏳... [ +258 ms] ensureAnalyticsSent: 254ms |
Beta Was this translation helpful? Give feedback.
-
|
Did u fix it ? Same error ı got :( |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
An error occurred when creating apk.
But using command "flet build windows"-->It(exe file for window) is okay!!!
command : flet build apk
requirements.txt : flet==0.23.*
OS : Window 11 pro
Python : 3.12.3
flet : 0.23.2
flutter : 3.22.2
Developer Mode in my system setting : enable
Code sample
Error message
[12:24:22] Created Flutter bootstrap project from gh:flet-dev/flet-build-template with ref 0.23.2 ✅ Customized app icons and splash images ✅ [12:24:32] Generated app icons ✅ [12:24:39] Generated splash screens ✅ [12:25:13] Packaged Python app ✅ [12:25:26] Resolving dependencies... Downloading packages... collection 1.18.0 (1.19.0 available) fl_chart 0.65.0 (0.68.0 available) flutter_lints 2.0.3 (4.0.0 available) flutter_markdown 0.6.23 (0.7.3 available) http_parser 4.0.2 (4.1.0 available) js 0.6.7 (0.7.1 available) lints 2.1.1 (4.0.0 available) material_color_utilities 0.8.0 (0.12.0 available) meta 1.12.0 (1.15.0 available) ! package_info_plus 8.0.0 (overridden) sensors_plus 4.0.2 (5.0.1 available) toml 0.15.0 (0.16.0 available) ! wakelock_plus 1.2.5 (overridden) web 0.5.1 (1.0.0 available) web_socket_channel 2.4.5 (3.0.1 available) Got dependencies! 13 packages have newer versions incompatible with dependency constraints. Try `flutter pub outdated` for more information. Running Gradle task 'assembleRelease'... Running Gradle task 'assembleRelease'... 7.2s FAILURE: Build completed with 2 failures. 1: Task failed with an exception. ----------- * What went wrong: A problem occurred configuring project ':serious_python_android'. > com.android.builder.errors.EvalIssueException: [CXX1101] NDK at C:\Users\minohkorea\AppData\Local\Android\Sdk\ndk\25.1.8937393 did not have a source.properties file * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. ============================================================================== 2: Task failed with an exception. ----------- * What went wrong: Failed to query the value of property 'buildFlowServiceProperty'. > Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@48b6495 of type BuildFlowService.Parameters > A problem occurred configuring project ':serious_python_android'. > com.android.builder.errors.EvalIssueException: [CXX1101] NDK at C:\Users\minohkorea\AppData\Local\Android\Sdk\ndk\25.1.8937393 did not have a source.properties file * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. ============================================================================== BUILD FAILED in 6s Gradle task assembleRelease failed with exit code 1 [12:25:28] Error building Flet app - see the log of failed command above.------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions