Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't run app projects on Android Studio

I am new to Android Studio, and I installed it on Ubuntu 14.04 LTS (64bit).

When I open the project in Android Studio, I get my project files marked with red and the debug configuration button beside the run button is marked with red X as shown in the below image:

enter image description here

Please tell me how to solve this issue.

like image 607
user2121 Avatar asked Sep 15 '15 16:09

user2121


2 Answers

The best way to resolve this issue is as follows:

  • Clean and then rebuild your project

  • Make your project (it should work by now)

  • Check your dependencies in gradle

  • At the very end you can try invalidating the cache and restarting (Recommended)

The problem should be resolved by now.

like image 159
Yogesh Pandey Avatar answered Oct 23 '22 07:10

Yogesh Pandey


One of easy ways:

  1. Close your currently opened project to go back to the welcome screen.
  2. Choose Import Project (Eclipse ADT, Gradle, etc.) from the welcome screen.
  3. Select an Eclipse ADT project to be imported.

welcome screen of Android Studio

like image 20
hata Avatar answered Oct 23 '22 06:10

hata