{
  "id": "android/install-apk-failed-incompatible",
  "signature": "INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries",
  "signature_zh": "INSTALL_FAILED_NO_MATCHING_ABIS：无法提取原生库",
  "regex": "INSTALL_FAILED_NO_MATCHING_ABIS",
  "domain": "android",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The APK does not contain native libraries for the device's CPU architecture (e.g., missing arm64-v8a when device is 64-bit).",
  "root_cause_type": "generic",
  "root_cause_zh": "APK 不包含设备 CPU 架构所需的本机库（例如，设备为 64 位时缺少 arm64-v8a）。",
  "versions": [
    {
      "version": "Android 5.0+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "AGP 7.0+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Gradle 7.0+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This prevents extraction but does not add missing ABIs; app still won't install if native libs are absent.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "If the native libraries are not built for those ABIs, the APK will still lack them.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The issue is not build cache but missing native libraries for the target ABI.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Add splits block to build.gradle to generate APKs per ABI: splits { abi { enable true reset() include 'arm64-v8a', 'armeabi-v7a', 'x86_64' universalApk false } }",
      "success_rate": 0.9,
      "how": "Add splits block to build.gradle to generate APKs per ABI: splits { abi { enable true reset() include 'arm64-v8a', 'armeabi-v7a', 'x86_64' universalApk false } }",
      "condition": "",
      "sources": []
    },
    {
      "action": "Ensure NDK is installed and native libraries are built for all target ABIs via CMake or ndk-build",
      "success_rate": 0.85,
      "how": "Ensure NDK is installed and native libraries are built for all target ABIs via CMake or ndk-build",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a universal APK (no ABI split) by removing abiFilters and setting universalApk true",
      "success_rate": 0.8,
      "how": "Use a universal APK (no ABI split) by removing abiFilters and setting universalApk true",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "在 build.gradle 中添加 splits 块以按 ABI 生成 APK：splits { abi { enable true reset() include 'arm64-v8a', 'armeabi-v7a', 'x86_64' universalApk false } }",
    "确保安装了 NDK 并通过 CMake 或 ndk-build 为所有目标 ABI 构建原生库",
    "使用通用 APK（无 ABI 拆分），移除 abiFilters 并设置 universalApk true"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://developer.android.com/ndk/guides/abis",
  "official_doc_section": null,
  "error_code": "INSTALL_FAILED_NO_MATCHING_ABIS",
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.88,
  "resolvable": "true",
  "first_seen": "2024-01-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}