Reputation: 176
Can any one help resolve this. Iv added a jar file to my android project
Right click of the jar and selected "Add as library"
But the classes in the jar show lock icons and I cant import them...
Any help would be appreciated!
Upvotes: 2
Views: 2498
Reputation: 8006
Mine show lock icons and they have been imported correctly. Did you add this to your build.gradle file?
dependencies {
compile files('libs/twitter4j-stream-4.0.1.jar')
}
also once version 4.0.1 is in maven central (soon? https://twitter.com/t4j_news/status/445971905191759874) you can simply import it by adding compile 'org.twitter4j:twitter4j-stream:4.0.1'
without including the jar file at all.
Upvotes: 1