ultralytics / yolo-flutter-app

A Flutter plugin for Ultralytics YOLO computer vision models
https://ultralytics.com
GNU Affero General Public License v3.0
105 stars 41 forks source link

Getting Execution failed for task ':ultralytics_yolo:buildCMakeDebug[arm64-v8a]' error. I am running it on Flutter SDK 3.19.6 #26

Closed EkjyotSandhu12 closed 4 months ago

EkjyotSandhu12 commented 5 months ago

Launching lib/main.dart on motorola edge 40 in debug mode... Running Gradle task 'assembleDebug'... Warning: This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.

FAILURE: Build failed with an exception.

BUILD FAILED in 34s Error: Gradle task assembleDebug failed with exit code 1

pderrenger commented 5 months ago

Hello,

It seems like the error you're encountering is related to a type casting issue in the C++ code, specifically with uintptr_t. This could be due to the NDK version compatibility with the used libraries. Here are a few steps you might consider:

  1. Check NDK Version: Ensure that the NDK version installed is compatible with the other libraries you are using. Sometimes, updating or downgrading the NDK can resolve such issues.

  2. Examine C++ Code: Look into the tflite_detect.cpp and related headers to ensure that all type casts are done correctly and are compatible with your platform's architecture.

  3. Build Options: Try building with the --info or --debug option as suggested by the error log to get more detailed output that might help pinpoint the issue.

  4. Update Libraries: If you are using any third-party libraries, ensure they are up to date and compatible with your current development environment.

If the issue persists, providing the output from the --debug option could help further diagnose the problem.

github-actions[bot] commented 4 months ago

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