Skip to content Skip to sidebar Skip to footer

Android Studio Won't Create A Class

Why won't Android Studio create a class? It doesn't even work for newly created projects Update OR why are all of these empty?

Solution 1:

The reason is you may have installed the 64 bit version on a 32 bit machine. I had the same problem. If you have 32-bit OS, try to uninstall 64-bit version of Android Studio and install 32-bit version from this page: https://developer.android.com/studio/index.html#downloads

Solution 2:

I too faced the same Issue. Go to your Android Studio -> Help -> Edit Custom VM options. Add the following line to the opened file.

-Djdk.util.zip.ensureTrailingSlash=false

Source : Fix suggested by Wojciech Fred

Solution 3:

To me, the problem was due to incorrect upgrade to new version of Android Studio. Studio patching seemingly went ok, but at Event Log, I constantly got this error:

2:55 PM FileNotFoundException: Entry fileTemplates//code/Google Test Fixture SetUp Method.cc.ft not found in /home/vlada/android-studio-145.3200535/lib/idea.jar

I also got similar message in 'IDE Fatal Errors' window.

Downloading and installing the latest version of Studio solved the problem for me.

Post a Comment for "Android Studio Won't Create A Class"