Mobile Center UITest exit code 20 - c#

I've been trying to run a UI test via Visual Studio Mobile center for a while now, but I'm getting the following error:
Preparing tests... failed.
Error: Cannot prepare UI Test artifacts. Returning exit code 20.
I looked on the mobile-center-cli github page and found that error codes 1 until 63 are reserved for TestCloud. There is really no documentation about this error so I hope someone is able to point me into the right direction.
Command used:
mobile-center test run uitest --app "MyAppName" --devices d5c95903 --app-path "pathToApk" --test-series "master" --locale "en_US" --build-dir "PathToBinRelease"

It sounds like you may be specifying the wrong folder for your --build-dir.
The --build-dir should be the bin/Debug folder of your Xamarin.UITest project, something like this:
"/Users/User/AppSolution/App.UITests/bin/Debug"
Can you please try the above and let me know if it resolves the issue?
Glenn

Another reason for this error is if there is more than one version of Xamarin.UITest present in the packages folder, that is visible in the root of your project.
Remove the unnecessary versions of Xamarin.UITest and give it another go.

I had this error. I added this param to my script:
--uitest-tools-dir "...your_path\packages\Xamarin.UITest.2.0.10\tools"
This is work for me.

--uitest-tools-dir $APPCENTER_SOURCE_DIRECTORY/packages/Xamarin.UITest.*/tools
https://tomsoderling.github.io/AppCenter-Automated-UI-tests-on-build/

Related

Could not complete testing: fitnesse.slim.SlimError: Error SLiM server died before Header Message could be read

I am trying to integrate Fitness with Visual Studio 2022. Have .NET 6.0 installed. Following the instructions given in this link. However, every time I run the Test it throws the error
Could not complete testing: fitnesse.slim.SlimError: Error SLiM server died before Header Message could be read. Unable to start test system 'slim': fitnesse.slim.SlimError: Error SLiM server died before Header Message could be read.
Looks like I am missing something very basic about Slim. Please let me know the resolution for this.
I was able to resolve this. The Target Framework RunnerW was pointing to was incorrect. It was pointing to Dotnet4.8. I modified this. But, and included into the fitsharp solution. Then, building solution from Visual Studio kept failing. Identified that this needed updating the Nuget package. Updating kept skipping every time stating the package was already installed. Was unable to build because of these reasons. Was finally able to have breakthrough when I built the solution from cli. Running the Test after this was successful.

"java.exe" exited with code 1 Xamarin-forms

I'm developing an app using xamarin-forms.
I faced this error lately after using the Google Play Services Plugin version = 116.0.1.
I know there is a thousand answers to my question but i've tried several thing before posting my own.
1- enabling multi-dex + dex compiler = d8 + code shrinker = r8
2- increasing java max heap size = 1G
3- downgrading GooglePlaySerivec to version 71.1610.4
4- updating the java JDK
6- adding this package reference into the Android.csproj
<AndroidEnableProguard>True</AndroidEnableProguard>
<AndroidEnableMultiDex>True</AndroidEnableMultiDex>
<AndroidEnableDesugar>True</AndroidEnableDesugar>
<!--New properties-->
<AndroidDexTool>d8</AndroidDexTool>
<AndroidLinkTool>r8</AndroidLinkTool>
7- i saw an answer to this error Xamarin.Forms "java.exe" exited with code 1 in debug mode , i don't know if it can be related to my problem but i tried it any way,
adding this line in Android.csproj
<PackageReference Include="Xamarin.Google.Guava" ExcludeAssets="all">
<Version>27.1.0</Version>
</PackageReference>
8- removing the obj and bin folder and clean and rebuild
9- i made sure the encoding of Android.csproj file is utf-8
but all of this didn't help me to get rid of the error.
NOTE
sometimes the project builds successfully ,but i get another error,
i think it's due to the shrinker removes the FCM Methods
here is the log
[FirebaseApp] com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
[FirebaseApp] com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
[FirebaseApp] com.google.android.gms.measurement.AppMeasurement is not linked. Skipping initialization.
[FirebaseInitProvider] FirebaseApp initialization successful
[.realestatedem] Accessing hidden method Ljava/util/HashMap$HashIterator;->hasNext()Z (light greylist, JNI)
**Java.Lang.NoSuchMethodError:** 'no static method "Lcom/google/firebase/messaging/FirebaseMessaging;.getInstance()Lcom/google/firebase/messaging/FirebaseMessaging;"'
[.realestatedem] ProcessProfilingInfo new_methods=247 is saved saved_to_disk=1 resolve_classes_delay=8000
i've been working on this error 3 days now and i've tried many things desperately, and i don't even have a clue so if any one can help me with this it'll be really appreciated.
thanks in advance.

