Android Build failed with an exception > Building 100%./gradlew connectedAndroidTest returned exit code 1

android

#1

com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Unable to upload some APKs
at com.android.builder.testing.ConnectedDevice.installPackages(ConnectedDevice.java:108)
at com.android.builder.internal.testing.SimpleTestCallable.call(SimpleTestCallable.java:125)
at com.android.builder.internal.testing.SimpleTestCallable.call(SimpleTestCallable.java:48)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.android.ddmlib.InstallException: Unable to upload some APKs
at com.android.ddmlib.Device.installPackages(Device.java:913)
at com.android.builder.testing.ConnectedDevice.installPackages(ConnectedDevice.java:105)
… 8 more


#2

Have you tried running the same command in ssh?


#3

ssh ???
i run on device it work fine… but in circle ci not working


#4

You can SSH into the builds using this guide. Can you try to SSH in and run the step manually to see if it works?


#5

i tried still exception, anybody help me… please give any useful to link to write circle.yml script syntax and examples


#6