android gradle plugin 3.0.0-alpha2: Error inflating class android.support.v7.widget.FitWindowsLinearLayout

后端 未结 2 1078
甜味超标
甜味超标 2021-02-04 13:03

after upgrading the android gradle plugin from 3.0.0-alpha1 to 3.0.0-alpha2 my application does not start anymore: part of the stacktrace:

2条回答
  •  臣服心动
    2021-02-04 13:45

    UPDATE
    This bug has already been fixed - it works for me with gradle plugin 3.0.0-alpha4

    ORIGINAL answer (kept for reference)

    Actually I didn't have ProGuard enabled for my debug builds, but the Shrinker of the Android Gradle Plugin (which uses the same proguard files.

    Temporary workaround for the issue: add the following instructions to the proguard-rules.pro file:

    -keep class android.support.v7.widget.** { *; }
    -keep class android.support.v4.widget.** { *; }
    -keep class android.support.design.** { *; }
    -keep class com.bluelinelabs.conductor.** { *; }
    

提交回复
热议问题