Reputation: 1
When I try to create a new class in Android studio 2.3.3 , I get the error shown in the image below.
Upvotes: 0
Views: 846
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