728x90

missing adactivity with android.configchanges in androidmanifest.xml

광고를 붙일때 위와같은 에러가 광고창에 찍혔다.

확인해 보니 AndroidManifest.xml 파일에 코드를 추가해 주어야한다.

전체구조는 아래 와 같다 굵은색이 추가한 부분이고 기본적으로 permission 도 아래처럼 주어야한다.

 

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="dustSeocheon.dustSeocheon" android:installLocation="auto">
 <uses-sdk android:minSdkVersion="21" />
 <uses-permission android:name="android.permission.INTERNET" />
 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
 <application android:allowBackup="true" android:label="@string/app_name">
    <!-- Google Mobile Ads Activity -->
    <activity android:name="com.google.android.gms.ads.AdActivity"
              android:label="@string/app_name"
              android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
    </activity>
    <!-- Denote the referenced Google Play services version -->
    <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />

  </application>
</manifest>
728x90
Posted by kjun.kr
,