AdColony Ads won't appear

AdColony Ads won't appear
0

I finally got AdColony to compile and no runtime errors on Android.

But for some odd reason I can’t see any ads after I make a show() call.

I double checked that my info in sdkbox_config.json is correct.

What can be the cause of this?

Thanks!

Here is my log if it will help maybe:

Capturing and displaying logcat messages from application. This behavior can be disabled in the “Logcat output” section of the “Debugger” settings page.
D/dalvikvm: Late-enabling CheckJNI
D/dalvikvm: Trying to load lib /data/app-lib/com.game.firerise-10/libjs.so 0x41de5668
D/dalvikvm: Added shared lib /data/app-lib/com.game.firerise-10/libjs.so 0x41de5668
No JNI_OnLoad found in /data/app-lib/com.game.firerise-10/libjs.so 0x41de5668, skipping init
Trying to load lib /data/app-lib/com.game.firerise-10/libadcolony.so 0x41de5668
D/dalvikvm: Added shared lib /data/app-lib/com.game.firerise-10/libadcolony.so 0x41de5668
E/AdColony: JNI_OnLoad
D/dalvikvm: Trying to load lib /data/app-lib/com.game.firerise-10/libMyGame.so 0x41de5668
D/dalvikvm: Added shared lib /data/app-lib/com.game.firerise-10/libMyGame.so 0x41de5668
D/main: cocos_android_app_init
D/Cocos2dxHelper: isSupportLowLatency:false
D/Cocos2dxHelper: sampleRate: 44100, framesPerBuffer: 1024
D/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp: nativeSetAudioDeviceInfo: sampleRate: 44100, bufferSizeInFrames: 1024
D/EngineDataManager.cpp: nativeSetSupportOptimization: 0
I/SDKBOX_CORE: Sdkbox Droid starting.
Sdkbox got VM.
Sdkbox jni initialized.
D/SDKBOX_CORE: Loaded 0 tracking info _elements.
D/Cocos2dxActivity: onResume()
D/AudioFocusManager: requestAudioFocus succeed
I/dalvikvm: Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.GooglePlayServicesUtilLight.isUninstalledAppPossiblyUpdating
W/dalvikvm: VFY: unable to resolve virtual method 697: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0012
I/dalvikvm: Could not find method android.content.pm.PackageManager.isInstantApp, referenced from method com.google.android.gms.common.wrappers.PackageManagerWrapper.isCallerInstantApp
W/dalvikvm: VFY: unable to resolve virtual method 702: Landroid/content/pm/PackageManager;.isInstantApp (Ljava/lang/String;)Z
D/dalvikvm: VFY: replacing opcode 0x6e at 0x002d
D/GC: <tid=3065> Vichard print openGL ES version: 2
<tid=3065> OES20 ===> GC Version : GC Ver rls_pxa988_KK44_GC13.30
D/OpenGLRenderer: Enabling debug mode 0
I/Choreographer: Skipped 42 frames! The application may be doing too much work on its main thread.
D/Cocos2dxActivity: onWindowFocusChanged() hasFocus=true
D/GC: <tid=3084> Vichard print openGL ES version: 2
<tid=3084> OES20 ===> GC Version : GC Ver rls_pxa988_KK44_GC13.30
I/Choreographer: Skipped 34 frames! The application may be doing too much work on its main thread.
D/cocos2d-x debug info: {
cocos2d.x.version: cocos2d-x-3.17
cocos2d.x.compiled_with_gl_state_cache: true
gl.supports_S3TC: true
cocos2d.x.build_type: DEBUG
gl.supports_vertex_array_object: false
cocos2d.x.compiled_with_profiler: false
gl.renderer: Vivante GC1000
gl.vendor: Vivante Corporation
gl.version: OpenGL ES 2.0
gl.supports_ATITC: false
gl.supports_ETC1: true
gl.supports_OES_packed_depth_stencil: true
gl.max_texture_units: 12
gl.supports_PVRTC: false
gl.max_texture_size: 8192
gl.supports_NPOT: true
gl.supports_OES_map_buffer: true
gl.supports_OES_depth24: true
gl.supports_discard_framebuffer: true
gl.supports_BGRA8888: false
}
D/EngineDataManager.cpp: setAnimationInterval by game: 0.0222
JNI setAnimationInterval: 0.022222
E/File: fail readDirectory() errno=2
I/SDKBOX_CORE: Initialization request for plugin: ‘com/sdkbox/plugin/PluginAdColony’
I/dalvikvm: Could not find method android.app.Activity.isInMultiWindowMode, referenced from method com.adcolony.sdk.aw.g
W/dalvikvm: VFY: unable to resolve virtual method 69: Landroid/app/Activity;.isInMultiWindowMode ()Z
D/dalvikvm: VFY: replacing opcode 0x6e at 0x000c
D/dalvikvm: Trying to load lib /data/app-lib/com.game.firerise-10/libjs.so 0x41de5668
Shared lib ‘/data/app-lib/com.game.firerise-10/libjs.so’ already loaded in same CL 0x41de5668
Trying to load lib /data/app-lib/com.game.firerise-10/libadcolony.so 0x41de5668
Shared lib ‘/data/app-lib/com.game.firerise-10/libadcolony.so’ already loaded in same CL 0x41de5668
I/AdColony [INFO]: Configuring AdColony
D/dalvikvm: GC_FOR_ALLOC freed 1898K, 30% free 6529K/9312K, paused 25ms, total 25ms
D/AdColony [TRACE]: Requesting AdColony interstitial advertisement.
Requesting AdColony interstitial advertisement.
D/cocos2d-x debug info: create rendererRecreatedListener for GLProgramState
create rendererRecreatedListener for GLProgramState
D/cocos2d-x debug info: create rendererRecreatedListener for GLProgramState
D/EngineDataManager.cpp: setAnimationInterval by engine: 0.0222
JNI setAnimationInterval: 0.022222
D/cocos2d-x debug info: cocos2d: QuadCommand: resizing index size from [-1] to [2560]
D/dalvikvm: GC_FOR_ALLOC freed 2015K, 31% free 6556K/9460K, paused 21ms, total 22ms
D/cocos2d-x debug info: create rendererRecreatedListener for GLProgramState
I/SensorManagerA: getReportingMode :: sensor.mType = 1
D/SensorManager: registerListener :: 0, BMA254, 20000, 0,
D/cocos2d-x debug info: create rendererRecreatedListener for GLProgramState
D/cocos2d-x debug info: create rendererRecreatedListener for GLProgramState
D/cocos2d-x debug info: create rendererRecreatedListener for GLProgramState
D/cocos2d-x debug info: create rendererRecreatedListener for GLProgramState
D/dalvikvm: GC_FOR_ALLOC freed 1988K, 31% free 6607K/9488K, paused 24ms, total 24ms

