I have tried this: Correct way to add external jars (lib/*.jar) to an IntelliJ IDEA project to add a external jar library file "temp.jar" under lib folder(I have created) and mark it as Library. Then I build/ re-build the project, the errors still said that package com.example.temp doesn't exist. I am using Intellij IDEA 13.1 Free version and Gradle.
            Asked
            
        
        
            Active
            
        
            Viewed 1,745 times
        
    1 Answers
1
            if you are using Gradle I believe you also should modify build.gradle for your module. In section dependencies add line like this:
compile fileTree(dir: 'libs', include: ['*.jar'])
like in this answer: https://stackoverflow.com/a/13072692/1570833 Hope this helps! Cheers
 
    
    
        Community
        
- 1
- 1
 
    
    
        Piotr Przywieczerski
        
- 82
- 1
- 3
 
    