coderxxx
coderxxx

Reputation: 1

Android Studio New Class

When I try to create a new class in Android studio 2.3.3 , I get the error shown in the image below.

enter image description here

Upvotes: 0

Views: 846

Answers (1)

Ufkoku
Ufkoku

Reputation: 2638

Open Setting -> File and Code Templates -> Files -> Class.

Make sure that your class template looks like this

#if (${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end

#if (${IMPORT_BLOCK} != "")${IMPORT_BLOCK}
#end
#parse("File Header.java")

#if (${VISIBILITY} == "PUBLIC")public #end #if (${ABSTRACT} == "TRUE")abstract #end #if (${FINAL} == "TRUE")final #end class ${NAME} #if (${SUPERCLASS} != "")extends ${SUPERCLASS} #end #if (${INTERFACES} != "")implements ${INTERFACES} #end {
}

Upvotes: 1

Related Questions