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

Error while deploying nodes after configuring app in android studio #45

Open
error335wb opened this issue Dec 16, 2021 · 1 comment
Open

Comments

@error335wb
Copy link

Hi, I am getting error while configuring sample source code application locally.
I am following the steps mentioned in official documentation link in given below.
Documentation Link: Run a sample CorDapp
I have upgraded the gradle to 7.3
and Kotlin version to 1.3 and after that when I run the command to deploy nodes as mentioned in documentation I am getting following error which is in "net.corda.plugins.cordformation" plugin.
Error is:

A problem was found with the configuration of task ':deployNodes' (type 'Cordform').

  • In plugin 'net.corda.plugins.cordformation' type 'net.corda.plugins.Cordform' property 'directory' has @input annotation used on property of type 'Path'.

    Reason: A property of type 'Path' annotated with @input cannot determine how to interpret the file.

    Possible solutions:

    1. Annotate with @InputFile for regular files.
    2. Annotate with @InputDirectory for directories.
    3. If you want to track the path, return File.absolutePath as a String and keep @input.

    Please refer to https://docs.gradle.org/7.3/userguide/validation_problems.html#incorrect_use_of_input_annotation for more details about this problem.

Please Help me to configure the following code. Thanks in advance.

@complexmathguy
Copy link

I was using Gradle 7.x before installing Corda and saw the same issue. I noticed the examples used 5.6.4. Modify the grade/wrapper/gradle-wrapper.properties file to use gradle-5.6.4-all.zip and you should be all set.

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

2 participants