android / android/codelab-mlkit-android

Step 8: Classification still not working

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
186
Forks
104
PR merge metrics
No merged PRs in 30d

Description

Hi, I just want to share my case that I have followed all the steps but the classification didn't work and there were no errors logged out.
Added this to build.gradle (app), inside `android{}` is an extra step which was not mentioned in the codelab instruction:
`aaptOptions {
noCompress "tflite"
}`
This solved my problem and maybe yours too :)

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the codelab instructions and the app module's build.gradle file, especially the android block. Confirm whether the tflite noCompress setting is required for classification, then update the relevant instructions so the documented steps reproduce a working classification.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.