Alireza Hosseini Alireza Hosseini - 23 days ago 7
Android Question

Android Studio 2.2 not displaying view properties

After upgrading my android studio to version 2.2 i'm getting following error when i click on a view in layout designer to see it properties:


Exception in plugin Android Support Moments Ago.

Missing attribute definition for focusable
java.lang.IllegalArgumentException:

Missing attribute definition for focusable
at com.android.tools.idea.uibuilder.property.NlPropertyItem.(NlPropertyItem.java:88)
at com.android.tools.idea.uibuilder.property.NlPropertyItem.create(NlPropertyItem.java:72)
at com.android.tools.idea.uibuilder.property.NlProperties.getPropertiesWithReadLock(NlProperties.java:111)
at com.android.tools.idea.uibuilder.property.NlProperties.lambda$getProperties$537(NlProperties.java:64)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:966)
at com.android.tools.idea.uibuilder.property.NlProperties.getProperties(NlProperties.java:63)
at com.android.tools.idea.uibuilder.property.NlPropertiesManager.lambda$setSelectedComponents$228(NlPropertiesManager.java:174)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:369)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)


and Properties panel stuck on loading,

My OS is ubuntu 16.04 and almost i have upgraded everything in Android SDK to the latest version.

Answer

Finally i solved the issue by changing the compileSdkVersion and targetSdkVersion from 24 to 23. Actually it is not a proper way to resolve the exception, but i couldn't find any solution at this moment.

Comments