11

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.

hata
  • 11,633
  • 6
  • 46
  • 69
Amrmsmb
  • 1
  • 27
  • 104
  • 226

4 Answers4

17

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

hata
  • 11,633
  • 6
  • 46
  • 69
3

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.

BSMP
  • 4,596
  • 8
  • 33
  • 44
Yogesh Pandey
  • 217
  • 1
  • 2
  • 4
0

There appears to be a difference between "Open Folder" and "Open Project". If you "Open Folder" in a different project, I think it won't run that folder's project, but whatever project was opened last.

patrick
  • 16,091
  • 29
  • 100
  • 164
-1

when i try to run my project it give me the following error

"ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:28.0.0.

Disable offline mode and sync project Show Details Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support.constraint:constraint-layout:1.1.3.

Disable offline mode and sync project Show Details Affected Modules: app

Android
  • 1,420
  • 4
  • 13
  • 23