Sabtu, 07 Januari 2023

Add Android Exported in Unity - Not able to publish on Google Play / android:exported / Android 12

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

[SOLVED] unity Failed to update Android SDK package list

  Hassan-Kanso Joined: Jun 10, 2014 Posts: 11 fixed by unchecking all checboxes bellow and check them again P.S : you find it in unity under...