Null Pointer exception in using support library share action provider

后端 未结 3 920
时光取名叫无心
时光取名叫无心 2021-01-04 06:06

Below is the code of my Activity . In this I am using the support library appcompat

   import android.content.Intent;
   import android.os.Bundle;
   import          


        
3条回答
  •  盖世英雄少女心
    2021-01-04 06:39

    I changed this

    android:actionProviderClass=widget.ShareActionProvider" />
    

    To this

    app:actionProviderClass=support.v7.widget.ShareActionProvider" />
    

提交回复
热议问题