I am creating one plugin for Unity using android Katlin in which I am using an activity and inside the activity calling "Media Projection screen capture intent" but when I am calling this activity and its public and static methods, Unity gives me error
java.lang.NoClassDefFound: Failed resolution of:Landroidx/appcompat/app/AppCompatActivity
How to fix this issue?
I've tried one solution by extending UnityPlayerActivity (form com.unity3d.player package) and than added methods to this activity . Unity able to call this UnityPlayerActivity form unity but for this unity have to insert this activity into manifest with different package name, But I do not want to extends UnityPlayerActivity form com.unity3d.player package , please suggest any other way to call android activity and its methods form unity.