Unable to parse the class template. Error whenever I try to open a new java class

I am doing an Android Studio project (from this lesson here: http://www.kilobolt.com/day-2-setting-up-libgdx.html ).

When I click New Java Class, I get the error described in the title:

Unable to parse the Class template. Error message: This template was not created for a Java class or interface.

I do not know why. I searched on this site, there seems to be no answer.

There are no error messages in the code.

For what it's worth, I recently updated the gradle version for Android studio. Does anyone know how to fix this?

+8
java android android-studio libgdx
source share

No one has answered this question yet.

See similar questions:

10
Failed to parse the Class template. Error message: This template did not create a Java class or interface
0
Can't I add a new Java class when using the activity template in android studio?

or similar:

461
Why can't I define a static method in the Java interface?
357
Android Studio is slow (how to speed up)?
288
Unable to merge dex
thirty
Failed to parse Class template
7
Android Studio: it is impossible to add a new class or any file to the project
2
Android Studio - Entry fileTemplates // Singleton.java.ft not found
one
How to fix a parsing file template error: Encountered
0
Android Studio 3.0.1 - Unable to create class
0
Android Java Class Studio Error
0
Failed to create gradle and create java class

All Articles