Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Gradle Build fails (cannot recover key?)

Discussion in 'Android' started by danielrconrad, Sep 7, 2023.

  1. danielrconrad

    danielrconrad

    Joined:
    Apr 19, 2021
    Posts:
    15
    I'm trying to build an android game but I repeatedly get errors from Gradle.
    Specifically it writes:

    FAILURE: Build failed with an exception.
    * What went wrong:
    Execution failed for task ':launcher:signReleaseBundle'.
    > A failure occurred while executing com.android.build.gradle.internal.tasks.FinalizeBundleTask$BundleToolRunnable
    > Failed to read key vertical scooter from store "C:\Users\Danny\PooterScooter\Assets\VertScoot.keystore": Cannot recover key

    I'm pretty sure my keystore file is correct and the password is correct or it wont even start a build so i'm a little confused. Is there something I'm missing here?
     
  2. danielrconrad

    danielrconrad

    Joined:
    Apr 19, 2021
    Posts:
    15
    really need help with this one. I got it to finish a build when it I make it a development build, but otherwise I cant get anywhere. Maybe something is wrong with the key or Gradle?
     
  3. manugil

    manugil

    Unity Technologies

    Joined:
    Jan 13, 2020
    Posts:
    38
    Which Unity version are you using?