The AppLovin' nightmare in Xcode, impossible to build the project

it's been weeks that I'm blocked because I can't build my project in Xcode on iOS. I looked all over the internet, none of the suggestions worked for me. I really hope I'm not a rare exception because this problem is painful and prevents me from moving forward..
Here is a the error that i have in Xcode
"#import <AppLovinSDK/AppLovinSDK.h' file not found"
Try to Build from Unity and not Build and Run:
And then open the .xworkspace file and not the .xcodeproj file:
I encountered it yesterday. If ApplovinSDK in Podfile is added implicitly, try to make it explicit. The problem was solved in my case.
I describe the detail..
There was no AppLovinSDK in the Podfile.
The Podfile had "GoogleMobileAdsMediationAppLovin" instead.
ApplovinSDK will be installed from it.
I tried to add ApplovinSDK in Podfile ahead of "GoogleMobileAdsMediationAppLovin"
Then it works.
like this...
pod 'ApplovinSDK', '10.3.6' --- Added.
pod 'GoogleMobileAdsMediationAppLovin', '10.3.6.0'
I hope it helps.

DLLExport 'NSBin.bat' is not recognized as an internal or external command

I was trying to move a build to a new build server and I was getting the following error:
..\packages\DllExport.1.5.2\tools\net.r_eg.DllExport.targets(70,7): error MSB3073: The command "NSBin.bat "" "SPDbUtil" "true"" exited with code 9009.
'NSBin.bat' is not recognized as an internal or external command, (TaskId:52)
The project has a reference to the following DllExport:
In looking at the following .targets file, it appears when running the Exec command the $(DllExportMetaLibFullPath), where the NSBin.bat file lives, is blank at the time it is called:
When I checked out the project and try and build it, it fails the first time and succeeds on consecutive builds.
If I add "echo $(DllExportMetaLibFullPath)" to the <PreBuildEvent> of the project- it builds successfully the first time.
Does anyone know why this happens? Am I missing something? BTW: this is an older project that I was trying to move to a new build system. The previous builds were completing because the build defs "Clean" option was "false". I can keep the echo in there but would be nice to know the correct way to handle this or have a definitive answer for the devs.
Thanks

MonoGame - Error 9009 & IgnoreMe.dll not found

i've just installed MonoGame and XNA and i'm having some issues from the jump, from googling it seems as though i need to add 'C:\Windows\System32' to my path environment variables, i've tried adding it here
but i'm still getting these errors
Error 1
The command "SETX MONOGAME_PLATFORM "PSM" > NUL" exited with code 9009. MyMonoGameContent
Error 2
Metadata file 'C:\Users\Benji\documents\visual studio 2013\Projects\myMonoGame\MyMonoGameContent\MyMonoGameContent\bin\PSM\IgnoreMe.dll' could not be found C:\Users\Benji\documents\visual studio 2013\Projects\myMonoGame\myMonoGame\CSC myMonoGame
This happens when i try to compile after referencing my content project
i'm following these http://rbwhitaker.wikidot.com/monogame-tutorials
no idea what's up, was that the wrong place to set the enviroment variable? i've tried looking for a user property sheet but can't find one in my project
I wouldn't expect that you would want to create content for the PSM (PlayStation Mobile). Check the targeted platform of the ContentBuilder project to ensure you are building for Windows.

Categories