Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intents test fails at the command line #241

Closed
rjrjr opened this issue Apr 14, 2017 · 5 comments
Closed

Intents test fails at the command line #241

rjrjr opened this issue Apr 14, 2017 · 5 comments
Assignees
Labels
Milestone

Comments

@rjrjr
Copy link
Collaborator

rjrjr commented Apr 14, 2017

./gradlew connectedCheck

:flow-sample-intents:connectedDebugAndroidTest
Unable to install /Users/ray/Development/square/flow/flow-sample-intents/build/outputs/apk/flow-sample-intents-debug-androidTest.apk
com.android.ddmlib.InstallException: INSTALL_FAILED_PERMISSION_MODEL_DOWNGRADE
        at com.android.ddmlib.Device.installRemotePackage(Device.java:978)
        at com.android.ddmlib.Device.installPackage(Device.java:885)
        at com.android.builder.testing.ConnectedDevice.installPackage(ConnectedDevice.java:122)
        at com.android.builder.internal.testing.SimpleTestCallable.call(SimpleTestCallable.java:131)
        at com.android.builder.internal.testing.SimpleTestCallable.call(SimpleTestCallable.java:47)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

com.android.builder.testing.ConnectedDevice > runTests[Google Nexus 5 - 6.0.0 - API 23 - 1080x1920 - 6.0] FAILED 
        com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_FAILED_PERMISSION_MODEL_DOWNGRADE
                at com.android.builder.testing.ConnectedDevice.installPackage(ConnectedDevice.java:128)
[no message defined]

@rjrjr rjrjr added this to the 1.0 alpha 3 milestone Apr 14, 2017
@rjrjr rjrjr added the bug label Apr 14, 2017
@rjrjr rjrjr self-assigned this Apr 14, 2017
@rjrjr
Copy link
Collaborator Author

rjrjr commented Apr 14, 2017

Interesting. I get the same failure if I add minimal espresso test to the helloworld sample.

@rjrjr
Copy link
Collaborator Author

rjrjr commented Apr 14, 2017

Holy shit. I get the same failure in BasicSampleTest if I reduce it to this test case:

  @Test public void defaultKeyIsUsed() {
    onView(withId(R.id.basic_activity_frame)).perform(click());
  }

@rjrjr
Copy link
Collaborator Author

rjrjr commented Apr 14, 2017

Nope, now I'm just getting it all the time. This is…exciting.

@rjrjr
Copy link
Collaborator Author

rjrjr commented Apr 14, 2017

Starting to believe this is a Genymotion issue. Trying a stock AVD

@rjrjr
Copy link
Collaborator Author

rjrjr commented Apr 14, 2017

Confirmed. Fuck Genymotion.

@rjrjr rjrjr closed this as completed Apr 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant