"Setup SDK" error display in new android studio 2.1.1 -
i download newest android studio developer site.
after installation installed android studio, created new project , after project build completed, opened mainactivity.java
file find error. please refer screenshot below:
i downloaded android sdk component built-in in android studio.
- rebuild project. try clean build. should do. faced similar problem.
tools -> android -> sync project gradle files
build -> rebuild
incorrect installation of jdk might cause problems. please tell error in detail.
you can try jdk installation:-
on windows systems, launcher script not find jdk installed. if encounter problem, need set environment variable indicating correct location. select start menu > computer > system properties > advanced system properties. open advanced tab > environment variables , add new system variable java_home points jdk folder, example c:\program files\java\jdk1.8.0_77.