AarohiSingla / TFLite-Object-Detection-Android-App-Tutorial-Using-YOLOv5

62 stars 46 forks source link

Error: cannot find symbol "TFLiteObjectDetectionAPIModel" #7

Open RoshanPanahi2019 opened 11 months ago

RoshanPanahi2019 commented 11 months ago

I get the error below, after importing the android folder to Android Studio, and trying to build the APK:


import org.tensorflow.lite.examples.detection.tflite.TFLiteObjectDetectionAPIModel; ^ symbol: class TFLiteObjectDetectionAPIModel location: package org.tensorflow.lite.examples.detection.tflite


My App Gradle includes: implementation 'org.tensorflow:tensorflow-lite:2.4.0' implementation 'org.tensorflow:tensorflow-lite-gpu:2.4.0' implementation 'org.tensorflow:tensorflow-lite-select-tf-ops:2.4.0'

I'm using: JDK==17, Gradle Plugin==7.1.0, Gradle Version=7.3 Android Studio Flamingo | 2022.2.1 Patch 2 Runtime version: 17.0.6 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Linux

Thanks!

AarohiSingla commented 11 months ago

I have used Android Studio Electric Eel.

On Thu, 3 Aug 2023 at 15:58, Roshan Panahi @.***> wrote:

I get the error below, after importing the android folder to Android Studio, and trying to build the APK:

import org.tensorflow.lite.examples.detection.tflite.TFLiteObjectDetectionAPIModel; ^ symbol: class TFLiteObjectDetectionAPIModel location: package org.tensorflow.lite.examples.detection.tflite

My App Gradle includes: implementation 'org.tensorflow:tensorflow-lite:2.4.0' implementation 'org.tensorflow:tensorflow-lite-gpu:2.4.0' implementation 'org.tensorflow:tensorflow-lite-select-tf-ops:2.4.0'

I'm using: JDK==17, Gradle Plugin==7.1.0, Gradle Version=7.3 Android Studio Flamingo | 2022.2.1 Patch 2 Runtime version: 17.0.6+0-17.0.6b802.4-9586694 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Linux 5.19.0-50-generic

Thanks!

— Reply to this email directly, view it on GitHub https://github.com/AarohiSingla/TFLite-Object-Detection-Android-App-Tutorial-Using-YOLOv5/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOJ7RWVHV7BYYRETZ6K5VGLXTQUIHANCNFSM6AAAAAA3DNQXN4 . You are receiving this because you are subscribed to this thread.Message ID: <AarohiSingla/TFLite-Object-Detection-Android-App-Tutorial-Using-YOLOv5/issues/7 @github.com>

RoshanPanahi2019 commented 11 months ago

Thank you for the response. I just installed Electric Eel but the same error exists. Here is a visual:

image

What are the JDK, Gradle Plugin, Gradle Version, and NDKs that worked for you? Thanks!

yajneshkanila commented 6 months ago

Hi roshan. i also have the same issue, did you resolve yours? if yes, how?