shamanland / facebook-like-button

Implementation of Facebook social plugin 'Like' for Android
66 stars 28 forks source link

How to import the sample #2

Open Samsu7609 opened 9 years ago

Samsu7609 commented 9 years ago

i download the "facebook-like-button-snapshot" project and import to my workspace and two project "main" and "MainActivity" "main" as a lib for "MainActivity" but in "main" project has some error import static com.shamanland.facebook.likebutton.BuildConfig.LOGGING; i cant find BuildConfig.LOGGING

sorry for my poor english

ok3141 commented 9 years ago

Try to use gradle dependency to non-snapshot library. I won't publish snapshot library in future.

By the way, what is your native language?

Samsu7609 commented 9 years ago

Hello im from Taiwan ! and my native language is Chinese!

I saw "gradle" folder in "facebook-like-button-snapshot" project so you mean I need to put "gradle" to "MainActivity" project ?

thanks your reply!

ok3141 commented 9 years ago

You need just to add single line compile 'com.shamanland:facebook-like-button:0.1.8' into corresponding section of your build.gradle file.

If you use Eclipse, try to download .aar file directly.

Samsu7609 commented 9 years ago

Thanks but i need to learn how to use gradle firstly haha! i'm new in Android , thanks your good project

Samsu7609 commented 9 years ago

Shomeser : so i just need to put "facebook-like-button-0.1.8-javadoc.jar" in my project libs folder then i can use your code?

ok3141 commented 9 years ago

Not the jar, use aar instead. Make sure after that you link this lib into your project.