「Cocos2dx/広告組込/nend」の版間の差分
提供: 初心者エンジニアの簡易メモ
(→android組み込み) |
(→android組み込み) |
||
| (同じ利用者による、間の2版が非表示) | |||
| 行13: | 行13: | ||
include ':SampleNend' | include ':SampleNend' | ||
project(':SampleNend').projectDir = new File(settingsDir, 'app') | project(':SampleNend').projectDir = new File(settingsDir, 'app') | ||
| − | #proj.android-studio/app/build. | + | #proj.android-studio/app/build.gradleに以下':nend-sdk-3.3.0'を追加 |
dependencies { | dependencies { | ||
compile fileTree(dir: 'libs', include: ['*.jar']) | compile fileTree(dir: 'libs', include: ['*.jar']) | ||
compile project(':libcocos2dx') | compile project(':libcocos2dx') | ||
+ compile project(':nend-sdk-3.3.0') | + compile project(':nend-sdk-3.3.0') | ||
| + | + compile "com.android.support:cardview-v7:+" | ||
| + | + compile 'com.android.support:percent:23.0.0' | ||
} | } | ||
2017年2月24日 (金) 18:53時点における最新版
公式
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'
}
