Open Bug 1969159 Opened 8 months ago Updated 7 months ago

./mach android install-geckoview_example fails for real devices

Categories

(Firefox Build System :: Android Studio and Gradle Integration, defect)

defect

Tracking

(Not tracked)

People

(Reporter: hiro, Unassigned)

Details

> Task :geckoview_example:installDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':geckoview_example:installDebug'.
> com.android.builder.testing.api.DeviceException: No connected devices!

I am totally unsure that this error message is useful for debugging.

Rather adb install -r -d obj-aarch64-unknown-linux-android/gradle/build/mobile/android/geckoview_example/outputs/apk/debug/geckoview_example-debug.apk works.

This may be a problem in the real device. I've used a pixel 3. With connecting the device, when I run adb logcat, it immediately disconnects the device. So if "mach android install" commands invokes adb logcat or some such, the connection will be lost.

Severity: -- → S3
Component: Mach Core → Android Studio and Gradle Integration
You need to log in before you can comment on or make changes to this bug.