Search code examples
javaandroidandroid-studioimportwear-os

cannot find symbol variable ic_launcher


I am trying to build an empty default project in Android Studio for Android Wear. I get this error:

Error:(23, 41) error: cannot find symbol variable ic_launcher
Error:Execution failed for task ':wear:compileDebugJava'.
> Compilation failed; see the compiler error output for details.

I am a total newbie in wearable app development. Any pointers would really help. enter image description here

P.S.: I have done no single change in the code.


Solution

  • Your drawable folder is empty. Put an icon in there with the name "ic_launcher"