adColony 期待 libadcolony.so 在 libs 目录中,但未找到
adColony Expecting libadcolony.so in libs directory but it was not found
我正在尝试使用 adColony 实现奖励视频,但我遇到了麻烦
在文件夹 app/libs 中,我还在 lib 文件夹
中添加了 libadcolony.so adcolony.jar 版本 3.0.7
在我的 activity
AdColony.configure(this, appOptions, "app83c6f9efcc25******",
"vzf20fd3c78687******");
AdColonyAdOptions options = new AdColonyAdOptions()
.enableConfirmationDialog(true)
.enableResultsDialog(true);
AdColonyRewardListener listener = new AdColonyRewardListener() {
@Override
public void onReward(AdColonyReward reward) {
/** Query the reward object for information here */
gagner3Piece();
}
};
我也试试这个:
/** Set reward listener for your app to be alerted of reward events */
AdColony.setRewardListener(listener);
AdColonyInterstitialListener AdColonyInterstitialListener = new
AdColonyInterstitialListener() {
@Override
public void onRequestFilled(AdColonyInterstitial
adColonyInterstitial) {
rewardAdColonyInterstitial = adColonyInterstitial;
}
};
AdColony.requestInterstitial("vzf20fd3c7868742bfaa",
AdColonyInterstitialListener, options);
我有这个错误:
E/AdColony [ERROR]: Expecting libadcolony.so in libs directory but it was
not found.
I/AdColony [INFO]: Configuring AdColony
E/AdColony [ERROR]: The AdColony API is not available while AdColony is
disabled.
如有任何帮助,我们将不胜感激
我必须添加
android {
/** Any other configurations here */
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
}
从这里看https://github.com/AdColony/AdColony-Android-SDK-3/wiki/Project-Setup
我正在尝试使用 adColony 实现奖励视频,但我遇到了麻烦 在文件夹 app/libs 中,我还在 lib 文件夹
中添加了 libadcolony.so adcolony.jar 版本 3.0.7在我的 activity
AdColony.configure(this, appOptions, "app83c6f9efcc25******",
"vzf20fd3c78687******");
AdColonyAdOptions options = new AdColonyAdOptions()
.enableConfirmationDialog(true)
.enableResultsDialog(true);
AdColonyRewardListener listener = new AdColonyRewardListener() {
@Override
public void onReward(AdColonyReward reward) {
/** Query the reward object for information here */
gagner3Piece();
}
};
我也试试这个:
/** Set reward listener for your app to be alerted of reward events */
AdColony.setRewardListener(listener);
AdColonyInterstitialListener AdColonyInterstitialListener = new
AdColonyInterstitialListener() {
@Override
public void onRequestFilled(AdColonyInterstitial
adColonyInterstitial) {
rewardAdColonyInterstitial = adColonyInterstitial;
}
};
AdColony.requestInterstitial("vzf20fd3c7868742bfaa",
AdColonyInterstitialListener, options);
我有这个错误:
E/AdColony [ERROR]: Expecting libadcolony.so in libs directory but it was
not found.
I/AdColony [INFO]: Configuring AdColony
E/AdColony [ERROR]: The AdColony API is not available while AdColony is
disabled.
如有任何帮助,我们将不胜感激
我必须添加
android {
/** Any other configurations here */
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
}
从这里看https://github.com/AdColony/AdColony-Android-SDK-3/wiki/Project-Setup