问题
What went wrong: Execution failed for task ':androidInstall'.
com.android.builder.testing.api.DeviceException: java.lang.RuntimeException: No connected devices!
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
回答1:
Had the same problem yesterday.
I solved it with download & installing manually the driver from the internet for my device.
Whats your device?
For Example:
My device is the MOTO G with Android 5.0.2
I just searching for the driver in google, installed it by the provider of my phone (Motorola) and tried the command line (gradlew installDebug) again.
worked for me. Hope it helps.
来源:https://stackoverflow.com/questions/32008715/running-error-using-javafx-ports