Closed melontaro closed 10 years ago
this is my AndroidManifest.XML <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player" android:installLocation="preferExternal" android:theme="@android:style/Theme.NoTitleBar" android:versionCode="1" android:versionName="1.0"> <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true"/>
<application
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:debuggable="true">
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
<uses-permission android:name="android.permission.INTERNET"/>
</application>
I'm really sorry for the late answer, I missed the notification :(
The idea is that you have to modify the AndroidManifest.xml
generated from Unity. To generate that file I would suggest removing the AndroidManifest.xml
you created and then building your project for Android. If the build is successful you can find it at <PROJECT_DIR>/Temp/StagingArea/AndroidManifest.xml
.
Let me know if this works for you!
(Sorry!My English is so bad. ). Thanks for sharing . I use Unity4.3 build and run on my mobile,But Unity Error:"Unable to start activity! --No activity in the manifest with action MAIN and category LAUNCHER,Try launching the application manually on the device" in the end .
I want to know(Project setup
Open your app's manifest file and add the following tag as a child of the element:.......). If put AndroidManifest.XML on Assets\Plugins\Android Folder? And if should put Java project AdMob on Assets\Plugins\Android Folder?
Thank you very much!