Java 类型不匹配:无法在ira客户端中从Issue.FluentCreate转换为Issue

Java 类型不匹配:无法在ira客户端中从Issue.FluentCreate转换为Issue,java,httpclient,jira,Java,Httpclient,Jira,我正在使用 <!-- https://mvnrepository.com/artifact/net.rcarz/jira-client --> <dependency> <groupId>net.rcarz</groupId> <artifactId>jira-client</artifactId> <version>0.5</version> </dependency&

我正在使用

<!-- https://mvnrepository.com/artifact/net.rcarz/jira-client -->
<dependency>
    <groupId>net.rcarz</groupId>
    <artifactId>jira-client</artifactId>
    <version>0.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
<dependency>
    <groupId>org.apache.httpcomponents</groupId>
    <artifactId>httpclient</artifactId>
    <version>4.5.12</version>
</dependency>
public void createJiraIssue(ITestResult result) throws JiraException {
        if(result.getStatus()==ITestResult.FAILURE) {
        BasicCredentials cred=new BasicCredentials("username", "password");
        JiraClient jira=new JiraClient("http://localhost:8080", cred);
        Issue id=jira.createIssue("Project name", "Bug").field(Field.SUMMARY, result.getMethod().getMethodName()+"was failed due to"+result.getThrowable());
        System.out.println(id.getKey());
                        
        }
    }