kabirnayeem99 / v2_survey_android_app

Survey application built for V2 Limited.
2 stars 0 forks source link

App crashing #1

Closed VinodTechnowell2022 closed 2 years ago

VinodTechnowell2022 commented 2 years ago

First of all I downloaded the project and extracted on my machine and when i am trying to run the below crash is coming, Please help me out from this

2022-11-22 15:36:12.092 31358-31358/io.github.kabirnayeem99.v2_survey E/**ThemeUtils: View class androidx.appcompat.widget.AppCompatImageView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).** 2022-11-22 15:36:12.127 31358-31358/io.github.kabirnayeem99.v2_survey E/ThemeUtils: View class com.google.android.material.textview.MaterialTextView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant). **2022-11-22 15:36:12.150 31358-31358/io.github.kabirnayeem99.v2_survey E/ThemeUtils: View class com.google.android.material.textview.MaterialTextView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).** 2022-11-22 15:36:12.173 31358-31358/io.github.kabirnayeem99.v2_survey E/ThemeUtils: View class androidx.appcompat.widget.AppCompatButton is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant). 2022-11-22 15:36:12.189 31358-31358/io.github.kabirnayeem99.v2_survey W/ResourcesCompat: Failed to inflate ColorStateList, leaving it to the framework java.lang.UnsupportedOperationException: Failed to resolve attribute at index 0: TypedValue{t=0x2/d=0x7f0300ea a=-1} at android.content.res.TypedArray.getColor(TypedArray.java:469) at androidx.core.content.res.ColorStateListInflaterCompat.inflate(ColorStateListInflaterCompat.java:160) at androidx.core.content.res.ColorStateListInflaterCompat.createFromXmlInner(ColorStateListInflaterCompat.java:125) at androidx.core.content.res.ColorStateListInflaterCompat.createFromXml(ColorStateListInflaterCompat.java:104) at androidx.core.content.res.ResourcesCompat.inflateColorStateList(ResourcesCompat.java:262) at androidx.core.content.res.ResourcesCompat.getColorStateList(ResourcesCompat.java:236) at androidx.core.content.ContextCompat.getColorStateList(ContextCompat.java:558) at androidx.appcompat.content.res.AppCompatResources.getColorStateList(AppCompatResources.java:48) at androidx.appcompat.widget.TintTypedArray.getColorStateList(TintTypedArray.java:179) at androidx.appcompat.widget.AppCompatBackgroundHelper.loadFromAttributes(AppCompatBackgroundHelper.java:66) at androidx.appcompat.widget.AppCompatButton.<init>(AppCompatButton.java:85) at androidx.appcompat.widget.AppCompatButton.<init>(AppCompatButton.java:75) at androidx.appcompat.app.AppCompatViewInflater.createButton(AppCompatViewInflater.java:211) at androidx.appcompat.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:129) at androidx.appcompat.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:1569) at androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:1620) at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:189) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:772) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730) at android.view.LayoutInflater.rInflate(LayoutInflater.java:863) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) at android.view.LayoutInflater.inflate(LayoutInflater.java:515) at android.view.LayoutInflater.inflate(LayoutInflater.java:423) at io.github.kabirnayeem99.v2_survey.databinding.FragmentOnboardingBinding.inflate(FragmentOnboardingBinding.java:65) at io.github.kabirnayeem99.v2_survey.presentation.onboarding.OnboardingFragment.onCreateView(OnboardingFragment.kt:25) at androidx.fragment.app.Fragment.performCreateView(Fragment.java:3104) at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:524) at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:261) at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:113) at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1424) at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2968) at androidx.fragment.app.FragmentManager.dispatchViewCreated(FragmentManager.java:2879) at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:3129) at androidx.fragment.app.FragmentStateManager.ensureInflatedView(FragmentStateManager.java:394) at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:260) at androidx.fragment.app.FragmentLayoutInflaterFactory.onCreateView(FragmentLayoutInflaterFactory.java:142) at androidx.fragment.app.FragmentController.onCreateView(FragmentController.java:136) at androidx.fragment.app.FragmentActivity.dispatchFragmentsOnCreateView(FragmentActivity.java:248) at androidx.fragment.app.FragmentActivity.onCreateView(FragmentActivity.java:227) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:780) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730) at android.view.LayoutInflater.rInflate(LayoutInflater.java:863) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) 2022-11-22 15:36:12.191 31358-31358/io.github.kabirnayeem99.v2_survey W/ResourcesCompat: at android.view.LayoutInflater.parseInclude(LayoutInflater.java:995) at android.view.LayoutInflater.rInflate(LayoutInflater.java:859) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) at android.view.LayoutInflater.inflate(LayoutInflater.java:515) at android.view.LayoutInflater.inflate(LayoutInflater.java:423) at io.github.kabirnayeem99.v2_survey.databinding.ActivityContainerBinding.inflate(ActivityContainerBinding.java:37) at io.github.kabirnayeem99.v2_survey.databinding.ActivityContainerBinding.inflate(ActivityContainerBinding.java:31) at io.github.kabirnayeem99.v2_survey.presentation.ContainerActivity.onCreate(ContainerActivity.kt:26) at android.app.Activity.performCreate(Activity.java:7258) at android.app.Activity.performCreate(Activity.java:7249) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1222) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2927) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3059) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1724) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:7000) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408) 2022-11-22 15:36:12.208 31358-31358/io.github.kabirnayeem99.v2_survey E/ThemeUtils: View class com.google.android.material.button.MaterialButton is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant). 2022-11-22 15:36:12.213 31358-31358/io.github.kabirnayeem99.v2_survey W/ResourcesCompat: Failed to inflate ColorStateList, leaving it to the framework java.lang.UnsupportedOperationException: Failed to resolve attribute at index 0: TypedValue{t=0x2/d=0x7f030108 a=-1} at android.content.res.TypedArray.getColor(TypedArray.java:469) at androidx.core.content.res.ColorStateListInflaterCompat.inflate(ColorStateListInflaterCompat.java:160) at androidx.core.content.res.ColorStateListInflaterCompat.createFromXmlInner(ColorStateListInflaterCompat.java:125) at androidx.core.content.res.ColorStateListInflaterCompat.createFromXml(ColorStateListInflaterCompat.java:104) at androidx.core.content.res.ResourcesCompat.inflateColorStateList(ResourcesCompat.java:262) at androidx.core.content.res.ResourcesCompat.getColorStateList(ResourcesCompat.java:236) at androidx.core.content.ContextCompat.getColorStateList(ContextCompat.java:558) at androidx.appcompat.content.res.AppCompatResources.getColorStateList(AppCompatResources.java:48) at androidx.appcompat.widget.TintTypedArray.getColorStateList(TintTypedArray.java:179) at androidx.appcompat.widget.AppCompatBackgroundHelper.loadFromAttributes(AppCompatBackgroundHelper.java:66) at androidx.appcompat.widget.AppCompatButton.<init>(AppCompatButton.java:85) at com.google.android.material.button.MaterialButton.<init>(MaterialButton.java:225) at com.google.android.material.button.MaterialButton.<init>(MaterialButton.java:221) at java.lang.reflect.Constructor.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:334) at android.view.LayoutInflater.createView(LayoutInflater.java:647) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730) at android.view.LayoutInflater.rInflate(LayoutInflater.java:863) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) at android.view.LayoutInflater.inflate(LayoutInflater.java:515) at android.view.LayoutInflater.inflate(LayoutInflater.java:423) at io.github.kabirnayeem99.v2_survey.databinding.FragmentOnboardingBinding.inflate(FragmentOnboardingBinding.java:65) at io.github.kabirnayeem99.v2_survey.presentation.onboarding.OnboardingFragment.onCreateView(OnboardingFragment.kt:25) at androidx.fragment.app.Fragment.performCreateView(Fragment.java:3104) at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:524) at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:261) at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:113) at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1424) at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2968) at androidx.fragment.app.FragmentManager.dispatchViewCreated(FragmentManager.java:2879) at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:3129) at androidx.fragment.app.FragmentStateManager.ensureInflatedView(FragmentStateManager.java:394) at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:260) at androidx.fragment.app.FragmentLayoutInflaterFactory.onCreateView(FragmentLayoutInflaterFactory.java:142) at androidx.fragment.app.FragmentController.onCreateView(FragmentController.java:136) at androidx.fragment.app.FragmentActivity.dispatchFragmentsOnCreateView(FragmentActivity.java:248) at androidx.fragment.app.FragmentActivity.onCreateView(FragmentActivity.java:227) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:780) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730) at android.view.LayoutInflater.rInflate(LayoutInflater.java:863) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) at android.view.LayoutInflater.parseInclude(LayoutInflater.java:995) at android.view.LayoutInflater.rInflate(LayoutInflater.java:859) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) 2022-11-22 15:36:12.214 31358-31358/io.github.kabirnayeem99.v2_survey W/ResourcesCompat: at android.view.LayoutInflater.inflate(LayoutInflater.java:515) at android.view.LayoutInflater.inflate(LayoutInflater.java:423) at io.github.kabirnayeem99.v2_survey.databinding.ActivityContainerBinding.inflate(ActivityContainerBinding.java:37) at io.github.kabirnayeem99.v2_survey.databinding.ActivityContainerBinding.inflate(ActivityContainerBinding.java:31) at io.github.kabirnayeem99.v2_survey.presentation.ContainerActivity.onCreate(ContainerActivity.kt:26) at android.app.Activity.performCreate(Activity.java:7258) at android.app.Activity.performCreate(Activity.java:7249) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1222) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2927) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3059) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1724) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:7000) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408) 2022-11-22 15:36:12.219 31358-31358/io.github.kabirnayeem99.v2_survey D/AndroidRuntime: Shutting down VM 2022-11-22 15:36:12.223 31358-31358/io.github.kabirnayeem99.v2_survey E/AndroidRuntime: FATAL EXCEPTION: main Process: io.github.kabirnayeem99.v2_survey, PID: 31358 java.lang.RuntimeException: Unable to start activity ComponentInfo{io.github.kabirnayeem99.v2_survey/io.github.kabirnayeem99.v2_survey.presentation.ContainerActivity}: android.view.InflateException: Binary XML file line #11: Binary XML file line #68: Binary XML file line #68: Error inflating class com.google.android.material.button.MaterialButton at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2974) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3059) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1724) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:7000) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408) Caused by: android.view.InflateException: Binary XML file line #11: Binary XML file line #68: Binary XML file line #68: Error inflating class com.google.android.material.button.MaterialButton Caused by: android.view.InflateException: Binary XML file line #68: Binary XML file line #68: Error inflating class com.google.android.material.button.MaterialButton Caused by: android.view.InflateException: Binary XML file line #68: Error inflating class com.google.android.material.button.MaterialButton Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:334) at android.view.LayoutInflater.createView(LayoutInflater.java:647) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730) at android.view.LayoutInflater.rInflate(LayoutInflater.java:863) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) at android.view.LayoutInflater.inflate(LayoutInflater.java:515) at android.view.LayoutInflater.inflate(LayoutInflater.java:423) at io.github.kabirnayeem99.v2_survey.databinding.FragmentOnboardingBinding.inflate(FragmentOnboardingBinding.java:65) at io.github.kabirnayeem99.v2_survey.presentation.onboarding.OnboardingFragment.onCreateView(OnboardingFragment.kt:25) at androidx.fragment.app.Fragment.performCreateView(Fragment.java:3104) at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:524) at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:261) at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:113) at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1424) at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2968) at androidx.fragment.app.FragmentManager.dispatchViewCreated(FragmentManager.java:2879) at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:3129) at androidx.fragment.app.FragmentStateManager.ensureInflatedView(FragmentStateManager.java:394) at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:260) at androidx.fragment.app.FragmentLayoutInflaterFactory.onCreateView(FragmentLayoutInflaterFactory.java:142) at androidx.fragment.app.FragmentController.onCreateView(FragmentController.java:136) at androidx.fragment.app.FragmentActivity.dispatchFragmentsOnCreateView(FragmentActivity.java:248) at androidx.fragment.app.FragmentActivity.onCreateView(FragmentActivity.java:227) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:780) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730) at android.view.LayoutInflater.rInflate(LayoutInflater.java:863) 2022-11-22 15:36:12.225 31358-31358/io.github.kabirnayeem99.v2_survey E/AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) at android.view.LayoutInflater.parseInclude(LayoutInflater.java:995) at android.view.LayoutInflater.rInflate(LayoutInflater.java:859) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) at android.view.LayoutInflater.inflate(LayoutInflater.java:515) at android.view.LayoutInflater.inflate(LayoutInflater.java:423) at io.github.kabirnayeem99.v2_survey.databinding.ActivityContainerBinding.inflate(ActivityContainerBinding.java:37) at io.github.kabirnayeem99.v2_survey.databinding.ActivityContainerBinding.inflate(ActivityContainerBinding.java:31) at io.github.kabirnayeem99.v2_survey.presentation.ContainerActivity.onCreate(ContainerActivity.kt:26) at android.app.Activity.performCreate(Activity.java:7258) at android.app.Activity.performCreate(Activity.java:7249) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1222) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2927) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3059) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1724) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:7000) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408) Caused by: java.lang.IllegalArgumentException: The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant). at com.google.android.material.internal.ThemeEnforcement.checkTheme(ThemeEnforcement.java:247) at com.google.android.material.internal.ThemeEnforcement.checkMaterialTheme(ThemeEnforcement.java:216) at com.google.android.material.internal.ThemeEnforcement.checkCompatibleTheme(ThemeEnforcement.java:144) at com.google.android.material.internal.ThemeEnforcement.obtainStyledAttributes(ThemeEnforcement.java:76) at com.google.android.material.button.MaterialButton.<init>(MaterialButton.java:230) at com.google.android.material.button.MaterialButton.<init>(MaterialButton.java:221) ... 50 more

kabirnayeem99 commented 2 years ago

Noted, will fix it. Could be something related to external libraries.