square/flow

Intents test fails at the command line

Closed this issue · 5 comments

rjrjr commented

./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

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

rjrjr commented

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

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

rjrjr commented

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

rjrjr commented

Confirmed. Fuck Genymotion.