Could not download protobuf-java-util-3.10.0.jar (com.google.protobuf:protobuf-java-util:3.10.0): No cached version available for offline mode code example
Example 1: protobuf gradle compile
protobuf {
// Configure the protoc executable
protoc {
// Download from repositories
artifact = 'com.google.protobuf:protoc:3.0.0'
}
}
Example 2: protobuf java gradle
plugins {
id "com.google.protobuf" version "0.8.14"
id "java"
}