'Unable to generate apk because of invalid keystore format

I have done all the steps correctly for generating apk file for my react native project as it is written in the documentation. But unfortunatly I am getting the below error. Although I have deleted my keystore and then generated a new one still I am getting this error.

Task :app:packageRelease FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.7.1/userguide/command_line_interface.html#sec:command_line_warnings 211 actionable tasks: 35 executed, 176 up-to-date

FAILURE: Build failed with an exception.

What went wrong: Execution failed for task ':app:packageRelease'.

Multiple task action failures occurred: A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable com.android.ide.common.signing.KeytoolException: Failed to read key walk_al from store "E:\Project\React Native Projects\walk_tracker\android\app\walk.keystore": Invalid keystore format A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable com.android.ide.common.signing.KeytoolException: Failed to read key walk_al from store "E:\Project\React Native Projects\walk_tracker\android\app\walk.keystore": Invalid keystore format A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable com.android.ide.common.signing.KeytoolException: Failed to read key walk_al from store "E:\Project\React Native Projects\walk_tracker\android\app\walk.keystore": Invalid keystore format A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable com.android.ide.common.signing.KeytoolException: Failed to read key walk_al from store "E:\Project\React Native Projects\walk_tracker\android\app\walk.keystore": Invalid keystore format A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable com.android.ide.common.signing.KeytoolException: Failed to read key walk_al from store "E:\Project\React Native Projects\walk_tracker\android\app\walk.keystore": Invalid keystore format

And this is my package.json file:

{
  "name": "walk_tracker",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint ."
  },
  "dependencies": {
    "@react-native-async-storage/async-storage": "^1.15.17",
    "@react-native-community/masked-view": "^0.1.11",
    "@react-navigation/native": "^6.0.6",
    "@react-navigation/native-stack": "^6.2.5",
    "@turf/helpers": "^6.5.0",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-native": "0.64.3",
    "react-native-accurate-step-counter": "^2.0.4",
    "react-native-elements": "^3.4.2",
    "react-native-gesture-handler": "2.1.1",
    "react-native-reanimated": "^2.4.1",
    "react-native-safe-area-context": "^3.4.1",
    "react-native-screens": "~3.10.1",
    "react-native-shake": "^5.1.1",
    "react-native-splash-screen": "^3.3.0",
    "react-native-vector-icons": "^9.1.0",
    "react-native-web": "0.17.1",
    "react-redux": "^7.2.6",
    "redux": "^4.1.2"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/runtime": "^7.12.5",
    "@react-native-community/eslint-config": "^2.0.0",
    "babel-jest": "^26.6.3",
    "eslint": "7.14.0",
    "jest": "^26.6.3",
    "metro-react-native-babel-preset": "^0.64.0",
    "react-test-renderer": "17.0.1"
  },
  "jest": {
    "preset": "react-native"
  }
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source