1. Open unity project
2. Edit > Project Settings > Player > Publishing Settings
3. In Publishing Settings, Tick "Custom Main Manifest"
4. Then folder plugins will be show in Assets
5. Goto Assets > Plugins > Android Manifest.xml
6. After
android:theme="@style/UnityThemeSelector"
Add
android:exported="true"
Then file will be like this
<?xml version="1.0" encoding="utf-8"?>
<!-- GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN-->
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.unity3d.player"
xmlns:tools="http://schemas.android.com/tools">
<application>
<activity android:name="com.unity3d.player.UnityPlayerActivity"
android:theme="@style/UnityThemeSelector"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
</activity>
</application>
</manifest>
Tidak ada komentar:
Posting Komentar