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.
Asked
Active
Viewed 513 times
1 Answers
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
-
1Seem my update, and also readt this: http://stackoverflow.com/questions/27617687/gradle-dsl-method-not-found-compile – Gavriel Feb 03 '16 at 23:36