1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question Rapid_Debug.apk: Failure (Solved)

Discussion in 'Android Questions' started by Shelby, Aug 4, 2019.

  1. Shelby

    Shelby Active Member Licensed User

    Starting to change an app I have (not yet registered) I copied and pasted my app into a new B4A container and after I run the AVD manager and start to run the new app, I get the following error.
    B4A Version: 9.30
    Java Version: 
    Parsing code.    (
    Building folders structure.    (
    Compiling code.    (
    Compiling layouts code.    (
    Organizing libraries.    (
        (AndroidX SDK)
    Generating R 
    file.    (0.16s)
    Compiling debugger engine code.    (
    Compiling generated Java code.    (
    Convert byte code - optimized dex.    (
    Packaging files.    (
    Copying libraries resources    (
    Signing package 
    file (debug key).    (0.62s)
    file.    (0.85s)
    file to device.    Error
    adb: failed 
    to install AreaWalls_RAPID_DEBUG.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]
    I changed the manifest editor target version to read: 27, then 28 and still no success. Is there some other problem I don't see?
  2. Shelby

    Shelby Active Member Licensed User

    I now see that I haven't transferred my designer over to the experimental project. I'll try that while I await some merciful soul who might help me.
  3. KMatle

    KMatle Expert Licensed User

    I assume you started a new project and the version was lower than the one installed. Android checks and prevents that (e.g. installed is V5 and you want to install V1).
    Shelby and Erel like this.
  4. yfleury

    yfleury Active Member Licensed User

    Just uninstall the app on your device and install the new one

    Change version in new app to the same version number or higher in your app
    Shelby likes this.
  5. Shelby

    Shelby Active Member Licensed User

    Thanks, I'm not sure I understand but I'll try. I'm using the emulator (B4A). Oh!!! Yes I remember that. Great!
    I assume that the version # is in the manifest editor?
  6. yfleury

    yfleury Active Member Licensed User

    Check in Main activity look for #Region Project Attributes and for #VersionCode:
    Shelby and Erel like this.
  7. Shelby

    Shelby Active Member Licensed User

    Oh yes, it's been months since I had to change one of these.

    Initially thinking that changing the version code worked was a mistake by me. I had to first find the highest version code that I had used before. After adding 1 to that number I finally had success.

    Thanks again yfleury
    Last edited: Aug 4, 2019
    yfleury likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice