Using the percent layout throws an exception in design view: Exception raised during rendering: android/support/percent/R$styleable or Exception raised during rendering: 8 ava.lang.ArrayIndexOutOfBoundsException: 8 at com.android.tools.idea.rendering.AarResourceClassGenerator.generateStyleable(AarResourceClassGenerator.java:210)
Worked before, I updated today: Android Studio 2.0 Build #AI 9321
Is there a way to rollback the update?
<android.support.percent.PercentRelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
app:layout_widthPercent="50%"
app:layout_heightPercent="50%"
app:layout_marginTopPercent="25%"
app:layout_marginLeftPercent="25%"/>
</android.support.percent.PercentRelativeLayout>
api version should be specified as 23 because support version is 23.2.1