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

Missing dependencies #1

Open
dmiralles2009 opened this issue Apr 11, 2019 · 8 comments
Open

Missing dependencies #1

dmiralles2009 opened this issue Apr 11, 2019 · 8 comments

Comments

@dmiralles2009
Copy link

The code fails to compile properly because some of the dependencies it needs are non-existing anymore under the suggested package. This is happening when the code tries to import com.google.location.suplclient.supl.Ephemeris.IonosphericModelProto; from withing SuplLppClientHelper.java

@coleHafner
Copy link

+1

I just ran into the same issue. I'm was really hoping to get this built. Has anyone been able to get around this error?

@dmiralles2009
Copy link
Author

@coleHafner check my forked version that I think I fixed this a while ago. I should try to get a PR done

@coleHafner coleHafner mentioned this issue Oct 10, 2019
@coleHafner
Copy link

@dmiralles2009 I still get the same error:

[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/colehafner/Sites/__nordic/supl-client-2/target/generated-sources/protobuf/java/com/google/location/suplclient/supl/Ephemeris.java:[50,9] cannot find symbol
  symbol:   class UnusedPrivateParameter
  location: class com.google.location.suplclient.supl.Ephemeris.GpsTimeProto
[ERROR] /Users/colehafner/Sites/__nordic/supl-client-2/target/generated-sources/protobuf/java/com/google/location/suplclient/supl/Ephemeris.java:[650,9] cannot find symbol
  symbol:   class UnusedPrivateParameter
  location: class com.google.location.suplclient.supl.Ephemeris.IonosphericModelProto
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  10.285 s
[INFO] Finished at: 2019-10-10T15:20:59-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project SuplClient: Compilation failure: Compilation failure:
[ERROR] /Users/colehafner/Sites/__nordic/supl-client-2/target/generated-sources/protobuf/java/com/google/location/suplclient/supl/Ephemeris.java:[50,9] cannot find symbol
[ERROR]   symbol:   class UnusedPrivateParameter
[ERROR]   location: class com.google.location.suplclient.supl.Ephemeris.GpsTimeProto
[ERROR] /Users/colehafner/Sites/__nordic/supl-client-2/target/generated-sources/protobuf/java/com/google/location/suplclient/supl/Ephemeris.java:[650,9] cannot find symbol
[ERROR]   symbol:   class UnusedPrivateParameter
[ERROR]   location: class com.google.location.suplclient.supl.Ephemeris.IonosphericModelProto
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

I'm attempting to compile with maven:

cd <project dir>
mvn initialize
mvn compile

@coleHafner
Copy link

Ah, nevermind. src/main/ephemeris.proto had a reference to the IonosphericModelProto still. I commented that out and it now builds.

@lc6chang
Copy link

I'm using MacOS and got the same issue. A simple workaround is to manually complie the proto object file (mentioned in README.md).
e.g.

$ cd supl-client
$ protoc --java_out=src/main/java src/main/proto/ephemeris.proto

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

4 participants
@coleHafner @dmiralles2009 @lc6chang and others