@yinjimmy I think it has to do with this line

Because I looked at your solution from this post and the log seems to differ by this line.

Any help would be appreciated, thanks!

I’ll check with cocos2d-x-3.17 and plugin adcolony 2.4.3.3.

thanks for your help!

when you import adcolony, do you get error:

failed to patch file CMakeLists.txt

need to do some fix with manually steps Manual integration SDKBox plugin to support CMake

or using staging version

~/test/cpp317 [master] $ sdkbox import adcolony --staging --nohelp
  _______ ______  _     _ ______   _____  _     _
  |______ |     \ |____/  |_____] |     |  \___/
  ______| |_____/ |    \_ |_____] |_____| _/   \_
 Copyright (c) 2016-2019 SDKBOX Inc. v1.0.3.0
  _                          _
 |o|  o ,      o_,'   o_,   |o|
 |O| <%'.   _`'_ ===  <\_   |O|
 (0) /  |  (_)`-' |    / |  (0)
 p----------------------------g
 downloading package sdkbox-googleplayservices_v2.4.3.9.tar.gz
 Installation Successful :)
 downloading package sdkbox-adcolony_v2.4.3.9.tar.gz
 Please reference the online documentation to finish the integration:
http://sdkbox-doc.github.io/en/plugins/adcolony/v3-cpp/

# iOS
https://github.com/AdColony/AdColony-iOS-SDK-3/wiki/Xcode-Project-Setup#configuring-url-schemes
https://github.com/AdColony/AdColony-iOS-SDK-3/wiki/Xcode-Project-Setup#configuring-privacy-controls

# Android
1. It's safe to remove libjs.so and libadcolony.so
2. remove `LOCAL_SHARED_LIBRARIES := libadcolonyso libjsso` with `Android.mk`


 Installation Successful 

When I use sdkbox import adcolony it shows me this error:

#FATAL: Failed to find source file /home/moshe/.sdkbox/plugins/sdkbox-adcolony_v2.4.3.3/plugin/android/jni/PluginAdcolony
Installation failed :frowning:

I’m having so many errors.

I’m switching to https://chocolateplatform.com/ seems promising, I just spoke to them :slight_smile:

It seems your downloaded files has broken, plz re-download plugin with:

sdkbox import adcolony --forcedownload --forcecopy

Still getting the same error :frowning: