question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot build provided template project

See original GitHub issue

Hi,

The instructions given here: https://github.com/marcoferrer/kroto-plus/tree/master/example-grpc-client-server#quick-start:

git clone https://github.com/marcoferrer/kotlin-coroutines-gRPC-template && \
cd kotlin-coroutines-gRPC-template && \
./gradlew run

produce the following output:

Cloning into 'kotlin-coroutines-gRPC-template'...
remote: Enumerating objects: 57, done.
remote: Counting objects: 100% (57/57), done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 57 (delta 18), reused 44 (delta 9), pack-reused 0
Unpacking objects: 100% (57/57), done.
e: ~/Workspace/kotlin-coroutines-gRPC-template/api/build/generated/source/proto/main/coroutines/io/grpc/examples/helloworld/GreeterCoroutineGrpc.kt: (25, 25): Unresolved reference: Generated
e: ~/Workspace/kotlin-coroutines-gRPC-template/api/build/generated/source/proto/main/coroutines/io/grpc/examples/helloworld/GreeterCoroutineGrpc.kt: (37, 2): Unresolved reference: Generated
> Task :api:compileKotlin FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':api:compileKotlin'.
> Compilation error. See log for more details

* 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 1s
6 actionable tasks: 6 executed

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
marcoferrercommented, Feb 20, 2019

If you are using jdk 9+ then you may experience issues with javax.annotation in general. The suggested fix mentioned here is adding the dependency explicitly.

compileOnly "javax.annotation:javax.annotation-api:1.2"

Thanks for pointing this out. Ill be sure to update the templates

0reactions
jcornazcommented, Feb 21, 2019

OK, thanks @marcoferrer

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot build default Android project from template · Issue #813
I'm brand new to both Xamarin and Fabulous and trying to get my feet wet, but I can't compile the default Android project...
Read more >
build error when building project template project - MSDN
on step 3 of creating a custom template wizard you are adding the assembly of the VSIX project as an asset in the...
Read more >
"Cannot create project using template project" when creating a ...
When attempting to create a new project using a template project's settings in AutoCAD Plant 3D, the following error message is prompted: Cannot...
Read more >
Template not provided using create-react-app - Stack Overflow
A template was not provided. This is likely because you're using an outdated version of create-react-app. After uninstalling it with npm ...
Read more >
I cannot make a project a template - Asana Community Forum
Briefly describe (1-2 sentences) the Bug you're experiencing: I f i create a project then save it as a template TEMPLATE icon apears...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found