{
  "id": "flutter/gradle-task-assemble-release-signature-mismatch",
  "signature": "Gradle task assembleRelease failed with exit code 1: Execution failed for task ':app:signReleaseBundle' > Key was created with errors: Key not found: /path/to/keystore",
  "signature_zh": "Gradle任务assembleRelease失败，退出码1：':app:signReleaseBundle'任务执行失败 > 密钥创建错误：未找到密钥库文件",
  "regex": "Execution failed for task ':app:signReleaseBundle' > Key was created with errors: Key not found:.*",
  "domain": "flutter",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The keystore file specified in build.gradle for signing the release bundle does not exist at the given path.",
  "root_cause_type": "generic",
  "root_cause_zh": "build.gradle中指定的用于签署发布包的密钥库文件在给定路径下不存在。",
  "versions": [
    {
      "version": "Flutter 3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Android Gradle Plugin 8.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Gradle 8.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The keystore path is hardcoded and cleaning the build does not create the keystore file.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The error is about the file path, not the password; password changes are irrelevant.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The keystore file is not inside the build folder; it's a separate file that must exist externally.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Verify the keystore path in android/app/build.gradle and ensure the file exists. Example: storeFile file('../keystores/release.jks') should point to an existing file. Move the keystore to the correct location or update the path.",
      "success_rate": 0.9,
      "how": "Verify the keystore path in android/app/build.gradle and ensure the file exists. Example: storeFile file('../keystores/release.jks') should point to an existing file. Move the keystore to the correct location or update the path.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If using environment variables, check that the variable is set correctly. Run 'echo $KEYSTORE_PATH' in terminal to confirm. In build.gradle, use storeFile file(System.getenv('KEYSTORE_PATH')).",
      "success_rate": 0.85,
      "how": "If using environment variables, check that the variable is set correctly. Run 'echo $KEYSTORE_PATH' in terminal to confirm. In build.gradle, use storeFile file(System.getenv('KEYSTORE_PATH')).",
      "condition": "",
      "sources": []
    },
    {
      "action": "Generate a new keystore if the old one is lost: 'keytool -genkey -v -keystore release.jks -keyalg RSA -keysize 2048 -validity 10000 -alias release' and update build.gradle accordingly.",
      "success_rate": 0.95,
      "how": "Generate a new keystore if the old one is lost: 'keytool -genkey -v -keystore release.jks -keyalg RSA -keysize 2048 -validity 10000 -alias release' and update build.gradle accordingly.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Verify the keystore path in android/app/build.gradle and ensure the file exists. Example: storeFile file('../keystores/release.jks') should point to an existing file. Move the keystore to the correct location or update the path.",
    "If using environment variables, check that the variable is set correctly. Run 'echo $KEYSTORE_PATH' in terminal to confirm. In build.gradle, use storeFile file(System.getenv('KEYSTORE_PATH')).",
    "Generate a new keystore if the old one is lost: 'keytool -genkey -v -keystore release.jks -keyalg RSA -keysize 2048 -validity 10000 -alias release' and update build.gradle accordingly."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2024-03-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}