YOLO icon indicating copy to clipboard operation
YOLO copied to clipboard

Build error with YOLOv8-Object-Detector-Android-Tflite

Open tranzmatt opened this issue 7 months ago • 2 comments

$:~/StudioProjects/YOLO-android/YOLOv8-Object-Detector-Android-Tflite$ ./gradlew build Configuration on demand is an incubating feature.

Task :app:processDebugMainManifest [org.tensorflow:tensorflow-lite-support:0.4.4] /home/user/.gradle/caches/transforms-4/e82340e14be75f5c2d5f7997634811c1/transformed/tensorflow-lite-support-0.4.4/AndroidManifest.xml Warning: Namespace 'org.tensorflow.lite.support' is used in multiple modules and/or libraries: org.tensorflow:tensorflow-lite-support:0.4.4, org.tensorflow:tensorflow-lite-support-api:0.4.4. Please ensure that all modules and libraries have a unique namespace. For more information, See https://developer.android.com/studio/build/configure-app-module#set-namespace

Task :app:processReleaseMainManifest [org.tensorflow:tensorflow-lite-support:0.4.4] /home/user/.gradle/caches/transforms-4/e82340e14be75f5c2d5f7997634811c1/transformed/tensorflow-lite-support-0.4.4/AndroidManifest.xml Warning: Namespace 'org.tensorflow.lite.support' is used in multiple modules and/or libraries: org.tensorflow:tensorflow-lite-support:0.4.4, org.tensorflow:tensorflow-lite-support-api:0.4.4. Please ensure that all modules and libraries have a unique namespace. For more information, See https://developer.android.com/studio/build/configure-app-module#set-namespace

Task :app:compileDebugKotlin e: file:///home/user/StudioProjects/YOLO-android/YOLOv8-Object-Detector-Android-Tflite/app/src/main/java/com/surendramaran/yolov8tflite/MainActivity.kt:21:39 Unresolved reference: databinding e: file:///home/user/StudioProjects/YOLO-android/YOLOv8-Object-Detector-Android-Tflite/app/src/main/java/com/surendramaran/yolov8tflite/MainActivity.kt:26:35 Unresolved reference: ActivityMainBinding e: file:///home/user/StudioProjects/YOLO-android/YOLOv8-Object-Detector-Android-Tflite/app/src/main/java/com/surendramaran/yolov8tflite/MainActivity.kt:39:19 Unresolved reference: ActivityMainBinding e: file:///home/user/StudioProjects/YOLO-android/YOLOv8-Object-Detector-Android-Tflite/app/src/main/java/com/surendramaran/yolov8tflite/MainActivity.kt:59:13 Unresolved reference: isGpu e: file:///home/user/StudioProjects/YOLO-android/YOLOv8-Object-Detector-Android-Tflite/app/src/main/java/com/surendramaran/yolov8tflite/MainActivity.kt:59:48 Cannot infer a type for this parameter. Please specify it explicitly. e: file:///home/user/StudioProjects/YOLO-android/YOLOv8-Object-Detector-Android-Tflite/app/src/main/java/com/surendramaran/yolov8tflite/MainActivity.kt:59:60 Cannot infer a type for this parameter. Please specify it explicitly. e: file:///home/user/StudioProjects/YOLO-android/YOLOv8-Object-Detector-Android-Tflite/app/src/main/java/com/surendramaran/yolov8tflite/MainActivity.kt:64:87 Unresolved reference: R e: file:///home/user/StudioProjects/YOLO-android/YOLOv8-Object-Detector-Android-Tflite/app/src/main/java/com/surendramaran/yolov8tflite/MainActivity.kt:66:87 Unresolved reference: R e: file:///home/user/StudioProjects/YOLO-android/YOLOv8-Object-Detector-Android-Tflite/app/src/main/java/com/surendramaran/yolov8tflite/MainActivity.kt:189:35 Variable expected e: file:///home/user/StudioProjects/YOLO-android/YOLOv8-Object-Detector-Android-Tflite/app/src/main/java/com/surendramaran/yolov8tflite/MainActivity.kt:191:17 Unresolved reference: setResults e: file:///home/user/StudioProjects/YOLO-android/YOLOv8-Object-Detector-Android-Tflite/app/src/main/java/com/surendramaran/yolov8tflite/MainActivity.kt:192:17 Unresolved reference: invalidate e: file:///home/user/StudioProjects/YOLO-android/YOLOv8-Object-Detector-Android-Tflite/app/src/main/java/com/surendramaran/yolov8tflite/OverlayView.kt:46:60 Unresolved reference: R

Task :app:compileDebugKotlin FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:compileDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction Compilation error. See log for more details

  • 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.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

tranzmatt avatar Jul 16 '24 17:07 tranzmatt