Unity Uploaded an Apk That Is Not Signed

Exporting an Android project

Building for Android

This folio contains instructions on how to build your Unity application for Android likewise equally considerations to be enlightened of when yous practise. For data on the build process for Android and the tools Unity uses, see How Unity builds Android applications.

Instead of building your application, you can besides consign the Unity project as a Gradle An Android build system that automates several build processes. This automation means that many common build errors are less likely to occur. More info
See in Glossary
project and import that into Android Studio. This is useful if you want more control over the build pipeline, want to see or modify the Android App Manifest that Unity generates for your application, or integrate Unity-powered features into another Android application. For more data, run across Exporting an Android project.

Some digital distribution services that host Android applications have particular requirements that tin can alter the build process. For example, Google Play requires your application to be an Android App Bundle (AAB) and non an APK. If y'all are targeting a specific digital distribution service with your build, see the documentation for that Digital distribution service first to check if the requirements differ.

Configuring the build

Before you create a build, configure your project's settings then that Unity builds the application with the runtime settings and build system properties you lot want. There are two sets of settings that configure a Unity build:

  • Player SettingsSettings that let you set various player-specific options for the last game built by Unity. More info
    See in Glossary
    : Configure runtime and build settings for the awarding.
  • Build Settings: Configure build system settings.

Publishing format

Unity can build Android applications in the following publishing formats:

  • APK
  • Android App Bundle (AAB)

By default, Unity builds Android applications in the APK publishing format. To make Unity build the Android application as an AAB:

  1. Select File > Build Settings.
  2. From the list of platforms in the Platform pane, select Android.
  3. Enable Build App Bundle (Google Play). If y'all want to consign the project and build it in Android Studio, enable Export Project then enable Export for App Package.

Building

To build your Unity application for Android:

  1. Select File > Build Settings.
  2. From the list of platforms in the Platform pane, select Android.
    Note: If Android is greyed out, set up your projection for Android evolution.
  3. Disable Consign Project. If you lot want to export your project for Android Studio instead of building it inside Unity, see Exporting your Android projection.
  4. Click either Build or Build and Run.
  5. Select the destination for Unity to place the application. If you selected Build and Run, Unity too installs the application on the Android device connected to your reckoner.
  6. Click Save. This starts the build.

If you selected Build and Run, when Unity creates the build:

  • If the Divide Awarding Binary Player Setting is enabled and the Build App Packet (Google Play) Build Setting is disabled, Unity builds Android expansion files (OBB) for the APK and places them in the right location on your device.
  • If the Development Build A evolution build includes debug symbols and enables the Profiler. More than info
    Meet in Glossary
    Build Setting is enabled, Unity likewise sets up a Profiler A window that helps you to optimize your game. It shows how much fourth dimension is spent in the various areas of your game. For example, it can written report the per centum of time spent rendering, animating, or in your game logic. More info
    Encounter in Glossary
    tunnel and enables CheckJNI before it launches your application.

Tip: After you specify the output path the offset time, you can use Ctrl+B (macOS: Cmd+B) keyboard shortcut to build and run the application.

Distribution size

Some digital distribution services have a limit on the initial install size of your application. Unity includes the following methods to assistance you to optimize the install size:

  • Splitting APKs by target architecture.
  • Splitting the application binary.
  • CompressionA method of storing data that reduces the amount of storage infinite it requires. Come across Texture Compression, Animation Compression, Audio Pinch, Build Pinch.
    Encounter in Glossary
  • Minification.

Splitting APKs past target architecture

If your output application uses APK format, the Split APKs by target architecture Player Setting optimizes the application download and installation size. Instead of producing one APK that contains binaries for every target CPU architecture selected in the Target Architectures Player Setting, Unity creates a split up APK for each CPU architecture. You lot can upload this set of APKs to digital distribution services which serve the APK with the correct target CPU architecture to each device that downloads your awarding.

This is primarily a Google Play feature and may non piece of work for other digital distribution services. For more data, see Multiple APK support.

Notation: Google Play requires new applications to exist AABs and not APKs. When y'all upload an AAB, Google Play automatically generates and serves optimized APKs for each device configuration.

Splitting the awarding binary

You can split your output awarding to brand the initial install size smaller. The device tin can install a lighter version of your awarding and and so download assets separately. If your output awarding uses APK format, Unity can split the application into a main APK and an expansion file (OBB). For more data see APK expansion files. If your output application uses AAB format, Unity tin separate the application into a base of operations module and asset packs. For more information, encounter Play Nugget Commitment.

To carve up the awarding binary:

  1. Select Edit > Project Settings.
  2. In the Project settings window, select the Thespian tab, and then open Android Actor Settings:
  3. In the Publishing Settings section, enable Carve up Awarding Binary.

Compression

You tin can change the method Unity uses to compress resource files for the application. This tin reduce the size of the application just can increment loading times if the method means data takes longer to decompress.

For more information, come across Compression Method.

Minification

Y'all tin utilize ProGuard minification to decrease the size of the application and improve performance.

To enable ProGuard minification:

  1. Select Edit > Project Settings.
  2. In the Project settings window, select the Player tab, and so open Android Thespian Settings:
  3. In the Publishing Settings section, under Minify enable either Release, Debug, or both depending on the type of build you desire to minify.

Notation: ProGuard might strip out important code that your application relies on, and so bank check whatever builds that you minify.

For more control over the minification process, generate a custom proguard.txt file and configure information technology to specify what not to strip. To generate the file, select Custom Proguard File in the Publishing Settings section. This generates the proguard.txt file in your projection's Assets/Plugins/Android folder. For information on how to configure ProGuard minification, come across the ProGuard documentation.

Exporting an Android projection

crabillranduce.blogspot.com

Source: https://docs.unity3d.com/Manual/android-BuildProcess.html

0 Response to "Unity Uploaded an Apk That Is Not Signed"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel