Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

NatShare - Free Sharing API

Discussion in 'Assets and Asset Store' started by Lanre, Apr 17, 2018.

  1. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    The receiving app is responsible for parsing the share payload. Given that the video is played back, and is shared properly by iMessage, this means that for some reason Instagram is misreading the video as having a 0 duration. I recommend trying sharing only the video (no text). If this doesn't work, you might have to reach out to Instagram's developer support.
     
  2. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    Do not create a payload without committing it. This will cause a resource leak. Instead, create and commit the payload if your `commit` variable is set to `true`. Can you post the crash logs in a .txt attachment? The logs will contain the reason for the crash.
     
  3. IGOODI_IT

    IGOODI_IT

    Joined:
    Feb 11, 2020
    Posts:
    8
    Hello,
    I just imported NatShare into my project, but it seems that it's incompatible with Firebase SDK. When I try to build, I get hundreds of errors like this one:
    Code (CSharp):
    1. java.lang.RuntimeException: Duplicate class android.support.v4.app.INotificationSideChannel found in modules classes.jar (:androidx.core.core-1.0.0:) and classes.jar (:core-1.0.0-rc02:)
    2.  
    I tired deleting one of the two .aar files but if I delete the Firebase one, it just gets re-imported on build, and if I delete the NatShare one the app builds, but crashes when I try to share the screenshot or save it to camera roll.
    Can you help me please?
     
  4. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    Can you share the logs in a .txt attachment? The logs will contain information on the crash.
     
  5. IGOODI_IT

    IGOODI_IT

    Joined:
    Feb 11, 2020
    Posts:
    8
    Sure! Assuming you mean the editor logs, here you go

    As regards the logs form the crash that happens when I delete the NatShare .aar, logcat doesn't print anything at all, the only thing that appens is an Android system popup that says "[App name] stopped working". If there are other logs let me know...
     

    Attached Files:

  6. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    I need the logs from the device that you are experiencing the crash on. That is where any information about the crash will be logged. You can collect logs from an Android device using the logcat SDK tool.
     
  7. IGOODI_IT

    IGOODI_IT

    Joined:
    Feb 11, 2020
    Posts:
    8
    Sorry, I edited my prevous post while you were replying. I'll double check the logcat logs, maybe they were filtered somehow
     
  8. IGOODI_IT

    IGOODI_IT

    Joined:
    Feb 11, 2020
    Posts:
    8
    Found, here it is, and here's the code:
    Code (CSharp):
    1.  
    2.         Texture2D texture = new Texture2D(Screen.width, Screen.height);
    3.         JPGRecorder recorder = new JPGRecorder(Screen.width, Screen.height);
    4.  
    5.  
    6.         texture.ReadPixels(new Rect(0, 0, Screen.width, Screen.height), 0, 0);
    7.  
    8.         recorder.CommitFrame(texture.GetPixels32());
    9.  
    10.         string s = await recorder.FinishWriting();
    11.  
    12.         Debug.Log("recorded at: " + s);
    13.        
    14.         SavePayload payload = new SavePayload("IGOODI Images");
    15.         payload.AddMedia(s);
    16.         payload.Commit();
    17.  
    18.         new SharePayload().AddMedia(s).Commit();
     

    Attached Files:

  9. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    You seem to be trying to use a `JPGRecorder` to take a screenshot. Don't do this. The `JPGRecorder` is for recording image sequences, and as such it returns the path to the directory containing all the images. Unity already has functions for taking screenshots, so use those instead. NatCorder is not a screenshot plugin.
     
    IGOODI_IT likes this.
  10. IGOODI_IT

    IGOODI_IT

    Joined:
    Feb 11, 2020
    Posts:
    8
    You are right, the problem was that the string contained the path to the directory, not to the screenshot. I had to append "/1.jpg" and now it's working!
    I understand that I'm mis-using the plugin, but using NatCorder with InputCamera is the only way I was able to take a screenshot without including the UI (and it was already in place because I also need to record video). I understand it's possible to get the same result by doing some elaborate tricks with cameras and render textures, but at the moment they're beyond my level.
    For now it seems to be working flawlessly... is there any potential problem I might run into?
    (thank you for your help, by the way)
     
  11. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    You already have a texture that does not contain the UI. All you have to do is call `EncodeToJPG` on the `texture` then write the byte array to a file. The `JPGRecorder` does not handle any rendering setup whatsoever. All it does is write pixel buffers (which you already have with `texture.GetPixels32()`) to an image sequence on the file system. If the file naming convention of the recorder changes, your code will break, so I recommend against using the JPGRecorder.
     
  12. sabanmete57

    sabanmete57

    Joined:
    Mar 20, 2020
    Posts:
    15
    Hi, is it possible to add watermark on my video record using natRecorder ? Thanks.
     
  13. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    Hi there. Just a quick note: please post in the NatCorder forum thread for any questions related to NatCorder. You can use a secondary game camera to add a watermark. Add the second camera, then add a UI canvas that can only be seen by this camera (using layer masks). You can add your watermark image in the canvas. Then record your main camera and this second camera with CameraInput.
     
    sabanmete57 likes this.
  14. purplelilgirlmakesgames

    purplelilgirlmakesgames

    Joined:
    Jan 9, 2015
    Posts:
    9
    Hi,

    I'm getting this error in my Unity Cloud Build, I wonder if it's caused by NatShare:

    Code (CSharp):
    1. ;  Undefined symbols for architecture arm64
    2. 34116:> Symbol: _NSGetThumbnail
    3. 34117:> Referenced from: _NatShareBridge_GetThumbnail_m2DFB5D72008596401142857674CE555411C0CFF2 in Assembly-CSharp2.o
    4. 34118: ▸ ❌;  ld: symbol(s) not found for architecture arm64
    5. 34119: ▸ ❌;  clang: error: linker command failed with exit code 1 (use -v to see invocation)
    I am using the latest version from the AssetStore.

    Thanks.
     
  15. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    Delete NatShare in your project, reimport it from the Asset Store, then recreate your UCB build (clear any build caches).
     
  16. GilbertLau

    GilbertLau

    Joined:
    Dec 3, 2017
    Posts:
    26
    I got the following duplicate class error when I build my project to android 7.1 and IL2CPP with .net 2.0. If I delete the core-1.0.0-rc02 from NatSuite/plugin/android, my project would compile but then crash when launch with error saying androidx library not found. Would you please help? I am using both NatDevice and Natcorder, so would like to have this as well. Thanks.
    1. java.lang.RuntimeException: Duplicate class android.support.v4.app.INotificationSideChannel found in modules classes.jar :)androidx.core.core-1.0.0:) and classes.jar :)core-1.0.0-rc02:)
     
  17. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    Can you try deleting the other library (the one not packaged with NatShare) to see if that works?
     
  18. ericford

    ericford

    Joined:
    Jul 28, 2017
    Posts:
    5
    Hi there, looking for some help with an issue I am getting when I try to simply share some text. I am using this code that triggers on a button press:

    Code (CSharp):
    1. var payload = new SharePayload().AddText("testing");
    2.         payload.Commit();
    When called, my Android phone shows a native "Choose an action. No apps can perform this action". (image attached).

    Any ideas why? I have other places in the same app where I share video and it works as expected (giving a list of apps I can share the video to).

    Thanks
     

    Attached Files:

  19. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    It would seem that you don't have any apps that receives plain text and nothing else.
     
  20. ericford

    ericford

    Joined:
    Jul 28, 2017
    Posts:
    5
    Sorry, that's not the problem. I ended up using EasyMobile asset and their solution for sharing works flawlessly. I tried sharing the exact same message I tried with your plugin and it was able to share the message just fine. Share prompt shows a lot of apps on my phone that can receive plain text lol
     
  21. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    Ah this is good to know. I'll check it out when I can, thanks.
     
  22. Kaleval

    Kaleval

    Joined:
    Apr 19, 2016
    Posts:
    7
    Hi,
    I'm using the latest and gratest version of NatShare, and I'm getting an unsatisfied constraint error on iOS 14.0.1.
    When share() function is called, iOS has this nice looking zoom-out effect with black border around the app, then the share screen appears, and right after sharing the app freezes.


    2020-10-26 11:04:13.707052+0200 qa[1822:504297] [LayoutConstraints] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want.
    Try this:
    (1) look at each constraint and try to figure out which you don't expect;
    (2) find the code that added the unwanted constraint or constraints and fix it.
    (
    "<NSLayoutConstraint:0x281443ca0 _UIActivityActionCellTitleLabel:0x125bb9180.height >= 22 (active)>",
    "<NSLayoutConstraint:0x2814437f0 V:|-(15)-[_UIActivityActionCellTitleLabel:0x125bb9180] (active, names: '|':UIView:0x12b5db390 )>",
    "<NSLayoutConstraint:0x281443840 V:[_UIActivityActionCellTitleLabel:0x125bb9180]-(15)-| (active, names: '|':UIView:0x12b5db390 )>",
    "<NSLayoutConstraint:0x281455ea0 'UIView-Encapsulated-Layout-Height' UIView:0x12b5db390.height == 50.3333 (active)>"
    )

    Opened an issue in github
    https://github.com/natsuite/NatShare-API/issues/101#issue-729398829
     
  23. Lando9000

    Lando9000

    Joined:
    Apr 14, 2013
    Posts:
    36
    I’m using NatCorder, NatDevice and Natshare. Everything works great from sharing to screen recordings/previews apart from the SavePayload, crashes on IOS and Android when trying to save video or image. Is this a known bug?

    I have made a clean project which only consists of Natcorder and NatShare, i simply add a simple save payload at the bottom of stop recording inside the ReplayCam example script and scene, consistantly crashes on my two test devices iPhone 11 Pro iOS 14 and Samsung S8 Android 9
    - Unity 2020.1.5f1
    - latest version of the plugins

    Example code. Note showing a preview of the video works but crashes on save.


    Code (CSharp):
    1.  
    2. public async void StopRecording () {
    3.             // Mute microphone
    4.             microphoneSource.mute = true;
    5.             // Stop recording
    6.             audioInput?.Dispose();
    7.             cameraInput.Dispose();
    8.             var path = await recorder.FinishWriting();
    9.             // Playback recording
    10.             Debug.Log($"Saved recording to: {path}");
    11.             //Handheld.PlayFullScreenMovie($"file://{path}");
    12.  
    13.             bool success = await new SavePayload().AddMedia(path).Commit();
    14.         }
     
    Last edited: Oct 28, 2020
  24. Kaleval

    Kaleval

    Joined:
    Apr 19, 2016
    Posts:
    7
    The code looks mkay,
    Do you have any errors popping up in the debug console?
    Does the app has storage permission? o_O
     
    Lanre likes this.
  25. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    Thanks for bringing this to my attention. I'll check it out.
     
  26. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    In the case of a crash always share the logs, along with the stack trace if available. That will contain the exact reason for any crash. This sounds like a permissions issue.
     
  27. mtalbott

    mtalbott

    Joined:
    Dec 21, 2011
    Posts:
    125
  28. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    mtalbott likes this.
  29. mtalbott

    mtalbott

    Joined:
    Dec 21, 2011
    Posts:
    125
    have you had a chance to take a look?
     
  30. Yuri1976

    Yuri1976

    Joined:
    Mar 23, 2016
    Posts:
    7
    Hello everyone. I have just bought NatCorder

    So far everything seems pretty straightforward. I can capture and save the video on the device (using NatShare) and can tweak the screen resolution and other parameters pretty easily.

    However, I have a couple of probably stupid questions.

    -> Microphone doesn't seem to be working. I am only testing on Android for now but I am wondering if I have to request permission and access before.
    -> ReplayCam Scene. the Preview panel hide while playing. When I try to do it in another scene It stays in front of the camera...is there anything I am missing?
    -> UI. Any way to hide the UI elements? I am using an ARCamera and I have tried to use another camera for UI but it doesn't seem to be working.

    Any help?

    Cheers
    Yuri
     
  31. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    Yup check out my comments on the issues.
     
  32. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    Hey there, for NatCorder issues please post on the NatCorder forum thread.
    The app should request camera and microphone permissions the very first time you open it. If not, enable it in your device settings. And make sure that "record microphone" is enabled (I presume you are running the ReplayCam example).
    I'm not sure what you're describing here. What about another scene? I don't recommend using ReplayCam in/with another scene. The ReplayCam example is made for illustration purposes only. It doesn't support anything beyond what is given.
    You can use layer masks so that you have one camera that sees the 3D objects and another that sees only the UI (this step is Unity-specific and has nothing to do with NatCorder). You can then record the former camera with a CameraInput.
     
  33. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    NatShare 1.2.5 is ready with the iOS crash when the user cancels. I've moved NatShare to use the Unity Package Manager system. It's a lot cleaner, so check out the main README on how to import NatShare now.
     
    timbokoppers likes this.
  34. FITT3DINC

    FITT3DINC

    Joined:
    Nov 19, 2020
    Posts:
    1
    Hello,

    I'm having trouble getting the sharing the NatCorder to work with Natshare API for iOS. Here are screenshots and I can't figure out solutions.

    If anyone could please help me that would mean a lot, thank you so much!
     

    Attached Files:

  35. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    Hey I just replied to your email. You need to import NatShare's namespace, `NatSuite.Sharing`.
     
  36. JRomacho

    JRomacho

    Joined:
    May 29, 2019
    Posts:
    3
    Is it still really a fundamental requirement with the latest version? We are pointing our app to API 30 and it is sharing and saving to camera roll even with all multimedia storage permissions denied in the device. We would like to avoid those permissions in the manifest too.
     
    Last edited: May 10, 2021
  37. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    I recommend opening an issue for this. I can back-test on older versions of Android to confirm that NatShare doesn't require it. I agree that asking for unnecessary permissions is bad UX, especially with today's general attitudes on privacy.
     
  38. JRomacho

    JRomacho

    Joined:
    May 29, 2019
    Posts:
    3
    Well, we made more tests, and it is certainly required for API 29, but not for API 30, so we added android:maxSdkVersion="29" to the permissions in the manifest so they won't appear with Android 11
     
  39. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    Thanks for letting me know.
     
  40. junaid_unity528

    junaid_unity528

    Joined:
    Oct 21, 2021
    Posts:
    2
    Hi,

    Is there a way to share a video by providing an online URL to the relevant video?
    Or the video necessarily needs to be on the local device?
     
  41. junaid_unity528

    junaid_unity528

    Joined:
    Oct 21, 2021
    Posts:
    2
    Also I have another issue:

    When I add both an image and a text in the SharePayload object. Then in the sharing options of the native UI (iOS), the following apps just pick up text and not the image itself:
    • Facebook
    • Slack
    • Whatsapp
    • Linkedin
    It's important to note that when I just add an image and exclude the text from the SharePayload object, then the mentioned apps seem to pick up /detect images and work perfectly fine!
     
  42. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    Currently the video has to be local on the device.
    This behaviour is controlled by the receiving app. The receiving app decides what parts of the payload to keep and what parts to discard.
     
  43. zre142g18985

    zre142g18985

    Joined:
    Nov 7, 2020
    Posts:
    2
    Thank you for the wonderful assets.

    Android build error
    If you prepare a new project and then build it on Android at the same time as the AdMob plugin, a build error will occur.
    The cause seems to be duplicate files.
    Since the AdMob plug-in file is managed by "External Dependency Manager", it seems that it will be restored even if it is deleted. Is there a way to solve this?

    import
    ・ GoogleMobileAds-v6.1.2.unitypackage
    ・ NatShare 1.2.5

    PlayerSettings
    · Minimum API level: API level 24
    -Scripting back end: IL2CPP
    -Target architecture: ARMv7 → check off, ARM64 → check on

    Code (CSharp):
    1. Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details
    2.  
    3. > Configure project :launcher
    4. WARNING: The option setting 'android.enableR8=false'
    Code (CSharp):
    1. Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    2.  
    3. FAILURE: Build failed with an exception.
    4.  
    5. * What went wrong:
    6. Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
    7. > 1 exception was raised by workers:
    8.   java.lang.RuntimeException: Duplicate class android.support.v4.app.INotificationSideChannel found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    9.   Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    10.   Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    11.   Duplicate class android.support.v4.graphics.drawable.IconCompatParcelizer found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    12.   Duplicate class android.support.v4.os.IResultReceiver found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    13.   Duplicate class android.support.v4.os.IResultReceiver$Stub found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    14.   Duplicate class android.support.v4.os.IResultReceiver$Stub$Proxy found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    15.   Duplicate class android.support.v4.os.ResultReceiver found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    16.   Duplicate class android.support.v4.os.ResultReceiver$1 found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    17.   Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    18.   Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    19.   Duplicate class androidx.core.accessibilityservice.AccessibilityServiceInfoCompat found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    20.   Duplicate class androidx.core.app.ActivityCompat found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    21.   Duplicate class androidx.core.app.ActivityCompat$1 found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    22.   Duplicate class androidx.core.app.ActivityCompat$OnRequestPermissionsResultCallback found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    23.   Duplicate class androidx.core.app.ActivityCompat$PermissionCompatDelegate found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    24.   Duplicate class androidx.core.app.ActivityCompat$RequestPermissionsRequestCodeValidator found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    25.   Duplicate class androidx.core.app.ActivityCompat$SharedElementCallback21Impl found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    26.   Duplicate class androidx.core.app.ActivityCompat$SharedElementCallback21Impl$1 found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    27.   Duplicate class androidx.core.app.ActivityManagerCompat found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    28.   Duplicate class androidx.core.app.ActivityOptionsCompat found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    29.   Duplicate class androidx.core.app.ActivityOptionsCompat$ActivityOptionsCompatImpl found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    30.   Duplicate class androidx.core.app.AlarmManagerCompat found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    31.   Duplicate class androidx.core.app.AppComponentFactory found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    32.   Duplicate class androidx.core.app.AppLaunchChecker found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    33.   Duplicate class androidx.core.app.AppOpsManagerCompat found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    34.   Duplicate class androidx.core.app.BundleCompat found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    35.   Duplicate class androidx.core.app.BundleCompat$BundleCompatBaseImpl found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    36.   Duplicate class androidx.core.app.ComponentActivity found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    37.   Duplicate class androidx.core.app.ComponentActivity$ExtraData found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    38.   Duplicate class androidx.core.app.CoreComponentFactory found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    39.   Duplicate class androidx.core.app.CoreComponentFactory$CompatWrapped found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    40.   Duplicate class androidx.core.app.FrameMetricsAggregator found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    41.   Duplicate class androidx.core.app.FrameMetricsAggregator$FrameMetricsApi24Impl found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    42.   Duplicate class androidx.core.app.FrameMetricsAggregator$FrameMetricsApi24Impl$1 found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    43.   Duplicate class androidx.core.app.FrameMetricsAggregator$FrameMetricsBaseImpl found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    44.   Duplicate class androidx.core.app.FrameMetricsAggregator$MetricType found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    45.   Duplicate class androidx.core.app.JobIntentService found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    46.   Duplicate class androidx.core.app.JobIntentService$CommandProcessor found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    47.   Duplicate class androidx.core.app.JobIntentService$CompatJobEngine found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    48.   Duplicate class androidx.core.app.JobIntentService$CompatWorkEnqueuer found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    49.   Duplicate class androidx.core.app.JobIntentService$CompatWorkItem found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    50.   Duplicate class androidx.core.app.JobIntentService$GenericWorkItem found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    51.   Duplicate class androidx.core.app.JobIntentService$JobServiceEngineImpl found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    52.   Duplicate class androidx.core.app.JobIntentService$JobServiceEngineImpl$WrapperWorkItem found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    53.   Duplicate class androidx.core.app.JobIntentService$JobWorkEnqueuer found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    54.   Duplicate class androidx.core.app.JobIntentService$WorkEnqueuer found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    55.   Duplicate class androidx.core.app.NavUtils found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    56.   Duplicate class androidx.core.app.NotificationBuilderWithBuilderAccessor found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    57.   Duplicate class androidx.core.app.NotificationCompat found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    58.   Duplicate class androidx.core.app.NotificationCompat$Action found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    59.   Duplicate class androidx.core.app.NotificationCompat$Action$Builder found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    60.   Duplicate class androidx.core.app.NotificationCompat$Action$Extender found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    61.   Duplicate class androidx.core.app.NotificationCompat$Action$SemanticAction found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    62.   Duplicate class androidx.core.app.NotificationCompat$Action$WearableExtender found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    63.   Duplicate class androidx.core.app.NotificationCompat$BadgeIconType found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    64.   Duplicate class androidx.core.app.NotificationCompat$BigPictureStyle found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    65.   Duplicate class androidx.core.app.NotificationCompat$BigTextStyle found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    66.   Duplicate class androidx.core.app.NotificationCompat$Builder found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    67.   Duplicate class androidx.core.app.NotificationCompat$CarExtender found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    68.   Duplicate class androidx.core.app.NotificationCompat$CarExtender$UnreadConversation found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    69.   Duplicate class androidx.core.app.NotificationCompat$CarExtender$UnreadConversation$Builder found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    70.   Duplicate class androidx.core.app.NotificationCompat$DecoratedCustomViewStyle found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    71.   Duplicate class androidx.core.app.NotificationCompat$Extender found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    72.   Duplicate class androidx.core.app.NotificationCompat$GroupAlertBehavior found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    73.   Duplicate class androidx.core.app.NotificationCompat$InboxStyle found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    74.   Duplicate class androidx.core.app.NotificationCompat$MessagingStyle found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    75.   Duplicate class androidx.core.app.NotificationCompat$MessagingStyle$Message found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    76.   Duplicate class androidx.core.app.NotificationCompat$NotificationVisibility found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    77.   Duplicate class androidx.core.app.NotificationCompat$StreamType found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    78.   Duplicate class androidx.core.app.NotificationCompat$Style found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    79.   Duplicate class androidx.core.app.NotificationCompat$WearableExtender found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    80.   Duplicate class androidx.core.app.NotificationCompatBuilder found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    81.   Duplicate class androidx.core.app.NotificationCompatExtras found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    82.   Duplicate class androidx.core.app.NotificationCompatJellybean found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    83.   Duplicate class androidx.core.app.NotificationCompatSideChannelService found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    84.   Duplicate class androidx.core.app.NotificationCompatSideChannelService$NotificationSideChannelStub found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    85.   Duplicate class androidx.core.app.NotificationManagerCompat found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    86.   Duplicate class androidx.core.app.NotificationManagerCompat$CancelTask found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) an<message truncated>
    Code (CSharp):
    1. CommandInvokationFailure: Gradle build failed.
    2. /Applications/Unity/Hub/Editor/2020.3.18f1/PlaybackEngines/AndroidPlayer/OpenJDK/bin/java -classpath "/Applications/Unity/Hub/Editor/2020.3.18f1/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
    3.  
    4. stderr[
    5. Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    6.  
    7. FAILURE: Build failed with an exception.
    8.  
    9. * What went wrong:
    10. Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
    11. > 1 exception was raised by workers:
    12.   java.lang.RuntimeException: Duplicate class android.support.v4.app.INotificationSideChannel found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    13.   Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    14.   Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    15.   Duplicate class android.support.v4.graphics.drawable.IconCompatParcelizer found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    16.   Duplicate class android.support.v4.os.IResultReceiver found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    17.   Duplicate class android.support.v4.os.IResultReceiver$Stub found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    18.   Duplicate class android.support.v4.os.IResultReceiver$Stub$Proxy found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    19.   Duplicate class android.support.v4.os.ResultReceiver found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    20.   Duplicate class android.support.v4.os.ResultReceiver$1 found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    21.   Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    22.   Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    23.   Duplicate class androidx.core.accessibilityservice.AccessibilityServiceInfoCompat found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    24.   Duplicate class androidx.core.app.ActivityCompat found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    25.   Duplicate class androidx.core.app.ActivityCompat$1 found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    26.   Duplicate class androidx.core.app.ActivityCompat$OnRequestPermissionsResultCallback found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    27.   Duplicate class androidx.core.app.ActivityCompat$PermissionCompatDelegate found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    28.   Duplicate class androidx.core.app.ActivityCompat$RequestPermissionsRequestCodeValidator found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    29.   Duplicate class androidx.core.app.ActivityCompat$SharedElementCallback21Impl found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    30.   Duplicate class androidx.core.app.ActivityCompat$SharedElementCallback21Impl$1 found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    31.   Duplicate class androidx.core.app.ActivityManagerCompat found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    32.   Duplicate class androidx.core.app.ActivityOptionsCompat found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    33.   Duplicate class androidx.core.app.ActivityOptionsCompat$ActivityOptionsCompatImpl found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    34.   Duplicate class androidx.core.app.AlarmManagerCompat found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    35.   Duplicate class androidx.core.app.AppComponentFactory found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    36.   Duplicate class androidx.core.app.AppLaunchChecker found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    37.   Duplicate class androidx.core.app.AppOpsManagerCompat found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    38.   Duplicate class androidx.core.app.BundleCompat found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    39.   Duplicate class androidx.core.app.BundleCompat$BundleCompatBaseImpl found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    40.   Duplicate class androidx.core.app.ComponentActivity found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    41.   Duplicate class androidx.core.app.ComponentActivity$ExtraData found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    42.   Duplicate class androidx.core.app.CoreComponentFactory found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    43.   Duplicate class androidx.core.app.CoreComponentFactory$CompatWrapped found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    44.   Duplicate class androidx.core.app.FrameMetricsAggregator found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    45.   Duplicate class androidx.core.app.FrameMetricsAggregator$FrameMetricsApi24Impl found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    46.   Duplicate class androidx.core.app.FrameMetricsAggregator$FrameMetricsApi24Impl$1 found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    47.   Duplicate class androidx.core.app.FrameMetricsAggregator$FrameMetricsBaseImpl found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    48.   Duplicate class androidx.core.app.FrameMetricsAggregator$MetricType found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    49.   Duplicate class androidx.core.app.JobIntentService found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    50.   Duplicate class androidx.core.app.JobIntentService$CommandProcessor found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    51.   Duplicate class androidx.core.app.JobIntentService$CompatJobEngine found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    52.   Duplicate class androidx.core.app.JobIntentService$CompatWorkEnqueuer found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    53.   Duplicate class androidx.core.app.JobIntentService$CompatWorkItem found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    54.   Duplicate class androidx.core.app.JobIntentService$GenericWorkItem found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    55.   Duplicate class androidx.core.app.JobIntentService$JobServiceEngineImpl found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    56.   Duplicate class androidx.core.app.JobIntentService$JobServiceEngineImpl$WrapperWorkItem found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    57.   Duplicate class androidx.core.app.JobIntentService$JobWorkEnqueuer found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    58.   Duplicate class androidx.core.app.JobIntentService$WorkEnqueuer found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    59.   Duplicate class androidx.core.app.NavUtils found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    60.   Duplicate class androidx.core.app.NotificationBuilderWithBuilderAccessor found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    61.   Duplicate class androidx.core.app.NotificationCompat found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    62.   Duplicate class androidx.core.app.NotificationCompat$Action found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    63.   Duplicate class androidx.core.app.NotificationCompat$Action$Builder found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    64.   Duplicate class androidx.core.app.NotificationCompat$Action$Extender found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    65.   Duplicate class androidx.core.app.NotificationCompat$Action$SemanticAction found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    66.   Duplicate class androidx.core.app.NotificationCompat$Action$WearableExtender found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    67.   Duplicate class androidx.core.app.NotificationCompat$BadgeIconType found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    68.   Duplicate class androidx.core.app.NotificationCompat$BigPictureStyle found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    69.   Duplicate class androidx.core.app.NotificationCompat$BigTextStyle found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    70.   Duplicate class androidx.core.app.NotificationCompat$Builder found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    71.   Duplicate class androidx.core.app.NotificationCompat$CarExtender found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    72.   Duplicate class androidx.core.app.NotificationCompat$CarExtender$UnreadConversation found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    73.   Duplicate class androidx.core.app.NotificationCompat$CarExtender$UnreadConversation$Builder found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    74.   Duplicate class androidx.core.app.NotificationCompat$DecoratedCustomViewStyle found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    75.   Duplicate class androidx.core.app.NotificationCompat$Extender found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    76.   Duplicate class androidx.core.app.NotificationCompat$GroupAlertBehavior found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    77.   Duplicate class androidx.core.app.NotificationCompat$InboxStyle found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    78.   Duplicate class androidx.core.app.NotificationCompat$MessagingStyle found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    79.   Duplicate class androidx.core.app.NotificationCompat$MessagingStyle$Message found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    80.   Duplicate class androidx.core.app.NotificationCompat$NotificationVisibility found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    81.   Duplicate class androidx.core.app.NotificationCompat$StreamType found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    82.   Duplicate class androidx.core.app.NotificationCompat$Style found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    83.   Duplicate class androidx.core.app.NotificationCompat$WearableExtender found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    84.   Duplicate class androidx.core.app.NotificationCompatBuilder found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    85.   Duplicate class androidx.core.app.NotificationCompatExtras found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    86.   Duplicate class androidx.core.app.NotificationCompatJellybean found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    87.   Duplicate class androidx.core.app.NotificationCompatSideChannelService found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
    88.   Duplicate class androidx.core.app.NotificationCompatSideChannelService$NotificationSideChannelStub found in modules androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02<message truncated>
     
  44. christianpugger

    christianpugger

    Joined:
    Mar 7, 2015
    Posts:
    3
    is it possible to identify when the panel is active and when it is closed?
     
  45. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    Hey there, this happens because NatShare includes the androidx support library. You'll have to delete NatShare's copy. To do so, add NatShare as an inline package:
    1. Remove `api.natsuite.natshare` from your `manifest.json`.
    2. Download the NatShare repo as a zip file.
    3. Unzip it and delete core-1.0.0-rc02.aar in Plugins > Android.
    4. Place the NatShare directory in your project's `Packages` folder
     
  46. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    Hey there, I presume you mean the OS sharing panel? If so, no it isn't possible to tell when it is open.
     
  47. zre142g18985

    zre142g18985

    Joined:
    Nov 7, 2020
    Posts:
    2
    Thank you for letting me know the countermeasures.
    The build was completed without any problems.
    It's really the best asset.
    Best regards.
     
  48. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,795
    That's great to hear. Thanks for letting me know!
     
  49. dreamtravis

    dreamtravis

    Joined:
    Aug 3, 2020
    Posts:
    2
    Hi Lanre! Not sure if others are seeing this but the Assets Store version of Nat Share only shows one file (NatShare.cs) whereas the Github version has a number of Scripts and the plugins.

     
  50. AcodeBank

    AcodeBank

    Joined:
    Oct 13, 2015
    Posts:
    2
    Hello,I get the following error when committing SharePayload on Android 12.
    Could you help me please?

    -Unity 2019.4.16f1
    -Minimum API Level 24
    -Target API Level 31+
    -NatShare 1.2.5

    Code (CSharp):
    1. FATAL EXCEPTION: SharePayload
    2. Process: jp.Hoge.Hoge, PID: 12804
    3. java.lang.IllegalArgumentException: jp.Hoge.Hoge: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
    4. Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
    5.     at android.app.PendingIntent.checkFlags(PendingIntent.java:375)
    6.     at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:645)
    7.     at android.app.PendingIntent.getBroadcast(PendingIntent.java:632)
    8.     at api.natsuite.natshare.SharePayload.lambda$commit$1$SharePayload(SharePayload.java:96)
    9.     at api.natsuite.natshare.-$$Lambda$SharePayload$Gup6tDHrqpirNhknTmZTJkvjgo4.run(Unknown Source:4)
    10.     at android.os.Handler.handleCallback(Handler.java:938)
    11.     at android.os.Handler.dispatchMessage(Handler.java:99)
    12.     at android.os.Looper.loopOnce(Looper.java:201)
    13.     at android.os.Looper.loop(Looper.java:288)
    14.     at android.os.HandlerThread.run(HandlerThread.java:67)
    15.  
     
unityunity