Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Execution failed for task ':rive_common:buildCMakeDebug[arm64-v8a]'

Tags:

flutter

rive

Unable to run the flutter application due to the following exception

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':rive_common:buildCMakeDebug[arm64-v8a]'.
> Build command failed.
  Error while executing process /home/toku/Android/Sdk/cmake/3.18.1/bin/ninja with arguments {-C /home/toku/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.1/android/.cxx/Debug/2c2j2ru1/arm64-v8a rive_text}
  ninja: Entering directory `/home/toku/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.1/android/.cxx/Debug/2c2j2ru1/arm64-v8a'
  [1/63] Building CXX object CMakeFiles/rive_text.dir/home/toku/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.1/ios/rive-cpp/src/rive_counter.cpp.o
  FAILED: CMakeFiles/rive_text.dir/home/toku/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.1/ios/rive-cpp/src/rive_counter.cpp.o 
  In file included from /home/toku/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.1/ios/rive-cpp/src/rive_counter.cpp:5:
  In file included from ../../../../../ios/rive-cpp/include/rive/rive_counter.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/rive_types.hpp:59:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I'm using flutter version 3.3.10, rive: ^0.10.0,

I've done flutter clean flutter pub cache repair

like image 599
ToKu404 Avatar asked Mar 16 '26 08:03

ToKu404


2 Answers

Use

rive: ^0.9.1

this is the most stable rive package version

like image 137
Tasnuva Tavasum oshin Avatar answered Mar 18 '26 01:03

Tasnuva Tavasum oshin


Answer:

https://stackoverflow.com/a/77191340/7186671

Error While Run Project

Execution failed for task ':rive_common:configureCMakeDebug[arm64-v8a]'.

[CXX1405] error when building with cmake using C:\Users\abdo\AppData\Local\Pub\Cache\hosted\pub.dev\rive_common-0.2.7\android\CMakeLists.txt: C++ build system [configure] failed while executing:

Fixed

  1. remove this plugin "https://pub.dev/packages/awesome_dialog"
 awesome_dialog: ^3.1.0

or

  1. Fixed Use Old Dependence:
  awesome_dialog: ^2.2.1
like image 37
Abdallah Mahmoud Avatar answered Mar 18 '26 01:03

Abdallah Mahmoud



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!