In Robolectric, how do I get around DrawerLayout must be measured with MeasureSpec.EXACTLY error?

前端 未结 3 1356
既然无缘
既然无缘 2020-12-30 02:46

I\'m trying to add a DrawerLayout to my application for navigation, and I\'m testing my application with Robolectric (I\'ve seen this problem both with Robolectric 2.1.1 and

3条回答
  •  没有蜡笔的小新
    2020-12-30 03:46

    Update your Support Library jar: http://developer.android.com/tools/support-library/setup.html

    And make sure that your project refers the latest one: How do I add a library (android-support-v7-appcompat) in IntelliJ IDEA

    Example path to the lib: [adt-bundle-windows]\sdk\extras\android\support\v4\android-support-v4.jar

提交回复
热议问题