Android messaging sdk file provider

20 댓글

  • Eric Nelson
    Zendesk Developer Advocacy
    Hey Ilja,

    Thanks for bringing this to our attention, I've went ahead and passed this along to the corresponding dev team. If they have any questions they'll reach out here in the thread.
    1
  • James

    Same problem, When did you solve this issue?

    0
  • Deepanshu

    same issue here, please solve and update us for the newest version of SDK

    0
  • Eric Nelson
    Zendesk Developer Advocacy

    Hey Folks,

    Thanks for your patience. We've pushed out a fix for this issue. If you upgrade to the most recent version of the mobile sdk (2.3.0) you should be all set.

    Thanks!

    1
  • Ilja Gabbasovs

    Sweet, thanks Eric Nelson

    0
  • Pavel Borzenkov

    The issue remains in mobile sdk (2.3.0)

    Error:
        Attribute provider#androidx.core.content.FileProvider@authorities value=(my.package.name.fileprovider) from AndroidManifest.xml:212:13-70
        is also present at [zendesk.messaging:messaging-android:2.3.0] AndroidManifest.xml:42:13-82 value=(com.getpackage.courier.zendesk.messaging.fileprovider).
        Suggestion: add 'tools:replace="android:authorities"' to <provider> element at AndroidManifest.xml:210:9-218:20 to override.

    Error:
        Attribute meta-data#android.support.FILE_PROVIDER_PATHS@resource value=(@xml/file_paths) from AndroidManifest.xml:217:17-51
        is also present at [zendesk.messaging:messaging-android:2.3.0] AndroidManifest.xml:48:17-51 value=(@xml/files_path).
        Suggestion: add 'tools:replace="android:resource"' to <meta-data> element at AndroidManifest.xml:215:13-217:54 to override.

     

    0
  • Jawad Ahmed

    I am still facing this issue any update on it?

    0
  • Eric Nelson
    Zendesk Developer Advocacy
    Hey Jawad,

    What version of the SDK are you using? Can you provide logs of the error?

    Thanks!
    0
  • Jacques

    I'm also facing this issue in our application that declares the FileProvider, any update about it?

    SDK:

    zendesk.messaging:messaging-android:2.6.0

    Log:

    Manifest merger failed : Attribute meta-data#android.support.FILE_PROVIDER_PATHS@resource value=(@xml/file_paths) from (unknown)
      is also present at [zendesk.messaging:messaging-android:2.6.0] AndroidManifest.xml:55:17-51 value=(@xml/files_path).
    0
  • Oleksandr

    Hello,

    The problem is still not fully fixed, and we must remove ZenDesk SDK because it conflicts with another library.

    Log:

    Manifest merger failed : Attribute meta-data#android.support.FILE_PROVIDER_PATHS@resource value=(@xml/files_path) from [zendesk.messaging:messaging-android:2.6.0] AndroidManifest.xml:55:17-51 is also present at [other:sdk:1.2.3] AndroidManifest.xml:279:17-55 value=(@xml/provider_paths).

    Suggestion: add 'tools:replace="android:resource"' to <meta-data> element at AndroidManifest.xml to override.

    This is a description of a problem and how to fix it.

    https://commonsware.com/blog/2017/06/27/fileprovider-libraries.html

     

    0
  • Jacques

    Hi,

    Thanks Oleksandr, but unfortunately the issue is also related to both Zendesk and another library we use having the same FileProvider name... I believe Zendesk should apply this fix you mentioned to also avoid Manifest Merging issues with other libraries.

    Eric Nelson

    0
  • Greg Katechis
    Zendesk Developer Advocacy

    Hi all! We have a problem ticket opened up with our devs to look into this issue. No timeline at the moment, I'll keep you updated with any new information.

    0
  • Alfonso Garza

    Any update on this?

    0
  • Permanently deleted user

    I was trying to set up the zendesk sdk for my app and I'm facing the same issue. Is there any workaround?

    0
  • Joseph Martian

    It's the same issue for me as well. I'm still facing the same issue despite finding the new update. Anybody who has, please let me know.

    0
  • Permanently deleted user

    Meanwhile, how do you manage to let the users create tickets? This is the first time I try to integrate Zendesk with my app. If I have to use an older SDK version please let me know. Otherwise I guess I'll have to make my own form and use the API to create mannually the tickets. Thanks!

    0
  • Greg Katechis
    Zendesk Developer Advocacy

    Hello all! We have not yet published the release notes, but we have released version 2.8.0 which should contain the fix for this. Please update your projects and let us know if you're still seeing issues.

    0
  • Permanently deleted user

    Hello Greg, thanks for the update. Switching to 2.8.0 now allows me to compile the apk, however my app crashes seconds after it starts. I just added the implementation of the library in gradle. I don't have any instantiation nor any type of usage of any of the classes in the library. If I remove the library from gradle, it works again.

    I'm compiling with sdk version 33. If I use a previous one, it fails during compilation

    The stack trace is:

    FATAL EXCEPTION: OkHttp Dispatcher
        Process: com.avellanedaaltoque.aat, PID: 29942
        java.lang.NoSuchFieldError: No field Companion of type Lokhttp3/internal/platform/Platform$Companion; in class Lokhttp3/internal/platform/Platform; or its superclasses (declaration of 'okhttp3.internal.platform.Platform' appears in /data/app/~~AkWzuAMKjxOSCSmq4QKGPg==/com.avellanedaaltoque.aat-pLhdNmEmwAmgcIsRa6tqFQ==/base.apk!classes18.dex)
            at okhttp3.logging.HttpLoggingInterceptor$Logger$Companion$DefaultLogger.log(HttpLoggingInterceptor.kt:116)
            at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:168)
            at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
            at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
            at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:257)
            at okhttp3.RealCall$AsyncCall.execute(RealCall.java:201)
            at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
            at java.lang.Thread.run(Thread.java:1012)

    0
  • Jacques

    Hi Greg Katechis!

    It seems that the FileProvider name issue was fixed when switching to use SDK 2.8.0, I'll wait to check the release notes once they are available.

    Thanks

    0
  • 明杰 肖

    The app will flash back when opened. This error occurs. The version is 2.8.0. I hope it can help me. Thank you very much 

    java.lang.NoSuchMethodError: No direct method <init>(I)V in class Landroidx/core/content/FileProvider; or its super classes (declaration of 'androidx.core.content.FileProvider' appears in /data/app/~~0OhoGELxx1aN9Tx-vyibNQ==/com.caption.mprint-rYCxFMDhbpihFOkVbuJNqg==/base.apk)
            at zendesk.messaging.android.internal.ZendeskFileProvider.<init>(ZendeskFileProvider.kt:6)
            at java.lang.Class.newInstance(Native Method)
            at android.app.AppComponentFactory.instantiateProvider(AppComponentFactory.java:147)
            at androidx.core.app.CoreComponentFactory.instantiateProvider(CoreComponentFactory.java:67)
            at android.app.ActivityThread.installProvider(ActivityThread.java:8179)
            at android.app.ActivityThread.installContentProviders(ActivityThread.java:7726)
            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7546)
            at android.app.ActivityThread.access$1500(ActivityThread.java:301)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2166)


    0

댓글을 남기려면 로그인하세요.

Zendesk 제공