I have a problem:

[![enter image description here](https://i.stack.imgur.com/bunqV.png)](https://i.stack.imgur.com/bunqV.png)

XML-file:

```
<?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://www.springframework.org/schema/beans
                               http://www.springframework.org/schema/beans/spring-beans.xsd" >

    <bean id="spaceship" class="com.examples.spring.Cruiser">
        <constructor-arg ref="energyweapon" />
        <constructor-arg name="str" value="hello" />
    </bean>

    <bean id="energyweapon" class="com.examples.spring.PlasmaCannon" />

</beans>

```

Despite the IDEA error my project still successfully compiles and runs. Is there any fix?

Gradle installation:

```
------------------------------------------------------------
Gradle 2.14
------------------------------------------------------------

Build time:   2016-06-14 07:16:37 UTC
Revision:     cba5fea19f1e0c6a00cc904828a6ec4e11739abc

Groovy:       2.4.4
Ant:          Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM:          1.8.0_73 (Oracle Corporation 25.73-b02)
OS:           Windows 7 6.1 amd64

```

build.gradle:

```
group 'com.examples.spring'
version '1.0-SNAPSHOT'

apply plugin: 'java'

sourceCompatibility = 1.5

repositories {
    mavenCentral()
}

dependencies {
    testCompile group: 'junit', name: 'junit', version: '4.11'
    compile 'org.springframework:spring-context:4.3.1.RELEASE'
}

```

Intellij IDEA:  

IntelliJ IDEA Community Edition 2016.1.3