Want to know the correct version of Java for Amazon linux Instance

Anila year ago

Hi,

I have cloned Traccar server at my EC2 Instance, everything is going perfect but while making build it's getting failed. So want to know the exact version of Java.

Anton Tananaeva year ago

You can find it in the Gradle configuration.

Anila year ago

I am getting below error in local terminal.

Plugin [id: 'com.google.protobuf', version: '0.9.4'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Included Builds (No included builds contain this plugin)
- Plugin Repositories (could not resolve plugin artifact 'com.google.protobuf:com.google.protobuf.gradle.plugin:0.9.4')
  Searched in the following repositories:
    Gradle Central Plugin Repository

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 4s
rahulchoudhary@Ankits-MacBook-Pro TRACCERCLONE % 
Anton Tananaeva year ago

You forgot to mention what command you're running.

Anila year ago

Here is complete information

rahulchoudhary@Ankits-MacBook-Pro TRACCERCLONE % Gradle assemble

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/rahulchoudhary/TRACCERCLONE/build.gradle' line: 4

* What went wrong:
Plugin [id: 'com.google.protobuf', version: '0.9.4'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Included Builds (No included builds contain this plugin)
- Plugin Repositories (could not resolve plugin artifact 'com.google.protobuf:com.google.protobuf.gradle.plugin:0.9.4')
  Searched in the following repositories:
    Gradle Central Plugin Repository

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 537ms
rahulchoudhary@Ankits-MacBook-Pro TRACCERCLONE % 
Anton Tananaeva year ago

That's not the right command. You should be using Gradle wrapper.