Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Bug > Failed to apply plugin 'com.android.internal.application'. > Failed to get default debug keystore

Discussion in 'AR' started by enochwong77777, May 15, 2024.

  1. enochwong77777

    enochwong77777

    Joined:
    May 14, 2024
    Posts:
    2
    FAILURE: Build failed with an exception.

    * Where:
    Build file 'E:\UnityProjects\Test3\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\build.gradle' line: 1

    * What went wrong:
    A problem occurred evaluating project ':launcher'.
    > Failed to apply plugin 'com.android.internal.application'.
    > Failed to get default debug keystore location.

    * Try:
    > Run with --stacktrace option to get the stack trace.
    > Run with --info or --debug option to get more log output.
    > Run with --scan to get full insights.

    * Get more help at https://help.gradle.org



    I tried
    1. reinstalling Unity
    2. generating a new keystore inside E:\UnityHub\UnityEditor\2023.2.20f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools
    3. giving user full access to the debug.keystore file
    4. creating new project and build



    Below is the full Editor Log:

    Edit: Redacted
     
    Last edited by a moderator: May 16, 2024
  2. jtranchidarr

    jtranchidarr

    Joined:
    Jan 4, 2023
    Posts:
    1
    FYI, it look like your post has a lot of private API keys in environment variables. Not sure you want those in a public post.
     
    andyb-unity likes this.
  3. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,151