Skip to content

Compiler #763

Closed
Closed

Description

@trishav96

In which file did you encounter the issue?

I'm trying to run the QuicksampleStart file. I did it on Eclipse. it gives these errors:

Did you change the file? If so, how?

Describe the issue

Exception in thread "main" java.lang.Error: Unresolved compilation problems:
SpeechClient cannot be resolved to a type
SpeechClient cannot be resolved
ByteString cannot be resolved to a type
ByteString cannot be resolved
RecognitionConfig cannot be resolved to a type
RecognitionConfig cannot be resolved
AudioEncoding cannot be resolved to a variable
RecognitionAudio cannot be resolved to a type
RecognitionAudio cannot be resolved
RecognizeResponse cannot be resolved to a type
SpeechRecognitionResult cannot be resolved to a type
SpeechRecognitionResult cannot be resolved to a type
SpeechRecognitionAlternative cannot be resolved to a type
SpeechRecognitionAlternative cannot be resolved to a type

at speechTest.QuickstartSample.main(QuickstartSample.java:25)

Activity

  1. gguuss commented on Jul 26, 2017

    @gguuss
    Contributor

    How are you installing the dependencies, e.g. are you running the following command:

    mvn clean compile assembly:single
    

    and

    export GOOGLE_APPLICATION_CREDENTIALS=/path/to/your/service.json
    export GCLOUD_PROJECT=YOUR_PROJECT_ID
    

    Before running

    mvn integration-test
    

    I recommend you try building / running from the command line using the instructions in README.MD to get to a working state before trying to configure your IDE for execution.

  2. trishav96 commented on Jul 27, 2017

    @trishav96
    Author

    I didn't do any of that

  3. gguuss commented on Aug 1, 2017

    @gguuss
    Contributor

    @trishav96 Please try following the instructions for building the sample using Maven. If you must build the sample using Eclipse, the following settings will help:

    • Edit your maven build configurations by clicking the Green Run button
      Run menu

    • Add a configuration for building
      Build configuration

    • Add a configuration for running
      Run configuration

    Note that for the Maven extension to work, you must have Eclipse configured to find the JAVA_HOME environment variable as appropriate.

  4. nnegrey commented on Dec 5, 2018

    @nnegrey
    Contributor

    This appears to have been resolved. Please feel free to reopen if this is not true. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions