Reputation: 2719
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
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
Now, update your Android Studio to 0.5.2, it is working perfectly.
Upvotes: 2
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:
This works properly for me in 0.5.0.
Upvotes: 0
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