Skip to content

Crash on Android with Unity6 #67

@MarkoRitter

Description

@MarkoRitter

As soon as I use the Package Manager to pull from this repo, a newly built app crashes on startup on the Quest 3.

logcat.txt

As soon as I remove the package and rebuild, it works again.

I suspected that it has something to do with the AndroidManifest.xml, but that is not the case - it does not change while this package is included.

edit: The workaround was to toggle from the Unity6 default of GameActivity to Activity in Project Settings -> Player. It consequently needs an aligned activity in the main AndroidManifest.xml

image

        <activity android:name="com.unity3d.player.UnityPlayerActivity"
                  android:theme="@style/UnityThemeSelector">
            <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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions