AdMob CLI Integration - Failed to patch file AppDelegate.cpp

AdMob CLI Integration - Failed to patch file AppDelegate.cpp
0.0 0

#1

Ok

Cocos2d-x 3.14.1 using NDK r10c
SDKBOX (just downloaded, reports v1.0.1.18 in terminal) unzipped and added folder to PATH

Add to bash_profile…
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

Changed to my [Project] root directory.

$ sdkbox import admob --dryrun[Enter]

… lost of lines!!! …

no obvious errors though the process reports:
patch_file …/lib/Cocos2dxActivity.java None
patch_file …/Classes/AppDelegate.cpp None

Run again

$ sdkbox import admob [Enter]

process reports…
downloading package sdkbox-googleplayservices_v2.3.11.1.tar.gz
[##…##] 100%
Installation Successful :slight_smile:
downloading package sdkbox-admob_v2.3.11.1.tar.gz
[##…##] 100%
failed to patch file AppDelegate.cpp

Do I now just try a manual setup? or what?

Thanks


#2

Failed to patch AppDelegate.cpp is fine, that just means you have to initialize admob yourself.


#3

Thanks, I assume that means I just go through the manual setup process.

Cheers.


#4

Hello, trying to install iap under cocos2d-x 3.14, i get this error:

sdkbox import -b iap -p <path to my game>
[..]
 Copyright (c) 2016 SDKBOX Inc. v1.0.1.18
[..]
 downloading package sdkbox-iap_v2.3.11.3.tar.gz
[###################################] 100%
 failed to patch file AppDelegate.cpp
 Please reference the online documentation to finish the integration:
http://sdkbox-doc.github.io/en/plugins/iap/v3-cpp/
 Some installation steps failed.
 Please refer to the online documentation, for instructions on how to complete the installation manually.
 Installation completed with errors :|

¿Is this also fine?


#5

It is fine.


#6

Thanks @nite !