Error inflating class fragment

后端 未结 30 2727
长发绾君心
长发绾君心 2020-11-22 14:38

I get the Error

Unable to start activity ComponentInfo{de.androidbuch.activiti/de.androidbuch.activiti.task.Activity}: android.view.InflateException: Binar         


        
30条回答
  •  暖寄归人
    2020-11-22 14:42

    If you use obfuscation with Navigation component you need to exclude android's fragment and your args. Add these lines to your proguard-rules files:

    # Exclude the fragments and argType for navigation component.
    -keep class * extends androidx.fragment.app.Fragment{}
    -keep class com.safetonet.presentation.features.parent.affffdevice.model.PresentableAddDeviceData
    

提交回复
热议问题