Home > database >  Unity Error on m1 mac : " Failed to read key from keystore: invalid keystore format"
Unity Error on m1 mac : " Failed to read key from keystore: invalid keystore format"

Time:02-04

I am new to unity I installed the latest unity hub and unity (which are not apple silicon optimized). I then installed the android SDK through unity editor itself and tried to run a sample 3d project as it is.

It keeps showing error : " Failed to read key from keystore: invalid keystore format : /Users/anshsachdeva/.android/debug.keystore"

Does anyone know about this? I am not even trying to generate a signed apk! found many questions for Release build issues but all i am trying is to create a debug build.

CodePudding user response:

So I believe the issue is with how unity creates an environment for its projects. when I installed the Android SDK via the editor, instead of using my current JDK/android studio tools/NDK/gradle, it installed a fresh copy of all these tools. However, in settings, I found that the Keystore path was still /Users/anshsachdeva/".

I am guessing that Android SDK needs to validate a Keystore every time it generates a build. And since the SDK of my "Android Studio" created that Keystore, the SDK from "Unity Editor" was not finding it valid.

I simply deleted the debug Keystore there and voila! the unity app gets created and runs successfully

Kinda awkward but every time I switch my software, i will have to repeat this process :/

  •  Tags:  
  • Related