locked
Getting Exception occurred while dumping: java.lang.IllegalArgumentException: Unknown package: RRS feed

  • Question

  • User378120 posted

    Xamrain UI Test IDE = VS 2019 for mac

    I am getting this error when I run my android UI tests via Terminal command. The error does not seem to cause any direct issues aside from I am not sure why it's occurring. This error displays for every test in a suite that runs on a physical or emulated Android device. I do NOT see this error in the IDE itself but rather it keeps displaying in the Terminal window. Thank in advance and please ask if more questions about the environment are needed. Error: Exception occurred while dumping: java.lang.IllegalArgumentException: Unknown package: {project name} at com.android.server.pm.Settings.isOrphaned(Settings.java:4134) at com.android.server.pm.PackageManagerService.isOrphaned(PackageManagerService.java:18105) at com.android.server.pm.PackageManagerService.deletePackage(PackageManagerService.java:15522) at com.android.server.pm.PackageInstallerService.uninstall(PackageInstallerService.java:888) at com.android.server.pm.PackageManagerShellCommand.runUninstall(PackageManagerShellCommand.java:792) at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:118) at android.os.ShellCommand.exec(ShellCommand.java:94) at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:18363) at android.os.Binder.shellCommand(Binder.java:468) at android.os.Binder.onTransact(Binder.java:367) at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2387) at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:3031) at android.os.Binder.execTransact(Binder.java:565)

    Wednesday, September 4, 2019 8:11 PM

All replies

  • User382871 posted

    Tutorial about Test from the command line, hope it'll help you. https://developer.android.com/studio/test/command-line

    Similar issue: http://godotengine.org/qa/34624/export-android-illegalargumentexception-unknown-package https://github.com/appium/appium/issues/9196

    Thursday, September 5, 2019 9:52 AM
  • User378120 posted

    The code that I use to run my tests via command line looks like this:

        `#! /bin/bash\
        cp ../packages/NUnit.Extension.NUnitV2ResultWriter.3.6.0/tools/*.* ../packages/NUnit.Console.3.0.0/tools/;
    
        mono ../packages/NUnit.Console.3.0.0/tools/nunit3-console.exe --labels=All --out=TestResult.txt "--result=TestResult.xml;format=nunit2" {Project Path} --trace=Verbose;
    
        mono ../packages/SpecFlow.2.4.1/tools/specflow.exe nunitexecutionreport -p {Project Path}
    

    ` I am not sure how that fits into the links you have provided?

    Thursday, September 5, 2019 3:54 PM