I now create a new class as follows: package com.stackoverflow. I then went into IntelliJ's Settings => Maven => Repository Services and Updated my local repository (so that IntelliJ would reindex the repository contents).įinally, I added the following dependency to my pom.xml file (just above the log4j dependency). Maven installed the jar file just fine into my local repository. DartifactId=jmime -Dversion=3.1.1e -Dpackaging=jar I have faced this issue when IntelliJ IDEA got closed.
#Intellij jar cannot resolve symbol android
mvn install:install-file -Dfile=jmime.jar -DgroupId=jmime \ .Jar file, but Android Studio keeps telling me that it cannot resolve symbol of the class I am. I then added hunnysoft's jmime library to my local maven repository using the mvn install:install-file as follows. The IDEA inspections run fine and my unit tests all compile and run. I cannot find any class conflicts there is no other jar file in my classpath with the same package name. maven There are basically two reasons for the project to encounter such problems, The dependency corresponding to the class is not loaded in The compilers own settings and cache problems.
#Intellij jar cannot resolve symbol how to
I setup a Maven project and add log4j as a dependency in the pom.xml file. Intellij Cannot resolve symbol on import. Intellij IDEA In use, There will be all kinds of Cannot Resolve Symbol xxx problem, that ,idea How to solve it Regarding this, Xiaobian will introduce all the solutions at one time. IntelliJ inspection gives 'Cannot resolve symbol' but still compiles code intellij-idea, intellij-inspections, java, maven / By Kevin Sitze Platform: IntelliJ Community Edition 10.0. So I have a strange situation with IntelliJ that has me completely stumped. I now create a new class as follows: package : IntelliJ Community Edition 10.0.3 mvn install:install-file -Dfile=jmime.jar -DgroupId=jmime \ I setup a Maven project and add log4j as a dependency in the pom.xml file. I have just started using android studio 1.1.0 and cannot get over the problem of adding an external jar in my project. at the top of the class file, this is flagged in red and says 'cannot resolve symbol lombok' This is a simple project not using maven or anything. Platform: IntelliJ Community Edition 10.0.3