I Have An Error While Building APK in Windows This Contain Videos And Audios How to Resolve #3594
Unanswered
Siva-Rajan-R
asked this question in
Q&A
Replies: 1 comment
-
|
It will be fixed in the next version of serious_python - the library used for packaging APKs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
my flet app contain videos and audios i also used the flet_video and flet_audio in --include-packages but it was showing an error what can i do my current flet version is 0.23.2
Code sample
No response
Error message
flet build apk --include-packages flet_video flet_audio --no-android-splash [22:01:20] Created Flutter bootstrap project from gh:flet-dev/flet-build-template with ref 0.23.2 ✅ Customized app icons and splash images ✅ [22:02:01] Generated app icons ✅ [22:02:14] Generated splash screens ✅ [22:05:13] Packaged Python app ✅ [23:47:48] Resolving dependencies... Downloading packages... audioplayers 5.2.1 (6.0.0 available) audioplayers_android 4.0.3 (5.0.0 available) audioplayers_darwin 5.0.2 (6.0.0 available) audioplayers_linux 3.1.0 (4.0.0 available) audioplayers_platform_interface 6.1.0 (7.0.0 available) audioplayers_web 4.1.0 (5.0.0 available) audioplayers_windows 3.1.0 (4.0.0 available) 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) screen_brightness 0.2.2+1 (1.0.1 available) screen_brightness_android 0.1.0+2 (1.0.1 available) screen_brightness_ios 0.1.0 (1.0.1 available) screen_brightness_macos 0.1.0+1 (1.0.1 available) screen_brightness_platform_interface 0.1.0 (1.0.1 available) screen_brightness_windows 0.1.3 (1.0.1 available) sensors_plus 4.0.2 (5.0.1 available) ! wakelock_plus 1.2.5 (overridden) web_socket_channel 2.4.5 (3.0.0 available) Got dependencies! 24 packages have newer versions incompatible with dependency constraints. Try `flutter pub outdated` for more information. Running Gradle task 'assembleRelease'... Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 1261080 bytes (23.3% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app. Font asset "CupertinoIcons.ttf" was tree-shaken, reducing it from 257628 to 209160 bytes (18.8% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app. Running Gradle task 'assembleRelease'... 6035.3s [23:47:53] Note: C:\Users\USER\AppData\Local\Pub\Cache\hosted\pub.dev\media_kit_video-1.2.4\android\src\ma in\java\com\alexmercerind\media_kit_video\VideoOutput.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. C:\Users\USER\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows -x86_64\bin\llvm-strip.exe: error: 'C:\Users\USER\AppData\Local\Temp\flet_flutter_build_a2KkQQG3Rc\build\serious_python_andr oid\intermediates\merged_native_libs\release\mergeReleaseNativeLibs\out\lib\armeabi-v7a\l ibpythonbundle.so': The file was not recognized as a valid object file C:\Users\USER\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows -x86_64\bin\llvm-strip.exe: error: 'C:\Users\USER\AppData\Local\Temp\flet_flutter_build_a2KkQQG3Rc\build\serious_python_andr oid\intermediates\merged_native_libs\release\mergeReleaseNativeLibs\out\lib\x86_64\libpyt honbundle.so': The file was not recognized as a valid object file C:\Users\USER\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows -x86_64\bin\llvm-strip.exe: error: 'C:\Users\USER\AppData\Local\Temp\flet_flutter_build_a2KkQQG3Rc\build\serious_python_andr oid\intermediates\merged_native_libs\release\mergeReleaseNativeLibs\out\lib\arm64-v8a\lib pythonbundle.so': The file was not recognized as a valid object file C:\Users\USER\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows -x86_64\bin\llvm-strip.exe: error: 'C:\Users\USER\AppData\Local\Temp\flet_flutter_build_a2KkQQG3Rc\build\app\intermediates\m erged_native_libs\release\mergeReleaseNativeLibs\out\lib\arm64-v8a\libpythonbundle.so': The file was not recognized as a valid object file C:\Users\USER\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows -x86_64\bin\llvm-strip.exe: error: 'C:\Users\USER\AppData\Local\Temp\flet_flutter_build_a2KkQQG3Rc\build\app\intermediates\m erged_native_libs\release\mergeReleaseNativeLibs\out\lib\armeabi-v7a\libpythonbundle.so': The file was not recognized as a valid object file C:\Users\USER\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows -x86_64\bin\llvm-strip.exe: error: 'C:\Users\USER\AppData\Local\Temp\flet_flutter_build_a2KkQQG3Rc\build\app\intermediates\m erged_native_libs\release\mergeReleaseNativeLibs\out\lib\x86_64\libpythonbundle.so': The file was not recognized as a valid object file AAPT2 aapt2-8.3.1-10880808-windows Daemon #3: Unexpected error output: Done FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:bundleReleaseResources'. > A failure occurred while executing com.android.build.gradle.internal.res.Aapt2ProcessResourcesRunnable > AAPT2 aapt2-8.3.1-10880808-windows Daemon #3: Link timed out, attempting to stop daemon. This should not happen under normal circumstances, please file an issue if it does. * 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 1h 39m 5s Gradle task assembleRelease failed with exit code 1 [23:50:21] Error building Flet app - see the log of failed command above.------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions