my xml:
<com.asynctaskcoffee.audiorecorder.uikit.RecordButton android:id="@+id/recordButton" android:layout_width="40dp" android:layout_height="40dp"/>
Error:
Process: com.mypackage, PID: 4538
android.view.InflateException: Binary XML file line #49 in com.mypackage:layout/fragment_audios: Binary XML file line #49 in com.mypackage:layout/fragment_audios: Error inflating class com.asynctaskcoffee.audiorecorder.uikit.RecordButton
Caused by: android.view.InflateException: Binary XML file line #49 in com.mypackage/fragment_audios: Error inflating class com.asynctaskcoffee.audiorecorder.uikit.RecordButton
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
at android.view.LayoutInflater.createView(LayoutInflater.java:881)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1033)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:988)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1150)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1111)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1153)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1111)
at android.view.LayoutInflater.inflate(LayoutInflater.java:709)
at android.view.LayoutInflater.inflate(LayoutInflater.java:547)
at com.creativeappshut.epsassistant.Fragments.AudiosFragment.onCreateView(AudiosFragment.java:79)
at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2963)
at androidx.fragment.app.DialogFragment.performCreateView(DialogFragment.java:489)
at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:518)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2189)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2100)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2002)
at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:524)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8319)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1038)
my xml:
<com.asynctaskcoffee.audiorecorder.uikit.RecordButton android:id="@+id/recordButton" android:layout_width="40dp" android:layout_height="40dp"/>
Error: