0

I have took this project from my personal pc and installed in my friend pc. So sdk path is different. Is that the reason?

enter image description here

Dileep Patel
  • 1,988
  • 2
  • 12
  • 26
D. Surendar
  • 74
  • 1
  • 9

3 Answers3

0

Try to clean project

Build > Clean Project

OR

Disable instant run.

Go into Settings(Win 10) or Preferences(Mac), then select Build, Execution, and Development, choose Instant Run then disable it.

About SDK Path thing, based on my experience, Android Studio usually solved SDK Path difference problem itself automatically.

Anil
  • 1,605
  • 1
  • 14
  • 24
  • I'm getting this Error:Execution failed for task ':app:externalNativeBuildCleanDebug'. > A problem occurred starting process 'command 'C:\Android\sdk\cmake\3.6.4111459\bin\cmake.exe'' – D. Surendar Aug 24 '17 at 10:28
0

If your version Android Studio is 2.3

Disable Instant Run in : Settings>Build, Execution, Deployment>Instant Run

This option does not exist in my Android Studio 1.4
Source

0

Disable instant run.

File -> Settings -> Build, Execution, Development -> Instant Run -> Enable Instant Run to Hot Swap Code/Resource changes on Deploy (Default Enabled)

And then Rebuild your Project

Build -> Rebuild Project
Ghulam Moinul Quadir
  • 1,638
  • 1
  • 12
  • 17
  • Error:Execution failed for task ':app:externalNativeBuildCleanDebug'. > A problem occurred starting process 'command 'C:\Android\sdk\cmake\3.6.4111459\bin\cmake.exe'' – D. Surendar Aug 24 '17 at 10:23