nmfisher / thermion

3D rendering toolkit for Dart and/or Flutter
https://thermion.dev
Apache License 2.0
125 stars 10 forks source link

Flutter Build APK Failed - thermion_flutter: ^0.2.1-dev.9 #74

Closed RajatDBazaar closed 2 weeks ago

RajatDBazaar commented 2 weeks ago

Hey @nmfisher, I hope you're doing well. Thanks for releasing the new update to the library! With this update, we're now able to achieve 360-degree rotations in any direction, which wasn't possible with any other pub library—so we really appreciate this major feature.

However, we're encountering an issue when trying to build the Android APK, as the build fails. I've attached the errors below. Could you please assist us with this? It's quite important for our project.


dbtech@Developers-Mac-mini camera_manipulation % flutter build apk

Unhandled exception:
ProcessException: Full command string: '/Users/dbtech/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=armv7a-linux-androideabi24 --sysroot=/Users/dbtech/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/ -fPIC -x c++ -l c++_shared -std=c++17 -lfilament -lbackend -lfilameshio -lviewer -lfilamat -lgeometry -lutils -lfilabridge -lgltfio_core -lfilament-iblprefilter -limage -limageio -ltinyexr -lfilaflat -ldracodec -libl -lktxreader -lpng -lz -lstb -luberzlib -lsmol-v -luberarchive -lzstd -lbasis_transcoder -lstdc++ -lGLESv3 -lEGL -lbluevk -ldl -landroid -L/Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//.dart_tool/thermion_dart/lib/v1.51.2/android/release//armeabi-v7a/ -DRELEASE -DNDEBUG -I/Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10/native/include -I/Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10/native/include/filament /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/TimeIt.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/HighlightOverlay.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/Gizmo.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/UnprojectTexture.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/ThermionDartRenderThreadApi.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/TView.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/FilamentViewer.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/CustomGeometry.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/GridOverlay.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/SceneManager.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/ThermionDartApi.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/Manipulator.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/Bookmark.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/MapManipulator.h /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/OrbitManipulator.h /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/FreeFlightManipulator.h /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/TCamera.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/StreamBufferAdapter.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/TGizmo.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/include/material/gizmo_material.c /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/include/material/image.c /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/include/material/grid.c /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/include/material/unlit.c --shared -o /Users/dbtech/Downloads/thermion-master/examples/flutter/camera_manipulation/.dart_tool/native_assets_builder/53367fad525c753bf3e124e6d77d5aed/out/libthermion_dart.so'.
Exit code: '1'.
For the output of the process check the logger output.
  Command: /Users/dbtech/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=armv7a-linux-androideabi24 --sysroot=/Users/dbtech/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/ -fPIC -x c++ -l c++_shared -std=c++17 -lfilament -lbackend -lfilameshio -lviewer -lfilamat -lgeometry -lutils -lfilabridge -lgltfio_core -lfilament-iblprefilter -limage -limageio -ltinyexr -lfilaflat -ldracodec -libl -lktxreader -lpng -lz -lstb -luberzlib -lsmol-v -luberarchive -lzstd -lbasis_transcoder -lstdc++ -lGLESv3 -lEGL -lbluevk -ldl -landroid -L/Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//.dart_tool/thermion_dart/lib/v1.51.2/android/release//armeabi-v7a/ -DRELEASE -DNDEBUG -I/Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10/native/include -I/Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10/native/include/filament /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/TimeIt.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/HighlightOverlay.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/Gizmo.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/UnprojectTexture.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/ThermionDartRenderThreadApi.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/TView.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/FilamentViewer.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/CustomGeometry.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/GridOverlay.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/SceneManager.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/ThermionDartApi.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/Manipulator.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/Bookmark.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/MapManipulator.h /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/OrbitManipulator.h /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/FreeFlightManipulator.h /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/TCamera.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/StreamBufferAdapter.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/TGizmo.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/include/material/gizmo_material.c /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/include/material/image.c /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/include/material/grid.c /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/include/material/unlit.c --shared -o /Users/dbtech/Downloads/thermion-master/examples/flutter/camera_manipulation/.dart_tool/native_assets_builder/53367fad525c753bf3e124e6d77d5aed/out/libthermion_dart.so
