نص الخطأ
Failure [INSTALL_FAILED_VERSION_DOWNGRADE] Package com.example.app new version 5 is older than the installed version 8
Failure [INSTALL_FAILED_VERSION_DOWNGRADE] Package com.example.app new version 5 is older than the installed version 8
قيمة versionCode في APK الذي تثبّته أقل من الموجودة على الهاتف. يرفض Android الرجوع للخلف.
adb shell dumpsys package pkg | grep versionCode.versionCode في build.gradle فوقه.adb install -r -d app.apk (لملفات APK القابلة للتصحيح).versionCode أعلى.adb shell dumpsys package com.example.app | grep versionCode adb install -r -d app.apk # build.gradle: versionCode = 9
زد versionCode تلقائيًا في CI (مثلًا من رقم البناء).
المؤلف والترخيص: Nibras Code