0

I need to use Flickr AI in an Android app but I'm not sure how to get Android to recognize the API. I downloaded some unofficial jars but I couldn't get Android Studio to recognize them and I'm a bit at a loss. I want it to recognize the methods from the flickr API.

Robert
  • 217
  • 1
  • 3
  • 8

1 Answers1

0

Just create a directory called libs and put the jar in there and add this to your build.gradle :

apply plugin: 'android'

dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
}
Gavriel
  • 18,880
  • 12
  • 68
  • 105
  • I tried that it said Gradle DSL method not found 'compile()'. Also I assume you wanted libs in the 'app' folder? – Robert Feb 03 '16 at 23:27
  • 1
    Seem my update, and also readt this: http://stackoverflow.com/questions/27617687/gradle-dsl-method-not-found-compile – Gavriel Feb 03 '16 at 23:36