#0      runProcess (package:native_toolchain_c/src/utils/run_process.dart:94:5)
<asynchronous suspension>
#1      RunCBuilder._compile (package:native_toolchain_c/src/cbuilder/run_cbuilder.dart:190:5)
<asynchronous suspension>
#2      RunCBuilder.runClangLike (package:native_toolchain_c/src/cbuilder/run_cbuilder.dart:171:7)
<asynchronous suspension>
#3      RunCBuilder.run (package:native_toolchain_c/src/cbuilder/run_cbuilder.dart:110:7)
<asynchronous suspension>
#4      CBuilder.run (package:native_toolchain_c/src/cbuilder/cbuilder.dart:256:7)
<asynchronous suspension>
#5      main.<anonymous closure> (file:///Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10/hook/build.dart:186:5)
<asynchronous suspension>
#6      build (package:native_assets_cli/src/api/build.dart:94:3)
<asynchronous suspension>
#7      main (file:///Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10/hook/build.dart:8:3)
<asynchronous suspension>
Building native assets for package:thermion_dart failed.
file:///Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10/hook/build.dart returned with exit code: 255.
To reproduce run:
/Users/dbtech/development/flutter/bin/dart --packages=/Users/dbtech/Downloads/thermion-master/examples/flutter/camera_manipulation/.dart_tool/package_config.json /Users/dbtech/Downloads/thermion-master/examples/flutter/camera_manipulation/.dart_tool/native_assets_builder/53367fad525c753bf3e124e6d77d5aed/hook.dill --config=/Users/dbtech/Downloads/thermion-master/examples/flutter/camera_manipulation/.dart_tool/native_assets_builder/53367fad525c753bf3e124e6d77d5aed/config.json
stderr:
Unhandled exception:
ProcessException: Full command string: '/Users/dbtech/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=armv7a-linux-androideabi24 --sysroot=/Users/dbtech/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/ -fPIC -x c++ -l c++_shared -std=c++17 -lfilament -lbackend -lfilameshio -lviewer -lfilamat -lgeometry -lutils -lfilabridge -lgltfio_core -lfilament-iblprefilter -limage -limageio -ltinyexr -lfilaflat -ldracodec -libl -lktxreader -lpng -lz -lstb -luberzlib -lsmol-v -luberarchive -lzstd -lbasis_transcoder -lstdc++ -lGLESv3 -lEGL -lbluevk -ldl -landroid -L/Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//.dart_tool/thermion_dart/lib/v1.51.2/android/release//armeabi-v7a/ -DRELEASE -DNDEBUG -I/Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10/native/include -I/Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10/native/include/filament /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/TimeIt.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/HighlightOverlay.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/Gizmo.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/UnprojectTexture.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/ThermionDartRenderThreadApi.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/TView.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/FilamentViewer.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/CustomGeometry.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/GridOverlay.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/SceneManager.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/ThermionDartApi.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/Manipulator.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/Bookmark.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/MapManipulator.h /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/OrbitManipulator.h /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/FreeFlightManipulator.h /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/TCamera.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/StreamBufferAdapter.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/TGizmo.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/include/material/gizmo_material.c /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/include/material/image.c /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/include/material/grid.c /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/include/material/unlit.c --shared -o /Users/dbtech/Downloads/thermion-master/examples/flutter/camera_manipulation/.dart_tool/native_assets_builder/53367fad525c753bf3e124e6d77d5aed/out/libthermion_dart.so'.
Exit code: '1'.
For the output of the process check the logger output.
  Command: /Users/dbtech/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=armv7a-linux-androideabi24 --sysroot=/Users/dbtech/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/ -fPIC -x c++ -l c++_shared -std=c++17 -lfilament -lbackend -lfilameshio -lviewer -lfilamat -lgeometry -lutils -lfilabridge -lgltfio_core -lfilament-iblprefilter -limage -limageio -ltinyexr -lfilaflat -ldracodec -libl -lktxreader -lpng -lz -lstb -luberzlib -lsmol-v -luberarchive -lzstd -lbasis_transcoder -lstdc++ -lGLESv3 -lEGL -lbluevk -ldl -landroid -L/Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//.dart_tool/thermion_dart/lib/v1.51.2/android/release//armeabi-v7a/ -DRELEASE -DNDEBUG -I/Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10/native/include -I/Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10/native/include/filament /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/TimeIt.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/HighlightOverlay.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/Gizmo.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/UnprojectTexture.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/ThermionDartRenderThreadApi.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/TView.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/FilamentViewer.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/CustomGeometry.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/GridOverlay.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/SceneManager.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/ThermionDartApi.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/Manipulator.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/Bookmark.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/MapManipulator.h /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/OrbitManipulator.h /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/camutils/FreeFlightManipulator.h /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/TCamera.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/StreamBufferAdapter.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/src/TGizmo.cpp /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/include/material/gizmo_material.c /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/include/material/image.c /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/include/material/grid.c /Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10//native/include/material/unlit.c --shared -o /Users/dbtech/Downloads/thermion-master/examples/flutter/camera_manipulation/.dart_tool/native_assets_builder/53367fad525c753bf3e124e6d77d5aed/out/libthermion_dart.so
#0      runProcess (package:native_toolchain_c/src/utils/run_process.dart:94:5)
<asynchronous suspension>
#1      RunCBuilder._compile (package:native_toolchain_c/src/cbuilder/run_cbuilder.dart:190:5)
<asynchronous suspension>
#2      RunCBuilder.runClangLike (package:native_toolchain_c/src/cbuilder/run_cbuilder.dart:171:7)
<asynchronous suspension>
#3      RunCBuilder.run (package:native_toolchain_c/src/cbuilder/run_cbuilder.dart:110:7)
<asynchronous suspension>
#4      CBuilder.run (package:native_toolchain_c/src/cbuilder/cbuilder.dart:256:7)
<asynchronous suspension>
#5      main.<anonymous closure> (file:///Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10/hook/build.dart:186:5)
<asynchronous suspension>
#6      build (package:native_assets_cli/src/api/build.dart:94:3)
<asynchronous suspension>
#7      main (file:///Users/dbtech/.pub-cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.10/hook/build.dart:8:3)
<asynchronous suspension>

stdout:

Target native_assets failed: Error: Building native assets failed. See the logs for more details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command '/Users/dbtech/development/flutter/bin/flutter'' finished with non-zero exit value 1

* 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 12s
Running Gradle task 'assembleRelease'...                           12.8s
Gradle task assembleRelease failed with exit code 1
dbtech@Developers-Mac-mini camera_manipulation % 
nmfisher commented 2 weeks ago

@RajatDBazaar please checkout current master at f666b36e43d3ba4b75896981712ac22a4a08e826 and run flutter build apk for the camera_manipulation project and let me know if the error persists.

RajatDBazaar commented 2 weeks ago

I can't find that f666b36e43d3ba4b75896981712ac22a4a08e826 can you please tell me more info about that commit??

C:\Users\*******************************************\>fvm use f666b36e43d3ba4b75896981712ac22a4a08e826
Flutter SDK: Commit : f666b36e43 is not installed.
✔ Would you like to install it now? · yes
✗ Failed to install f666b36e43 (8.5s)
✗ Failed to ensure f666b36e43 is cached.

ProcessException: fatal: ambiguous argument 'f666b36e43': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
  Command: git reset --hard f666b36e43
nmfisher commented 2 weeks ago

That's a Thermion commit, not Flutter.

RajatDBazaar commented 2 weeks ago

We are following the guidance closely and checked out the commit f666b36e43d3ba4b75896981712ac22a4a08e826 as shown below:

C:\Users\rajat\Software Dev\FrameWorks\flutter\DB Tech\camera_3d\thermion>git checkout f666b36e43d3ba4b75896981712ac22a4a08e826
HEAD is now at f666b36e fix: replace assets symlink for quickstart project

Afterward, we navigated to camera_manipulation and attempted to build the app using flutter build apk, but unfortunately encountered the following error:

C:\Users\rajat\Software Dev\FrameWorks\flutter\DB Tech\camera_3d\thermion\examples\flutter\camera_manipulation>flutter build apk

Target aot_android_asset_bundle failed: FileSystemException: Exists failed, path = 'C:\Users\rajat\Software Dev\FrameWorks\flutter\DB Tech\camera_3d\thermion\examples\flutter\camera_manipulation\assets\' (OS Error: The filename, directory name, or volume label syntax is incorrect.
, errno = 123)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* 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 8s
Running Gradle task 'assembleRelease'...                            9.6s
Gradle task assembleRelease failed with exit code 1

@nmfisher, we genuinely appreciate your assistance on this journey, and this issue is critical for us. If you could provide guidance on how to resolve this error, it would mean the world. We’re also eager to learn how to troubleshoot this so we can handle similar issues independently in the future, saving you time as well.

Thank you so much for always being there to help us. We are deeply grateful for your support!

nmfisher commented 2 weeks ago

OK, for whatever reason, the symlinked assets folder isn't working on your machine.

Just delete examples/flutter/camera_manipulation/assets, then copy the examples/assets folder to examples/flutter/camera_manipulation/assets and re-run. If you read the error message, it's pretty clear where the problem is.

RajatDBazaar commented 2 weeks ago

Once again, a huge thanks to you, @nmfisher, for your ongoing support! We've been working hard to resolve this on our own, trying everything from switching Flutter versions to searching for solutions, but we're still unable to create an APK file. Here’s the latest error we encountered:

[Include the new error details here.]

Your help has been invaluable to us, and we’d be incredibly grateful if you could guide us through this issue. Thank you for your patience and expertise—your assistance really means a lot to us!

C:\Users\rajat\Desktop\camera_3d\thermion\examples\flutter\camera_manipulation>flutter build apk    
Resolving dependencies... 
Downloading packages...
  async 2.11.0 (2.12.0 available)
  boolean_selector 2.1.1 (2.1.2 available)
  characters 1.3.0 (1.3.1 available)
  clock 1.1.1 (1.1.2 available)
> collection 1.19.0 (was 1.18.0) (1.19.1 available)
  fake_async 1.3.1 (1.3.2 available)
  flutter_lints 4.0.0 (5.0.0 available)
  http_parser 4.0.2 (4.1.1 available)
> leak_tracker 10.0.8 (was 10.0.5)
> leak_tracker_flutter_testing 3.0.9 (was 3.0.5)
  lints 4.0.0 (5.1.0 available)
  matcher 0.12.16+1 (0.12.17 available)
  material_color_utilities 0.11.1 (0.12.0 available)
  meta 1.15.0 (1.16.0 available)
  native_assets_cli 0.6.1 (0.8.0 available)
  native_toolchain_c 0.4.2 (0.5.4 available)
  path 1.9.0 (1.9.1 available)
