OiO.lk Blog Android Errors in Android Studio when try to run the app in my phone
Android

Errors in Android Studio when try to run the app in my phone


I just code an app on Android Studio Koala, but I’m get 2 errors that I can’t fix when I try to run the app in my cellphone. The app just does’t open, sometimes I get a message in my phone sayint that the app constantly crashes and I get 2 errors in the logcat. Anyone can help me?

This is the logcat erros:

E Device claims wide gamut support, cannot find matching config, error = EGL_SUCCESS
E FATAL EXCEPTION: main
Process: com.bygaanv.anagrama, PID: 29468
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.bygaanv.anagrama/com.bygaanv.anagrama.MainActivity}: java.lang.InstantiationException: java.lang.Class<com.bygaanv.anagrama.MainActivity> has no zero argument constructor
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4047)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4322)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8919)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
Caused by: java.lang.InstantiationException: java.lang.Class<com.bygaanv.anagrama.MainActivity> has no zero argument constructor
at java.lang.Class.newInstance(Native Method)
at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
at androidx.core.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:45)
at android.app.Instrumentation.newActivity(Instrumentation.java:1378)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4034)

I already put the android:colorMode="wideColorGamut" line on all the activities in the manifest file, I tried some other things I found on the web and still nothing. I saw a reply here on Stack Over Flow for an error similar to mine saying that is a permission issue, but I have no idea what permission I should use. Thank to anyone who can help me



You need to sign in to view this answers

Exit mobile version