square / flow

Name UI states, navigate between them, remember where you've been.
Apache License 2.0
2.79k stars 241 forks source link

Intents test fails at the command line #241

Closed rjrjr closed 7 years ago

rjrjr commented 7 years ago

./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 commented 7 years ago

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

rjrjr commented 7 years ago

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 commented 7 years ago

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

rjrjr commented 7 years ago

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

rjrjr commented 7 years ago

Confirmed. Fuck Genymotion.