< sky_engine 0.0.0 from sdk flutter (was 0.0.99 from sdk flutter)
> stack_trace 1.12.0 (was 1.11.1)
> string_scanner 1.3.0 (was 1.2.0) (1.4.0 available)
> test_api 0.7.3 (was 0.7.2)
! thermion_dart 0.2.1-dev.0.0.14 from path ..\..\..\thermion_dart (overridden)
! thermion_flutter 0.2.1-dev.14 from path ..\..\..\thermion_flutter\thermion_flutter (overridden)
! thermion_flutter_ffi 0.2.1-dev.14 from path ..\..\..\thermion_flutter\thermion_flutter_ffi (overridden)
! thermion_flutter_platform_interface 0.2.1-dev.14 from path ..\..\..\thermion_flutter\thermion_flutter_platform_interface (overridden)
> vm_service 14.3.0 (was 14.2.5) (14.3.1 available)
  web 1.0.0 (1.1.0 available)
  win32 5.5.1 (5.7.2 available)
Changed 8 dependencies!
19 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.

Oops; flutter has exited unexpectedly: "Invalid argument(s): Illegal character in path".
A crash report has been written to C:\Users\rajat\Desktop\camera_3d\thermion\examples\flutter\camera_manipulation\flutter_06.log
This crash may already be reported. Check GitHub for similar crashes.
https://github.com/flutter/flutter/issues?q=is%3Aissue+Invalid+argument%28s%29%3A+Illegal+character+in+path        

To report your crash to the Flutter team, first read the guide to filing a bug.
https://flutter.dev/to/report-bugs

