Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build a handwritten digit classifier app with TensorFlow Lite, step 3 - FAIL #62823

Closed
jsonslim opened this issue Jan 20, 2024 · 8 comments
Closed
Assignees
Labels
Android comp:lite TF Lite related issues stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author type:support Support issues

Comments

@jsonslim
Copy link

jsonslim commented Jan 20, 2024

When I try import the project to Android studio from the lite/codelabs/digit_classifier/android/start/

I get the following error message:

"Failed to notify dependency resolution listener.
'void org.gradle.api.artifacts.DependencySubstitutions$Substitution.with(org.gradle.api.artifacts.component.ComponentSelector)'"

image

Also in the tutorial this step says:
image

But in Android studio in the build.grable the commented line says the opposite:
image

Like - don't do it.

Seems like the project is broken. I tried it in Windows10 machine and in Ubuntu 20

@LakshmiKalaKadali
Copy link
Contributor

Hi @pkgoogle,

I have reproduced the issue on window10 machine, the same error resulted. Could you please take a look.

Thank You

@pkgoogle
Copy link

pkgoogle commented Feb 7, 2024

Hi @jsonslim, this repo is intended to be used with https://developer.android.com/codelabs/digit-classifier-tflite. Have you tried specifically following all the steps in that tutorial? If you are still running into problems, then let us know after which steps you failed (after you ensured you followed all the prior steps). That message is there, b/c that is the wrong build.gradle file, as noted in the comment there is an individual module's build.gradle file where you should make that edit. Thanks for your help!

@pkgoogle pkgoogle added stat:awaiting response Status - Awaiting response from author type:support Support issues and removed type:build/install Build and install issues labels Feb 7, 2024
Copy link

This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.

@github-actions github-actions bot added the stale This label marks the issue/pr stale - to be closed automatically if no activity label Feb 15, 2024
Copy link

This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.

Copy link

Are you satisfied with the resolution of your issue?
Yes
No

@miguel-decemberlabs
Copy link

Same issuein macOS Sonoma. Even following the step by step instructions of the codelab.

@miguel-decemberlabs
Copy link

Fixed it by updating kotlin_version to 1.9.23, com.android.tools.build:gradle to 8.3.1 and adding the namespace to the module's android block.

@mzcode
Copy link

mzcode commented May 20, 2024

Fixed it by updating kotlin_version to 1.9.23, com.android.tools.build:gradle to 8.3.1 and adding the namespace to the module's android block.

thank you this worked only thing different with com.android.tools.build:gradle 8.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android comp:lite TF Lite related issues stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author type:support Support issues
Projects
None yet
Development

No branches or pull requests

6 participants