Skip to content

Instantly share code, notes, and snippets.

@airicbear
Created November 23, 2021 00:33
Show Gist options
  • Save airicbear/daf52f94c779fd1a2c86795ce4c2988d to your computer and use it in GitHub Desktop.
Save airicbear/daf52f94c779fd1a2c86795ce4c2988d to your computer and use it in GitHub Desktop.
Unity APK installation error

Build Error in Unity APKs

If you get an error trying to install your Unity build on Android saying App not installed, then you need to change your project's package name in the Player Settings. To do this, go to File > Build Settings > Player Settings... > Player > Other Settings and find the Identification section. Make sure Override Default Package Name is checked and then change the value of Package Name to something like com.example.mygame.

Additionally, you may want to change Install Location to Automatic.

Relevant Error Messages

From adb logcat you might see

TaskPersister: File error accessing recents directory (directory doesn't exist?).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment