cordapp-template-java “Cannot resolve symbol 'docs'”

泄露秘密 提交于 2019-12-13 03:56:15

问题


I have been working my way through the Hello, World! Tutorial from V2.0 and cannot import the following variable.

import static net.corda.docs.java.tutorial.helloworld.TemplateContract.TEMPLATE_CONTRACT_ID;

Intellij informs me that it "Cannot resolve symbol 'docs'".

Is this a known issue or have I incorrectly setup the cordapp-template-java project?


回答1:


Resolved this issue by using:

import static com.template.TemplateContract.TEMPLATE_CONTRACT_ID;

The definition for this variable can be found here.



来源:https://stackoverflow.com/questions/47730995/cordapp-template-java-cannot-resolve-symbol-docs

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!