locked
Can't install the application to Microsoft Android phone simulator RRS feed

  • Question

  • User395381 posted

    I used Azure DevOps to build a simple Android application and later passed to App center for apk downloading. After I drag and drop the apk to the Microsoft Android phone simulator, I get an error message:

    The APK failed to install.
    Error: Could not parse error string
    

    I am aware of this thread in stackflow:

    https://stackoverflow.com/questions/51791960/the-apk-failed-to-install-error-could-not-parse-error-string#:~:text=For%20me%2C%20On%20Android%209,rid%20of%20the%20parse%20error.&text=Open%20%22Play%20Store%22%20application%20%3D,Scan%20device%20for%20security%20threats%22.
    

    I have made sure the build is for x86 and have downloaded the latest SDK Manager, but still I couldn't install the SDK.

    Any help will be greatly appreciated.

    Tuesday, July 14, 2020 4:55 PM

Answers

  • User382871 posted

    how I can change the version number in Azrue DevOps build? I looked at all the options for XamarinAndroid and didn't find one for version number Try to install Mobile App Tasks for iOS and Android extension for the Azure DevOps. Then you'll get the task "Bump Version" (for Andriod and iOS).

    You could change the versionCode and versionName of the application at the runtime.

    Check the link: https://stackoverflow.com/a/54038126/11083277

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, July 16, 2020 2:11 AM
  • User395381 posted

    I finally successfully installed the app after signing the app, and change the .csproj file to have platform =x86

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, July 22, 2020 7:27 PM

All replies

  • User382871 posted

    Did you install the application on the enulator before? If the same application is already installed with the same version on the Emulator, then it won't get update/install. the error will be thrown.

    Try the following tips: * Uninstall the old APK from Emulator, then drag & drop the new APK to install the application * Change the version number from project->Properties, then reinstall the apk.

    Refer to: https://stackoverflow.com/a/52887518/11083277

    Wednesday, July 15, 2020 7:53 AM
  • User395381 posted

    I did uninstall the application on the emulator, and I got the same error message trying to install it.

    Also, do you know how I can change the version number in Azrue DevOps build? I looked at all the options for XamarinAndroid and didn't find one for version number

    Thanks!

    Wednesday, July 15, 2020 3:24 PM
  • User382871 posted

    how I can change the version number in Azrue DevOps build? I looked at all the options for XamarinAndroid and didn't find one for version number Try to install Mobile App Tasks for iOS and Android extension for the Azure DevOps. Then you'll get the task "Bump Version" (for Andriod and iOS).

    You could change the versionCode and versionName of the application at the runtime.

    Check the link: https://stackoverflow.com/a/54038126/11083277

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, July 16, 2020 2:11 AM
  • User395381 posted

    I finally successfully installed the app after signing the app, and change the .csproj file to have platform =x86

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, July 22, 2020 7:27 PM