'apksigner' returned with error #1

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By khai86

i keep getting that massage when ever i try to test run it with my phone, tested with AVD respond to nothing… i have even manually edit the keystore name and password, still same result, i have search for solution and tried every single posible solution for 5 hours straight, even ask at discord but no respond,

game demo used : Link

tutorial followed : youtube 1 youtube 2

please send help…

:bust_in_silhouette: Reply From: uniquegamesofficial

Solve your problem in 10 simple steps

  1. Delete the Android Studio and its files!
  2. Delete the JDK folder!
  3. Delete the .keystore!
  4. Then download the latest version of Android Studio (NOT the SDK tools).
  5. After this go to OpenJDK and Download this version: 8u262-b10
  6. After Downloading the OpenJDK (.ZIP) unzip it and move it at a safe folder.
  7. Then, open the OpenJDK folder, go to bin and copy the path from the file explorer!
  8. Open Command Prompt and type cd (path)/keytool -keyalg RSA -genkeypair -alias androiddebugkey -keypass android -keystore debug.keystore -storepass android -dname "CN=Android Debug,O=Android,C=US" -validity 9999 -deststoretype pkcs12
  9. After saving the .keystore (in the path you copied by default), go to godot/Editor Settings/Exporting/Android and update the paths
  10. Finally go to Project/Export/Android/Keystores and change Debug with the path, Debug User withandroiddebugkeyand Debug Password withandroid

Now you are ready to debug on android!!!