E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.gameshopservicesdz, PID: 14488

We Are Going To Discuss About E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.gameshopservicesdz, PID: 14488. So lets Start this Android Article.

E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.gameshopservicesdz, PID: 14488

How to solve E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.gameshopservicesdz, PID: 14488

I think you have refered to some old documentation or tutorial while writting this code.
The first thing you should do is use androidx.constraintlayout.widget.ConstraintLayout instead of android.support.constraint.ConstraintLayout, since the android.support.constraint.ConstraintLayout is marked as deprecated (i.e. this should not be used and it would be removed and unavailable in future.)
Back to your issue, it is caused since the Android is unable to find the class for ConstraintLayout. Since ConstraintLayout is not a part of Android SDK, you need to add a dependency of ConstraintLayout in your app’s build.gradle file (located at app/build.gradle or app/build.gradle.kts) by using following code:
implementation "androidx.constraintlayout:constraintlayout:2.1.3"
After adding this, just sync your project and rebuild. This will resolve you issue.
Also, you can read more about Constraint Layout at https://developer.android.com/training/constraint-layout

E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.gameshopservicesdz, PID: 14488

I think you have refered to some old documentation or tutorial while writting this code.
The first thing you should do is use androidx.constraintlayout.widget.ConstraintLayout instead of android.support.constraint.ConstraintLayout, since the android.support.constraint.ConstraintLayout is marked as deprecated (i.e. this should not be used and it would be removed and unavailable in future.)
Back to your issue, it is caused since the Android is unable to find the class for ConstraintLayout. Since ConstraintLayout is not a part of Android SDK, you need to add a dependency of ConstraintLayout in your app’s build.gradle file (located at app/build.gradle or app/build.gradle.kts) by using following code:
implementation "androidx.constraintlayout:constraintlayout:2.1.3"
After adding this, just sync your project and rebuild. This will resolve you issue.
Also, you can read more about Constraint Layout at https://developer.android.com/training/constraint-layout

Solution 1

I think you have refered to some old documentation or tutorial while writting this code.

The first thing you should do is use androidx.constraintlayout.widget.ConstraintLayout instead of android.support.constraint.ConstraintLayout, since the android.support.constraint.ConstraintLayout is marked as deprecated (i.e. this should not be used and it would be removed and unavailable in future.)

Back to your issue, it is caused since the Android is unable to find the class for ConstraintLayout. Since ConstraintLayout is not a part of Android SDK, you need to add a dependency of ConstraintLayout in your app’s build.gradle file (located at app/build.gradle or app/build.gradle.kts) by using following code:

implementation "androidx.constraintlayout:constraintlayout:2.1.3"

After adding this, just sync your project and rebuild. This will resolve you issue.

Also, you can read more about Constraint Layout at https://developer.android.com/training/constraint-layout

Original Author Ashok Of This Content

Solution 2

Change your android.support.constraint.ConstraintLayout to androidx.constraintlayout.widget.ConstraintLayout

Original Author Yodgorbek Komilov Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

ittutorial team

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment