UnsupportedOperationException: isDirectory not implemented: isDirectory not implemented

I just imported my project into Android-studio and tried to create a new activity in it. But I can not create Activity in android-studio. I refer to here and I do not see the Mark Directory As option and shows the UOE in the event log as

Error message : UnsupportedOperationException: isDirectory not implemented: isDirectory not implemented.

After updating my android studio only i have this problem

+6
source share
3 answers

This is a bug in Android Studio 0.5.1, I also encountered the same problem after upgrading to 0.5.1

This is a bug in IntelliJ that has been combined with a subsequent build of EAP. It will be available in AS 0.5.2. Until then, the workaround is to copy the existing file.

You can see this google thread http://code.google.com/p/android/issues/detail?id=66818

Update

Now update Android Studio to version 0.5.2, it works great.

+2
source

In the Project view, if you right-click on the name of the Java package and select Create > Activity , you can create activity in this package:

Screen shot showing Project view, with context menu on Java package open

This works correctly for me in 0.5.0.

0
source

All Articles