Search code examples
androidgradledependencieskudan

Could not find method compile() for arguments [file collection] on object


This image shows the project structure and the error

img

I'm following this tutorial to build a sample app using Kudan.

Here I got an error (Shown in the screenshot) after step 5 (means after Adding kudanar.jar and cardboard.jar as file dependencies )


Solution

  • I'm not sure I see why you need a new module for cardboard. You can just place the cardboard.jar into app/libs, and in the app/build.gradle, you can compile that JAR file as well as any others with this one line

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])