Create a new GitHub issue by pasting this link into your browser and completing the issue template. Thank you!     
https://github.com/flutter/flutter/issues/new?title=%5Btool_crash%5D+ArgumentError%3A+Invalid+argument%28s%29%3A+Illegal+character+in+path&body=%23%23+Command%0A%60%60%60sh%0Aflutter+--quiet+assemble+--no-version-check+--depfile+C%3A%5CUsers%5Crajat%5CDesktop%5Ccamera_3d%5Cthermion%5Cexamples%5Cflutter%5Ccamera_manipulation%5Cbuild%5Capp%5Cintermediates%5Cflutter%5Crelease%2Fflutter_build.d+--output+C%3A%5CUsers%5Crajat%5CDesktop%5Ccamera_3d%5Cthermion%5Cexamples%5Cflutter%5Ccamera_manipulation%5Cbuild%5Capp%5Cintermediates%5Cflutter%5Crelease+-dTargetFile%3Dlib%5Cmain.dart+-dTargetPlatform%3Dandroid+-dBuildMode%3Drelease+-dTrackWidgetCreation%3Dtrue+-dTreeShakeIcons%3Dtrue+-dFlavor%3D+-dAndroidArchs%3Dandroid-arm+android-arm64+android-x64+-dMinSdkVersion%3D22+android_aot_bundle_release_android-arm+android_aot_bundle_release_android-arm64+android_aot_bundle_release_android-x64%0A%60%60%60%0A%0A%23%23+Steps+to+Reproduce%0A1.+...%0A2.+...%0A3.+...%0A%0A%23%23+Logs%0AArgumentError%3A+Invalid+argument%28s%29%3A+Illegal+character+in+path%0A%60%60%60console%0A%230++++++_Uri._checkWindowsPathReservedCharacters+%28dart%3Acore%2Furi.dart%3A1841%3A11%29%0A%231++++++_Uri._makeWindowsFileUrl+%28dart%3Acore%2Furi.dart%3A1935%3A7%29%0A%232++++++new+_Uri.file+%28dart%3Acore%2Furi.dart%3A1808%3A11%29%0A%233++++++NativeAssetsBuildRunner._compileHookForPackageCached.%3Canonymous+closure%3E+%28package%3Anative_assets_builder%2Fsrc%2Fbuild_runner%2Fbuild_runner.dart%3A689%3A27%29%0A%234++++++MappedListIterable.elementAt+%28dart%3A_internal%2Fiterable.dart%3A435%3A31%29%0A%235++++++ListIterator.moveNext+%28dart%3A_internal%2Fiterable.dart%3A364%3A26%29%0A%236++++++new+_GrowableList._ofEfficientLengthIterable+%28dart%3Acore-patch%2Fgrowable_array.dart%3A189%3A27%29%0A%237++++++new+_GrowableList.of+%28dart%3Acore-patch%2Fgrowable_array.dart%3A150%3A28%29%0A%238++++++new+List.of+%28dart%3Acore-patch%2Farray_patch.dart%3A39%3A18%29%0A%239++++++ListIterable.toList+%28dart%3A_internal%2Fiterable.dart%3A224%3A7%29%0A%2310+++++NativeAssetsBuildRunner._compileHookForPackageCached+%28package%3Anative_assets_builder%2Fsrc%2Fbuild_runner%2Fbuild_runner.dart%3A690%3A12%29%0A%3Casynchronous+suspension%3E%0A%2311+++++NativeAssetsBuildRunner._runHookForPackageCached.%3Canonymous+closure%3E+%28package%3Anative_assets_builder%2Fsrc%2Fbuild_runner%2Fbuild_runner.dart%3A494%3A13%29%0A%3Casynchronous+suspension%3E%0A%2312+++++_runUnderFileLock+%28package%3Anative_assets_cli%2Fsrc%2Flocking%2Flocking.dart%3A72%3A16%29%0A%3Casynchronous+suspension%3E%0A%2313+++++NativeAssetsBuildRunner._runHookForPackageCached+%28package%3Anative_assets_builder%2Fsrc%2Fbuild_runner%2Fbuild_runner.dart%3A485%3A12%29%0A%3Casynchronous+suspension%3E%0A%2314+++++NativeAssetsBuildRunner._run+%28package%3Anative_assets_builder%2Fsrc%2Fbuild_runner%2Fbuild_runner.dart%3A205%3A44%29%0A%3Casynchronous+suspension%3E%0A%2315+++++_runDartBuild+%28package%3Aflutter_tools%2Fsrc%2Fisolated%2Fnative_assets%2Fnative_assets.dart%3A726%3A37%29%0A%3Casynchronous+suspension%3E%0A%2316+++++runFlutterSpecificDartBuild+%28package%3Aflutter_tools%2Fsrc%2Fisolated%2Fnative_assets%2Fnative_assets.dart%3A100%3A9%29%0A%3Casynchronous+suspension%3E%0A%2317+++++NativeAssets.build+%28package%3Aflutter_tools%2Fsrc%2Fbuild_system%2Ftargets%2Fnative_assets.dart%3A74%3A21%29%0A%60%60%60%0A%60%60%60console%0A%5B%E2%9C%93%5D+Flutter+%28Channel+main%2C+3.27.0-1.0.pre.255%2C+on+Microsoft+Windows+%5BVersion+10.0.22631.4391%5D%2C+locale+en-IN%29%0A++++%E2%80%A2+Flutter+version+3.27.0-1.0.pre.255+on+channel+main+at+C%3A%5Csrc%5Cflutter%0A++++%E2%80%A2+Upstream+repository+https%3A%2F%2Fgithub.com%2Fflutter%2Fflutter.git%0A++++%E2%80%A2+Framework+revision+5a11904383+%286+days+ago%29%2C+2024-10-26+08%3A44%3A53+-0700%0A++++%E2%80%A2+Engine+revision+c9b8ac96f6%0A++++%E2%80%A2+Dart+version+3.7.0+%28build+3.7.0-69.0.dev%29%0A++++%E2%80%A2+DevTools+version+2.40.1%0A%0A%5B%E2%9C%93%5D+Windows+Version+%2811+Home+Single+Language+64-bit%2C+23H2%2C+2009%29%0A%0A%5B%21%5D+Android+toolchain+-+develop+for+Android+devices+%28Android+SDK+version+35.0.0%29%0A++++%E2%80%A2+Android+SDK+at+C%3A%5CUsers%5Crajat%5CAppData%5CLocal%5CAndroid%5Csdk%0A++++%E2%80%A2+Platform+android-35%2C+build-tools+35.0.0%0A++++%E2%80%A2+Java+binary+at%3A+C%3A%5CProgram+Files%5CJava%5Cjdk-17%5Cbin%5Cjava%0A++++%E2%80%A2+Java+version+Java%28TM%29+SE+Runtime+Environment+%28build+17%2B35-LTS-2724%29%0D%0A++++%E2%9C%97+Android+license+status+unknown.%0A++++++Run+%60flutter+doctor+--android-licenses%60+to+accept+the+SDK+licenses.%0A++++++See+https%3A%2F%2Fflutter.dev%2Fto%2Fwindows-android-setup+for+more+details.%0A%0A%5B%E2%9C%93%5D+Chrome+-+develop+for+the+web%0A++++%E2%80%A2+Chrome+at+C%3A%5CProgram+Files%5CGoogle%5CChrome%5CApplication%5Cchrome.exe%0A%0A%5B%21%5D+Visual+Studio+-+develop+Windows+apps+%28Visual+Studio+Build+Tools+2019+16.11.16%29%0A++++%E2%80%A2+Visual+Studio+at+C%3A%5CProgram+Files+%28x86%29%5CMicrosoft+Visual+Studio%5C2019%5CBuildTools%0A++++%E2%80%A2+Visual+Studio+Build+Tools+2019+version+16.11.32602.291%0A++++%E2%9C%97+The+current+Visual+Studio+installation+is+incomplete.%0A++++++Please+use+Visual+Studio+Installer+to+complete+the+installation+or+reinstall+Visual+Studio.%0A%0A%5B%21%5D+Android+Studio+%28version+2024.2%29%0A++++%E2%80%A2+Android+Studio+at+C%3A%5CProgram+Files%5CAndroid%5CAndroid+Studio%0A++++%E2%80%A2+Flutter+plugin+can+be+installed+from%3A%0A++++++%F0%9F%94%A8+https%3A%2F%2Fplugins.jetbrains.com%2Fplugin%2F9212-flutter%0A++++%E2%80%A2+Dart+plugin+can+be+installed+from%3A%0A++++++%F0%9F%94%A8+https%3A%2F%2Fplugins.jetbrains.com%2Fplugin%2F6351-dart%0A++++%E2%9C%97+Unable+to+find+bundled+Java+version.%0A++++%E2%80%A2+Try+updating+or+re-installing+Android+Studio.%0A%0A%5B%E2%9C%93%5D+IntelliJ+IDEA+Community+Edition+%28version+2021.3%29%0A++++%E2%80%A2+IntelliJ+at+C%3A%5CProgram+Files%5CJetBrains%5CIntelliJ+IDEA+Community+Edition+2021.3.3%0A++++%E2%80%A2+Flutter+plugin+can+be+installed+from%3A%0A++++++%F0%9F%94%A8+https%3A%2F%2Fplugins.jetbrains.com%2Fplugin%2F9212-flutter%0A++++%E2%80%A2+Dart+plugin+can+be+installed+from%3A%0A++++++%F0%9F%94%A8+https%3A%2F%2Fplugins.jetbrains.com%2Fplugin%2F6351-dart%0A%0A%5B%E2%9C%93%5D+VS+Code+%28version+1.95.1%29%0A++++%E2%80%A2+VS+Code+at+C%3A%5CUsers%5Crajat%5CAppData%5CLocal%5CPrograms%5CMicrosoft+VS+Code%0A++++%E2%80%A2+Flutter+extension+version+3.100.0%0A%0A%5B%E2%9C%93%5D+Connected+device+%283+available%29%0A++++%E2%80%A2+Windows+%28desktop%29+%E2%80%A2+windows+%E2%80%A2+windows-x64++++%E2%80%A2+Microsoft+Windows+%5BVersion+10.0.22631.4391%5D%0A++++%E2%80%A2+Chrome+%28web%29++++++%E2%80%A2+chrome++%E2%80%A2+web-javascript+%E2%80%A2+Google+Chrome+130.0.6723.70%0A++++%E2%80%A2+Edge+%28web%29++++++++%E2%80%A2+edge++++%E2%80%A2+web-javascript+%E2%80%A2+Microsoft+Edge+130.0.2849.56%0A%0A%5B%E2%9C%93%5D+Network+resources%0A++++%E2%80%A2+All+expected+network+resources+are+available.%0A%0A%21+Doctor+found+issues+in+3+categories.%0A%0A%60%60%60%0A%0A%23%23+Flutter+Application+Metadata%0A%2A%2AType%2A%2A%3A+app%0A%2A%2AVersion%2A%2A%3A+1.0.0%2B1%0A%2A%2AMaterial%2A%2A%3A+true%0A%2A%2AAndroid+X%2A%2A%3A+false%0A%2A%2AModule%2A%2A%3A+false%0A%2A%2APlugin%2A%2A%3A+false%0A%2A%2AAndroid+package%2A%2A%3A+null%0A%2A%2AiOS+bundle+identifier%2A%2A%3A+null%0A%2A%2ACreation+channel%2A%2A%3A+master%0A%2A%2ACreation+framework+version%2A%2A%3A+bae79714317430baa8e9d2edeb6accdaedfd5e06%0A%23%23%23+Plugins%0Athermion_flutter%0Athermion_flutter_ffi%0Athermion_flutter_web-0.2.0%2B7%0A%0A&labels=tool%2Csevere%3A+crash

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* 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 41s
Running Gradle task 'assembleRelease'...                           42.1s
Gradle task assembleRelease failed with exit code 1

