# yolo_demo **Repository Path**: luodewen/yolo_demo ## Basic Information - **Project Name**: yolo_demo - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-01-16 - **Last Updated**: 2026-01-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # yolo_demo A new Flutter project. 问题1:首次运行,报错: (base) d@bogon yolo_demo % flutter run Launching lib/main.dart on MTN AN00 in debug mode... FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':ultralytics_yolo:bundleLibCompileToJarDebug'. > Could not create task ':ultralytics_yolo:compileDebugJavaWithJavac'. > Failed to calculate the value of task ':ultralytics_yolo:compileDebugJavaWithJavac' property 'javaCompiler'. > Cannot find a Java installation on your machine (Mac OS X 26.2 aarch64) matching: {languageVersion=17, vendor=any vendor, implementation=vendor-specific, nativeImageCapable=false}. Toolchain download repositories have not been configured. * Try: > Learn more about toolchain auto-detection and auto-provisioning at https://docs.gradle.org/8.14/userguide/toolchains.html#sec:auto_detection. > Learn more about toolchain repositories at https://docs.gradle.org/8.14/userguide/toolchains.html#sub:download_repositories. > 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 588ms Running Gradle task 'assembleDebug'... 687ms Error: Gradle task assembleDebug failed with exit code 1 (base) d@bogon yolo_demo % 解决: ✅ 在 gradle.properties 中启用了工具链自动下载 ✅ 在 settings.gradle.kts 中添加了 Foojay 插件(会自动配置工具链) 问题2:该example无法直接在ios手机端看到画面 解决: 先使用camera三方库单独的开一个页面,先进入这个页面,获取到权限后,再进入 yolo检测页面,则发现可以正常运行(所以应该只是相机权限问题)(注意!!! camera在ios端,还需要麦克风权限,或者设置controller里面的useAudio:false也行)