「Android/広告組込/Amoad」の版間の差分
提供: 初心者エンジニアの簡易メモ
(→sdkダウンロード) |
(→You need to use a Theme.AppCompat theme (or descendant) with this activity.エラーが出る場合) |
||
| 行4: | 行4: | ||
==You need to use a Theme.AppCompat theme (or descendant) with this activity.エラーが出る場合== | ==You need to use a Theme.AppCompat theme (or descendant) with this activity.エラーが出る場合== | ||
@style/AppThemeをAndroidManifest.xmlのapplicationタグに追加する | @style/AppThemeをAndroidManifest.xmlのapplicationタグに追加する | ||
| + | app/res/values/styles.xmlにAppThemeを追加 | ||
| + | |||
<application | <application | ||
android:label="@string/app_name" | android:label="@string/app_name" | ||
2018年9月27日 (木) 14:57時点における版
sdkダウンロード
https://github.com/amoad/amoad-android-sdk
You need to use a Theme.AppCompat theme (or descendant) with this activity.エラーが出る場合
@style/AppThemeをAndroidManifest.xmlのapplicationタグに追加する app/res/values/styles.xmlにAppThemeを追加
<application
android:label="@string/app_name"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher">
↓
<application
android:label="@string/app_name"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:theme="@style/AppTheme"
>
app/res/values/styles.xml
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
</resources>
reward確認
- サンプルプロジェクトを起動しinterstitialafioを動かす
- sid入力欄にamoad指定のsidを入力する
