App Crashes | Community
Skip to main content

App Crashes

  • July 24, 2023
  • 3 replies
  • 0 views

Durval11

Hi,

I am trying to use ZenDesk SDK in my Flutter App with Native Code.

I have a native app on iOS and Android with ZenDesk implemented.

But I´m getting this error now when I try to use this method below:
RequestActivity.builder().show(context)


Unable to start activity ComponentInfo{br.com.flowing/zendesk.support.request.RequestActivity}: android.view.InflateException: Binary XML file line #13 in br.com.flowing:layout/zs_activity_request: Binary XML file line #13 in br.com.flowing:layout/zs_activity_request: Error inflating class com.google.android.material.appbar.AppBarLayout


implementation 'com.google.android.material:material:1.7.0'
implementation "androidx.appcompat:appcompat:$appcompat_version"
implementation "androidx.appcompat:appcompat-resources:$appcompat_version"
implementation group: 'com.zendesk', name: 'support', version: '5.1.2'

I have already imported the material. Could you help me with this issue?

3 replies

Tipene
  • August 3, 2023
Hi Durval,
 
Apologies for the delay in someone getting to this! Are you still experiencing issues here? If so, let me know and I can take a look in more detail.
 
Thanks!
 
Tipene

Tej
  • January 24, 2024

@durval11 Have you managed to fix it yet ?

I'm still facing this issue @tipene


Durval12
  • January 24, 2024
<activity
            android:name=".{nameApp}.MainActivity"
            android:exported="true"
            android:launchMode="singleTop"
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">
            <!-- Specifies an Android theme to apply to this Activity as soon as
                 the Android process has started. This theme is visible to the user
                 while the Flutter UI initializes. After that, this theme continues
                 to determine the Window background behind the Flutter UI. -->
            <meta-data
              android:name="io.flutter.embedding.android.NormalTheme"
              android:resource="@style/NormalTheme"
              />
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>`


@tej