Open DamienCassou opened 8 years ago
Same here.
got some news using :
apt-get install maven protobuf-compiler libprotobuf-java
trying again throws :
[ERROR] Failed to execute goal com.github.igor-petruk.protobuf:protobuf-maven-plugin:0.4:run (default) on project android-checkin: Protobuf installation version does not match Protobuf library version -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.igor-petruk.protobuf:protobuf-maven-plugin:0.4:run (default) on project android-checkin: Protobuf installation version does not match Protobuf library version
change(pom.xml):
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>2.4.1</version>
</dependency>
to:
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>2.6.1</version>
</dependency>
Changing the protobuf-java version to 2.6.1 didn't fix this error. Anyone able to fix it ?
Looks like this is related to the protobuf-java version & protobuf-compiler installed version on the machine. Both needs to match. Please run maven with -X you would see something like [INFO] Protobuf dependency version 2.4.1 [INFO] 'protoc' executable version 2.3.0 Both major versions should match. Make the changes appropriately and that takes care of it.