0
我正在開發一款Unity遊戲。我爲Admob使用了this插件。插頁式廣告是可點擊的,但是當我點擊橫幅時什麼也沒有發生。我試過this但沒有什麼改變。此外,我想在清單文件中添加com.unity3d.player.UnityPlayerNativeActivity
活動,我得到這個錯誤:Unity Admob Banner無法點擊
Trying to merge incompatible /manifest/application/activity[@name=com.unity3d.player.UnityPlayerNativeActivity] element:
我怎樣才能解決這個問題?任何建議都會讓我開心。謝謝。
這裏是我的清單文件:
<?xml version="1.0" encoding="utf-8"?>
<!-- This file was automatically generated by the Google Play Games plugin for Unity
Do not edit. -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.example.games.mainlibproj"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="16" />
<application>
<meta-data android:name="com.google.android.gms.games.APP_ID"
android:value="\ 123456789123" />
<meta-data android:name="com.google.android.gms.appstate.APP_ID"
android:value="\ 123456789123" />
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity android:name="com.google.example.games.pluginsupport.SignInHelperActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
<activity android:name="com.google.example.games.pluginsupport.SelectOpponentsHelperActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
<activity android:name="com.google.example.games.pluginsupport.InvitationInboxHelperActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
<activity android:name ="com.unity3d.player.UnityPlayerProxyActivity" android:launchMode="singleTask" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:screenOrientation="landscape">
<intent-filter>
<action android:name ="android.intent.action.MAIN" />
<category android:name ="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data android:name ="unityplayer.ForwardNativeEventsToDalvik" android:value ="true" />
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
</manifest>
謝謝你的回答。我使用了另一個插件,現在我的兩個廣告都可以找到。 – ugurrrrr