Flutter Log File

Flutter crash report. Please report a bug at https://github.com/flutter/flutter/issues.

command

flutter --quiet assemble --no-version-check --depfile C:\Users\rajat\Desktop\camera_3d\thermion\examples\flutter\camera_manipulation\build\app\intermediates\flutter\release/flutter_build.d --output C:\Users\rajat\Desktop\camera_3d\thermion\examples\flutter\camera_manipulation\build\app\intermediates\flutter\release -dTargetFile=lib\main.dart -dTargetPlatform=android -dBuildMode=release -dTrackWidgetCreation=true -dTreeShakeIcons=true -dFlavor= -dAndroidArchs=android-arm android-arm64 android-x64 -dMinSdkVersion=22 android_aot_bundle_release_android-arm android_aot_bundle_release_android-arm64 android_aot_bundle_release_android-x64

exception

ArgumentError: Invalid argument(s): Illegal character in path

#0      _Uri._checkWindowsPathReservedCharacters (dart:core/uri.dart:1841:11)
#1      _Uri._makeWindowsFileUrl (dart:core/uri.dart:1935:7)
#2      new _Uri.file (dart:core/uri.dart:1808:11)
#3      NativeAssetsBuildRunner._compileHookForPackageCached.<anonymous closure> (package:native_assets_builder/src/build_runner/build_runner.dart:689:27)
#4      MappedListIterable.elementAt (dart:_internal/iterable.dart:435:31)
#5      ListIterator.moveNext (dart:_internal/iterable.dart:364:26)
#6      new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:189:27)
#7      new _GrowableList.of (dart:core-patch/growable_array.dart:150:28)
#8      new List.of (dart:core-patch/array_patch.dart:39:18)
#9      ListIterable.toList (dart:_internal/iterable.dart:224:7)
#10     NativeAssetsBuildRunner._compileHookForPackageCached (package:native_assets_builder/src/build_runner/build_runner.dart:690:12)
<asynchronous suspension>
#11     NativeAssetsBuildRunner._runHookForPackageCached.<anonymous closure> (package:native_assets_builder/src/build_runner/build_runner.dart:494:13)
<asynchronous suspension>
#12     _runUnderFileLock (package:native_assets_cli/src/locking/locking.dart:72:16)
<asynchronous suspension>
#13     NativeAssetsBuildRunner._runHookForPackageCached (package:native_assets_builder/src/build_runner/build_runner.dart:485:12)
<asynchronous suspension>
#14     NativeAssetsBuildRunner._run (package:native_assets_builder/src/build_runner/build_runner.dart:205:44)
<asynchronous suspension>
#15     _runDartBuild (package:flutter_tools/src/isolated/native_assets/native_assets.dart:726:37)
<asynchronous suspension>
#16     runFlutterSpecificDartBuild (package:flutter_tools/src/isolated/native_assets/native_assets.dart:100:9)
<asynchronous suspension>
#17     NativeAssets.build (package:flutter_tools/src/build_system/targets/native_assets.dart:74:21)
<asynchronous suspension>
#18     _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:891:9)
<asynchronous suspension>
#19     Future.wait.<anonymous closure> (dart:async/future.dart:520:21)
<asynchronous suspension>
#20     _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:829:32)
<asynchronous suspension>
#21     Future.wait.<anonymous closure> (dart:async/future.dart:520:21)
<asynchronous suspension>
#22     _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:829:32)
<asynchronous suspension>
#23     Future.wait.<anonymous closure> (dart:async/future.dart:520:21)
<asynchronous suspension>
#24     _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:829:32)
<asynchronous suspension>
#25     Future.wait.<anonymous closure> (dart:async/future.dart:520:21)
<asynchronous suspension>
#26     _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:829:32)
<asynchronous suspension>
#27     Future.wait.<anonymous closure> (dart:async/future.dart:520:21)
<asynchronous suspension>
#28     _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:829:32)
<asynchronous suspension>
#29     FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:651:16)
<asynchronous suspension>
#30     AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:329:32)
<asynchronous suspension>
#31     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1450:27)
<asynchronous suspension>
#32     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#33     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#34     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:421:9)
<asynchronous suspension>
#35     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#36     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:5)
<asynchronous suspension>
#37     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:131:9)
<asynchronous suspension>
#38     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#39     main (package:flutter_tools/executable.dart:94:3)
<asynchronous suspension>

