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

,

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.

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

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.

1 Like

Thanks @jtranchidarr , I removed OP’s Editor logs.

The easiest way to fix this issue is to create your own keystore rather than rely on the default debug keystore: Unity - Manual: Create a new keystore