Cocos2dx/広告組込/nend
提供: 初心者エンジニアの簡易メモ
公式
https://github.com/fan-ADN/nendSDK-cocos2d-x/wiki/%E7%B5%84%E8%BE%BC%E3%81%BF%E6%96%B9%E6%B3%95
nendのsdkをダウンロード
管理画面からcocosのsdkをdownloadする
android組み込み
- 自作のcocos開発ディレクトリのproj.android-studioをandroid-studioで開く
- file/new/new moduleでaarを選択し、"NendModule/NendSdk/Android/nend-sdk-3.3.0.aar"を選択
- settings.gradleに以下':nend-sdk-3.3.0'追加されてることを確認
include ':libcocos2dx', ':nend-sdk-3.3.0'
project(':libcocos2dx').projectDir = new File(settingsDir, '../cocos2d/cocos/platform/android/libcocos2dx')
include ':SampleNend'
project(':SampleNend').projectDir = new File(settingsDir, 'app')
- proj.android-studio/app/build.gradleに以下':nend-sdk-3.3.0'を追加
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':libcocos2dx')
+ compile project(':nend-sdk-3.3.0')
+ compile "com.android.support:cardview-v7:+"
+ compile 'com.android.support:percent:23.0.0'
}
