Ich erhalte dies währendassembleDebug:
Code: Select all
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':ultralytics_yolo:buildCMakeDebug[arm64-v8a]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `/home/siddhant/.pub-cache/hosted/pub.dev/ultralytics_yolo-0.1.42/android/.cxx/Debug/4r192j6g/arm64-v8a`
[1/2] Building CXX object CMakeFiles/ultralytics.dir/native-lib.cpp.o
[2/2] Linking CXX shared library .../libultralytics.so
FAILED:
ld.lld: error: undefined symbol: std::__throw_length_error(char const*)
>>> referenced by stl_vector.h:1767
>>> CMakeFiles/ultralytics.dir/native-lib.cpp.o:(std::vector::_S_check_init_len)
...
clang++: error: linker command failed with exit code 1
ninja: build stopped: subcommand failed.
C++ build system [build] failed
Flutter (stabil) unter Linux
Android NDK 28.0.x
CMake 3.22.1
Dart/Flutter hat das Plugin normalerweise von pub.dev abgerufen
Dies passiert nur, wenn das hinzugefügt wird ultralytics_yolo-Abhängigkeit.
Andere Projekte lassen sich gut kompilieren.
---
Was ich versucht habe
Projekt bereinigt (flutter clean, rm -rf ~/.pub-cache)
Downgrade und Upgrade von NDK-Versionen
Mobile version