I/SDKBox(17033): class name : ----com/sdkbox/plugin/PluginVungle----
I/dalvikvm(17033): Failed resolving Lcom/vungle/publisher/location/GoogleLocationClientDetailedLocationProvider; interface 2325 ‘Lcom/google/android/gms/common/GooglePlayServicesClient$ConnectionCallbacks;’
W/dalvikvm(17033): Link of class ‘Lcom/vungle/publisher/location/GoogleLocationClientDetailedLocationProvider;’ failed
E/dalvikvm(17033): Could not find class ‘com.vungle.publisher.location.GoogleLocationClientDetailedLocationProvider’, referenced from method com.vungle.publisher.inject.ConfigurablePublisherModule.a
W/dalvikvm(17033): VFY: unable to resolve new-instance 9196 (Lcom/vungle/publisher/location/GoogleLocationClientDetailedLocationProvider;) in Lcom/vungle/publisher/inject/ConfigurablePublisherModule;
I/dalvikvm(17033): Failed resolving Lcom/vungle/publisher/location/GoogleLocationClientDetailedLocationProvider; interface 2325 ‘Lcom/google/android/gms/common/GooglePlayServicesClient$ConnectionCallbacks;’
W/dalvikvm(17033): Link of class ‘Lcom/vungle/publisher/location/GoogleLocationClientDetailedLocationProvider;’ failed
D/dalvikvm(17033): DexOpt: unable to opt direct call 0xe5c6 at 0x03 in Lcom/vungle/publisher/inject/ConfigurablePublisherModule;.a
After hours of Internet searching, I figured GooglePlayServicesClient is replaced by GoogleApiClient.
Did you any any extra jar files after adding Vungle plugin from SDKBOX !!
If you simply import sdkbox import vungle it would add all the necessary jar files.
You just need to change the ID’s inside sdkbox_config.json file.
Yeap, I did add all the jar files required: PluginVungle.jar / sdkbox.jar / android-support-v4.jar / nineoldandroids-2.4.0.jar / javax.inject-1.jar / dagger-1.2.2.jar
At my first shot, I tried sdkbox import vungle command in terminal but failed anyway.
So I manually integrated vungle sdkbox
And sdkbox_config.json file is well settled so I succeeded in watching test ad in my iOS app.
I’m kind of Android novice, so there would be high chance that I missed something
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "ant.properties", and override values to adapt the script to your
# project structure.
# Project target.
target=android-23
android.library.reference.1=libs/facebook
It looks like project.properties is automatically generated.
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "ant.properties", and override values to adapt the script to your
# project structure.
# Project target.
target=android-23
android.library.reference.1=libs/google-play-services_lib
I added dependency of google play service lib folder into the existing project.
There was ‘dex loader unable to execute dex: method ID not in [0, 0xffff]: 65536’ problem after I added a new library, so removed some of obsolete and unnecessary libraries.
Anyway, compile done, executed my application, and then,
D/main(10522): cocos_android_app_init I/SDKBOX(10522): sdkbox::SdkboxCore::SdkboxCore():79= INF: Initializing sdkbox core. I/dalvikvm(10522): Failed resolving Lcom/vungle/publisher/location/GoogleLocationClientDetailedLocationProvider; interface 1958 'Lcom/google/android/gms/common/GooglePlayServicesClient$ConnectionCallbacks;' W/dalvikvm(10522): Link of class 'Lcom/vungle/publisher/location/GoogleLocationClientDetailedLocationProvider;' failed E/dalvikvm(10522): Could not find class 'com.vungle.publisher.location.GoogleLocationClientDetailedLocationProvider', referenced from method com.vungle.publisher.inject.ConfigurablePublisherModule.a W/dalvikvm(10522): VFY: unable to resolve new-instance 7950 (Lcom/vungle/publisher/location/GoogleLocationClientDetailedLocationProvider;) in Lcom/vungle/publisher/inject/ConfigurablePublisherModule; D/dalvikvm(10522): VFY: replacing opcode 0x22 at 0x0001 I/dalvikvm(10522): Failed resolving Lcom/vungle/publisher/location/GoogleLocationClientDetailedLocationProvider; interface 1958 'Lcom/google/android/gms/common/GooglePlayServicesClient$ConnectionCallbacks;' W/dalvikvm(10522): Link of class 'Lcom/vungle/publisher/location/GoogleLocationClientDetailedLocationProvider;' failed D/dalvikvm(10522): DexOpt: unable to opt direct call 0xce04 at 0x03 in Lcom/vungle/publisher/inject/ConfigurablePublisherModule;.a
Vungle really doesn’t work at all…
Vungle logs say…
W/VungleDevice(10522): error unregistering external storage state broadcast receiver - not registered
W/VungleNetwork(10522): error unregistering network broadcast receiver - not registered
W/VungleDumpDatabase(10522): error unregistering database broadcast receiver - not registered
Have you followed every step as mentioned in the Manual Integration For Android correctly.
Also, as you are using cocos2d-x v3.2, have you changed your Application.mk as mentioned in the docs.
Modify Application.mk (Cocos2d-x v3.0 to v3.2 only)
Edit <project_root>/jni/Application.mk to make sure APP_STL is defined correctly. If Application.mk contains APP_STL := c++_static, it should be changed to:
APP_STL := gnustl_static
Also, could you tell us what errors did you get while you were using sdkbox import vungle !!
didn’t Modify Application.mk though
Because the value was stated: APP_STL:=c++_shared
I tried both gnustl_static and gnustl_shared but failed for both.
The library setting in Xcode seems to be llvm based and didn’t work on gnustl libraries.