2024-10-30
2024-10-30
2024-10-30
Stacktrace:
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.franciscan.ecare_pro/com.app.ecarepro.ui.MainActivity}:
androidx.fragment.app.Fragment$InstantiationException: Unable to instantiate
fragment com.app.ecarepro.ui.assignment.AssignmentListFragment: could not find
Fragment constructor
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4035)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4201)
at
android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:10
3)
at
android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecu
tor.java:135)
at
android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:
95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2438)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8669)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
Caused by: androidx.fragment.app.Fragment$InstantiationException: Unable to
instantiate fragment com.app.ecarepro.ui.assignment.AssignmentListFragment: could
not find Fragment constructor
at androidx.fragment.app.Fragment.instantiate(Fragment.java:687)
at
androidx.fragment.app.FragmentContainer.instantiate(FragmentContainer.java:57)
at
androidx.fragment.app.FragmentManager$3.instantiate(FragmentManager.java:525)
at androidx.fragment.app.FragmentState.instantiate(FragmentState.java:84)
at
androidx.fragment.app.FragmentStateManager.<init>(FragmentStateManager.java:91)
at
androidx.fragment.app.FragmentManager.restoreSaveStateInternal(FragmentManager.java
:2562)
at
androidx.fragment.app.FragmentManager.attachController(FragmentManager.java:2722)
at
androidx.fragment.app.FragmentController.attachHost(FragmentController.java:117)
at androidx.fragment.app.FragmentActivity.lambda$init$3$androidx-fragment-
app-FragmentActivity(FragmentActivity.java:139)
at androidx.fragment.app.FragmentActivity$
$ExternalSyntheticLambda3.onContextAvailable(D8$$SyntheticClass:0)
at
androidx.activity.contextaware.ContextAwareHelper.dispatchOnContextAvailable(Contex
tAwareHelper.kt:84)
at androidx.activity.ComponentActivity.onCreate(ComponentActivity.java:358)
at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:216)
at com.app.ecarepro.ui.MainActivity.onCreate(MainActivity.kt:166)
at android.app.Activity.performCreate(Activity.java:8290)
at android.app.Activity.performCreate(Activity.java:8270)
at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4009)
... 12 more
Caused by: java.lang.NoSuchMethodException:
com.app.ecarepro.ui.assignment.AssignmentListFragment.<init> []
at java.lang.Class.getConstructor0(Class.java:3325)
at java.lang.Class.getConstructor(Class.java:2485)
at androidx.fragment.app.Fragment.instantiate(Fragment.java:672)
... 29 more