I want to add itext lib to my project.(http://itextpdf.com/itextg-android)
I added to jar file into libs folder. After that i wrote to build.gradle that : compile files('libs/itextg-5.5.4.jar') .
But after the sync , i am getting that error :
Error:(12, 0) Gradle DSL method not found: 'compile()' Possible causes:
The project 'Pdf' may be using a version of Gradle that does not contain the method. Gradle settings The build file may be missing a Gradle plugin. Apply Gradle plugin
Also here(http://www.codeproject.com/Articles/986574/Android-iText-Pdf-Example) is a solution about this but when i do that i am getting another error
Error:Failed to resolve: org.apache.commons:commons-imaging:1.0-SNAPSHOT Open File
Show in Project Structure dialog