flutter doctor

[✓] Flutter (Channel main, 3.27.0-1.0.pre.255, on Microsoft Windows [Version 10.0.22631.4391], locale en-IN)
    • Flutter version 3.27.0-1.0.pre.255 on channel main at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5a11904383 (6 days ago), 2024-10-26 08:44:53 -0700
    • Engine revision c9b8ac96f6
    • Dart version 3.7.0 (build 3.7.0-69.0.dev)
    • DevTools version 2.40.1

[✓] Windows Version (11 Home Single Language 64-bit, 23H2, 2009)

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at C:\Users\rajat\AppData\Local\Android\sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: C:\Program Files\Java\jdk-17\bin\java
    • Java version Java(TM) SE Runtime Environment (build 17+35-LTS-2724)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/to/windows-android-setup for more details.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.16)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
    • Visual Studio Build Tools 2019 version 16.11.32602.291
    ✗ The current Visual Studio installation is incomplete.
      Please use Visual Studio Installer to complete the installation or reinstall Visual Studio.

[!] Android Studio (version 2024.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] IntelliJ IDEA Community Edition (version 2021.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.3.3
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.95.1)
    • VS Code at C:\Users\rajat\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.100.0

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22631.4391]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 130.0.6723.70
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 130.0.2849.56

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 3 categories.
nmfisher commented 2 weeks ago

Can you please give me the contents of:

(if you can't find the second file, just search your C:\Users\rajat\Desktop\camera_3d\thermion directory for the build.log file)

Is your Desktop folder mounted to OneDrive?

RajatDBazaar commented 2 weeks ago

I've located the flutter_06.log file, but I haven't been able to find the build.log file in C:\Users\rajat\Desktop\camera_3d\thermion. I’m attaching a screenshot here for you to review.

For reference, here’s the location of my desktop folder: C:\Users\rajat.

If you have any advice on where else I might find build.log or any alternative ways to generate it, I’d greatly appreciate it. Thanks again for your continued help!

Screenshot 2024-11-01 131852

flutter_06.log file

Flutter crash report. Please report a bug at https://github.com/flutter/flutter/issues.

command

flutter --quiet assemble --no-version-check --depfile C:\Users\rajat\Desktop\camera_3d\thermion\examples\flutter\camera_manipulation\build\app\intermediates\flutter\release/flutter_build.d --output C:\Users\rajat\Desktop\camera_3d\thermion\examples\flutter\camera_manipulation\build\app\intermediates\flutter\release -dTargetFile=lib\main.dart -dTargetPlatform=android -dBuildMode=release -dTrackWidgetCreation=true -dTreeShakeIcons=true -dFlavor= -dAndroidArchs=android-arm android-arm64 android-x64 -dMinSdkVersion=22 android_aot_bundle_release_android-arm android_aot_bundle_release_android-arm64 android_aot_bundle_release_android-x64

exception

ArgumentError: Invalid argument(s): Illegal character in path

#0      _Uri._checkWindowsPathReservedCharacters (dart:core/uri.dart:1841:11)
#1      _Uri._makeWindowsFileUrl (dart:core/uri.dart:1935:7)
#2      new _Uri.file (dart:core/uri.dart:1808:11)
#3      NativeAssetsBuildRunner._compileHookForPackageCached.<anonymous closure> (package:native_assets_builder/src/build_runner/build_runner.dart:689:27)
#4      MappedListIterable.elementAt (dart:_internal/iterable.dart:435:31)
#5      ListIterator.moveNext (dart:_internal/iterable.dart:364:26)
#6      new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:189:27)
#7      new _GrowableList.of (dart:core-patch/growable_array.dart:150:28)
#8      new List.of (dart:core-patch/array_patch.dart:39:18)
#9      ListIterable.toList (dart:_internal/iterable.dart:224:7)
#10     NativeAssetsBuildRunner._compileHookForPackageCached (package:native_assets_builder/src/build_runner/build_runner.dart:690:12)
<asynchronous suspension>
#11     NativeAssetsBuildRunner._runHookForPackageCached.<anonymous closure> (package:native_assets_builder/src/build_runner/build_runner.dart:494:13)
<asynchronous suspension>
#12     _runUnderFileLock (package:native_assets_cli/src/locking/locking.dart:72:16)
<asynchronous suspension>
#13     NativeAssetsBuildRunner._runHookForPackageCached (package:native_assets_builder/src/build_runner/build_runner.dart:485:12)
<asynchronous suspension>
#14     NativeAssetsBuildRunner._run (package:native_assets_builder/src/build_runner/build_runner.dart:205:44)
<asynchronous suspension>
#15     _runDartBuild (package:flutter_tools/src/isolated/native_assets/native_assets.dart:726:37)
<asynchronous suspension>
#16     runFlutterSpecificDartBuild (package:flutter_tools/src/isolated/native_assets/native_assets.dart:100:9)
<asynchronous suspension>
#17     NativeAssets.build (package:flutter_tools/src/build_system/targets/native_assets.dart:74:21)
<asynchronous suspension>
#18     _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:891:9)
<asynchronous suspension>
#19     Future.wait.<anonymous closure> (dart:async/future.dart:520:21)
<asynchronous suspension>
#20     _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:829:32)
<asynchronous suspension>
#21     Future.wait.<anonymous closure> (dart:async/future.dart:520:21)
<asynchronous suspension>
#22     _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:829:32)
<asynchronous suspension>
#23     Future.wait.<anonymous closure> (dart:async/future.dart:520:21)
<asynchronous suspension>
#24     _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:829:32)
<asynchronous suspension>
#25     Future.wait.<anonymous closure> (dart:async/future.dart:520:21)
<asynchronous suspension>
#26     _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:829:32)
<asynchronous suspension>
#27     Future.wait.<anonymous closure> (dart:async/future.dart:520:21)
<asynchronous suspension>
#28     _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:829:32)
<asynchronous suspension>
#29     FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:651:16)
<asynchronous suspension>
#30     AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:329:32)
<asynchronous suspension>
#31     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1450:27)
<asynchronous suspension>
#32     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#33     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#34     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:421:9)
<asynchronous suspension>
#35     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#36     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:5)
<asynchronous suspension>
#37     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:131:9)
<asynchronous suspension>
#38     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#39     main (package:flutter_tools/executable.dart:94:3)
<asynchronous suspension>

flutter doctor

[✓] Flutter (Channel main, 3.27.0-1.0.pre.255, on Microsoft Windows [Version 10.0.22631.4391], locale en-IN)
    • Flutter version 3.27.0-1.0.pre.255 on channel main at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5a11904383 (6 days ago), 2024-10-26 08:44:53 -0700
    • Engine revision c9b8ac96f6
    • Dart version 3.7.0 (build 3.7.0-69.0.dev)
    • DevTools version 2.40.1

[✓] Windows Version (11 Home Single Language 64-bit, 23H2, 2009)

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at C:\Users\rajat\AppData\Local\Android\sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: C:\Program Files\Java\jdk-17\bin\java
    • Java version Java(TM) SE Runtime Environment (build 17+35-LTS-2724)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/to/windows-android-setup for more details.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.16)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
    • Visual Studio Build Tools 2019 version 16.11.32602.291
    ✗ The current Visual Studio installation is incomplete.
      Please use Visual Studio Installer to complete the installation or reinstall Visual Studio.

[!] Android Studio (version 2024.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] IntelliJ IDEA Community Edition (version 2021.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.3.3
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.95.1)
    • VS Code at C:\Users\rajat\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.100.0

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22631.4391]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 130.0.6723.70
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 130.0.2849.56

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 3 categories.
nmfisher commented 2 weeks ago

@RajatDBazaar this will probably be easier to debug on Discord https://discord.gg/h2VdDK3EAQ

RajatDBazaar commented 2 weeks ago

Issue Resolved You can able to build the APK file

Solution ;- Move you project into C;\ (don't run on OneDrive-mounted folders)