protoc 21.7 not found
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 30/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- android
- Domain
- documentation
Research direction
Open the Android Proto DataStore web tutorial at the linked build.gradle snippet and compare its protoc artifact version with the reported Maven resolution error. Update the tutorial so the artifact uses the resolvable version, then verify that the displayed repository settings and Gradle configuration are consistent.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Kotlin
- Stars
- 240
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from android/codelab-android-datastore
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
android/codelab-android-datastore#83 · 1 comment · 2 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in android/codelab-android-datastore
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitcoindevkit/bdk-ffi#1125 ·
-
Issue: Bug
Difficulty 1/5 Under an hour Newbie friendliness 91/100
OpenAPITools/openapi-generator#24978 ·
-
helsemelding-json-schema json-schema-core
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
contributor: external needs review
Difficulty 2/5 1-3 hours Newbie friendliness 82/100