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.
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
I finally successfully installed the app after signing the app, and change the .csproj file to have platform =x86
Answers
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:
Refer to: https://stackoverflow.com/a/52887518/11083277
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!
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
andversionName
of the application at the runtime.Check the link: https://stackoverflow.com/a/54038126/11083277
I finally successfully installed the app after signing the app, and change the .csproj file to have platform =x86