No_Rulz
No_Rulz

Reputation: 2719

UnsupportedOperationException: isDirectory is not implemented: isDirectory is not implemented

I just imported my project in Android-studio and trying to create a new Activity in it. But I can't create an Activity in android-studio. I refer here and I can't see the option of Mark Directory As and it shows an UOE in Event Log as

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

After updating my android-studio only I has this problem

Upvotes: 6

Views: 728

Answers (3)

Ajay S
Ajay S

Reputation: 48602

It is bug in Android Studio 0.5.1, I also faced same issue after upgrading to 0.5.1

This is a bug in IntelliJ which was merged into the subsequent EAP build. It'll be available in AS 0.5.2. Until then, the workaround is to copy over an existing file.

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

Update

Now, update your Android Studio to 0.5.2, it is working perfectly.

Upvotes: 2

Scott Barta
Scott Barta

Reputation: 80010

In the Project view, if you right-click on a Java package name and choose New > Activity, you can create an activity in that package:

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

This works properly for me in 0.5.0.

Upvotes: 0

Pedantic
Pedantic

Reputation: 5022

Seems to be a recent bug in IntelliJ introduced in EAP 13, fixed in EAP 13.1. Check if an update is generally available for your platform and upgrade again.

Upvotes: 2

Related Questions