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

protoc 21.7 not found #63

Open
qpl23 opened this issue Jan 5, 2023 · 6 comments
Open

protoc 21.7 not found #63

qpl23 opened this issue Jan 5, 2023 · 6 comments

Comments

@qpl23
Copy link

qpl23 commented Jan 5, 2023

I originally thought this was a typo, but it seems protoc 21.7 does exist. So, edit:

The build.gradle snippet in the web tutorial specifies:

  protoc {
        artifact = "com.google.protobuf:protoc:21.7"
    }

But Android Studio can't find protoc 21.7 with the provided repository setting:

    repositories {
        google()
        mavenCentral()
    }

giving the error:

> Could not resolve all files for configuration ':app:protobufToolsLocator_protoc'.
   > Could not find com.google.protobuf:protoc:21.7.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/google/protobuf/protoc/21.7/protoc-21.7.pom
       - https://repo.maven.apache.org/maven2/com/google/protobuf/protoc/21.7/protoc-21.7.pom
     Required by:
         project :app

Changing the protoc stanza to read artifact = "com.google.protobuf:protoc:3.21.7" (i.e. changing the version from 21.7 to 3.21.7) makes this problem go away.

@qpl23 qpl23 changed the title Typo in protoc version in 5. proto datastore page in web tutorial protoc 21.7 not found Jan 5, 2023
@coalacorey
Copy link

I concur. This little maneuver just cost me 51 years.

@alexs60
Copy link

alexs60 commented Feb 24, 2023

the version is 3.21.7.
is missing a 3

@diegum
Copy link

diegum commented Sep 27, 2023

Weird that this lab got updated less than a week ago, but this issue wasn't fixed.

I have some feeling that googlers may omit the 3. without worrying about it, and some project building framework completes it on their behalf. Otherwise, they merge things without testing them.

@klemensz
Copy link

klemensz commented Dec 13, 2023

It's strange that this issue doesn't show up in Google when searching for the error message "Could not find com.google.protobuf:protoc:21.7." 🤔 That would probably save people that run into the same problem some time.

@qwertystar
Copy link

Actually in source code of codelabs,it is
artifact = "com.google.protobuf:protoc:3.19.4"
that means there was a mistake here.

@rickyManalo
Copy link

Still not fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants