I've a doubt, I'm working with facebook sdk on Android Studio. I include it as the documentation says:
repositories {
mavenCentral(); //FACEBOOK SDK
}
...
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.facebook.android:facebook-android-sdk:4.2.0'
}
But, when I want to use Audience Network, it doesn't appear. This include fails
<activity android:name="com.facebook.ads.InterstitialAdActivity"
android:configChanges="keyboardHidden|orientation|screenSize" />
Should I have to download the facebook sdk directly and include the audience network jar? Thanks
There is a separate JAR file that you need to include in your
/libsfolder.AudienceNetwork/binfolder, copy theAudienceNetwork.jarfile and place it in the/libsfolder in your project (you might need to create the directory if it doesn't already exist). Make sure your IDE's UI reflects this change. If you are using Intellij IDEA, right click on thelibs/AudienceNetwork.jarfile and choose 'Add as Library'.Reference