Why doesn't Android Studio let me select a device and run an app?

Viewed 757

With the firebase-android-client demo app, the device selector in Android Studio says "Not applicable for firebase-android-project configuration".

However, if I create a new project from the "Basic" project wizard, I can successfully launch the app.

I installed several (virtual) devices, including one for Android 6.0.

My app does not run with this disabled device, nor do I have the choice to select another device.

Below are screenshots of the project where it works and the one where it doesn't.

What needs to be fixed? How do I launch this simple demo project?

  • Problematic: "Not applicable" message

  • Working:

Working

  • Run/Debug Configuration for App Run/Debug Configuration for App

  • If I just push the green Run button, the Gradle console gives me Executing task... Task execution finished. but nothing else happens.

2 Answers

The problem here is that you have selected a Graddle configuration to run (firebase-android-client), not an app one.

If you select the app in the Select Run/Debug Configuration dropdown it will work fine.

enter image description here

In order to tackle the situation you need to check the Run/Debug Configuration and apply appropriate configurations there.

Related