Xamarin linking SDK and UserAssemblies: Error inflating class android.support.v7.widget.FitWindowsFrameLayout

前端 未结 4 1830
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-04 07:24

My app is working without linking. It works fine also when I choose Sdk Assemblies only. It works fine in debug mode as well but it start failing if I choose linking SDk and Use

4条回答
  •  花落未央
    2021-02-04 08:13

    Try change ProGuard configuration.

    I found great article with ProGuard configuration which fixes the missing "android.support.v7.widget.FitWindowsFrameLayout" problem ("Solution 2: ProGuard" in the article):

    http://shaneneuville.com/firebase/proguard/2017/06/17/firebase-proguard-fun.html

    ProGuard configuration from article:

    -keep class com.google.android.gms.** { *; }
    -dontwarn com.google.android.gms.**
    -keep class com.microsoft.windowsazure.messaging.** { *; }
    -dontwarn com.microsoft.windowsazure.messaging.**
    -keep class com.google.firebase.** { *; }
    -dontwarn com.google.firebase.**
    -keep class android.support.v7.widget.** { *; }
    -dontwarn android.support.v7.widget.**
    -keep class android.support.v4.widget.Space { *; }
    -dontwarn android.support.v4.widget.Space
    

    You should clean solution after any ProGuard configuration changes.

提交回复
热议问题