(Xamarin.Android) admob 광고에러 - missing adactivity with android.configchanges in androidmanifest.xml
C#/Xamarin Maui 2018. 1. 12. 16:42728x90
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>
<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
'C# > Xamarin Maui' 카테고리의 다른 글
(Xamarin.Forms) 에러 - "Xamarin.Forms.Build.Tasks.GetTasksAbi" 작업을 로드할 수 없습니다. (0) | 2018.01.28 |
---|---|
(Xamarin.Android) Service 구현하기 (0) | 2018.01.22 |
(Xamarin.Android) 에러 - Timeout exceeded getting exception details (0) | 2018.01.11 |
(Xamarin.Android) 오류 "LinkAssemblies" 작업에서 예기치 않은 오류가 발생했습니다. (0) | 2018.01.11 |
How to use Syncfusion Community Edition in Xamarin Forms - 링크 (0) | 2018.01.06 |