Skip to content

Release 3.0.3#67

Merged
prithivraj merged 1 commit into
mainfrom
raj/release_3_0_3
May 5, 2022
Merged

Release 3.0.3#67
prithivraj merged 1 commit into
mainfrom
raj/release_3_0_3

Conversation

@prithivraj

Copy link
Copy Markdown
Contributor

Fixes android compilation issue

@prithivraj prithivraj merged commit 3db9b1a into main May 5, 2022
@diegodelvalle

Copy link
Copy Markdown

Hi @prithivraj

I'm facing the following issue when compiling the app in release mode using 3.0.3. This appears to be happening because Intercom is triggering a Survey. Not having this issue on development.

RN: 0.66.4
Android: 12
intercom-react-native: 3.0.3

    java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/compose/ui/node/TreeSet;
        at androidx.compose.ui.node.DepthSortedSet.<init>(DepthSortedSet.kt:47)
        at androidx.compose.ui.node.MeasureAndLayoutDelegate.<init>(MeasureAndLayoutDelegate.kt:42)
        at androidx.compose.ui.platform.AndroidComposeView.<init>(AndroidComposeView.android.kt:299)
        at androidx.compose.ui.platform.Wrapper_androidKt.setContent(Wrapper.android.kt:80)
        at androidx.compose.ui.platform.AbstractComposeView.ensureCompositionCreated(ComposeView.android.kt:251)
        at androidx.compose.ui.platform.AbstractComposeView.onAttachedToWindow(ComposeView.android.kt:283)
        at android.view.View.dispatchAttachedToWindow(View.java:21971)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:4293)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:4302)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:4302)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:4302)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:4302)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:4302)
        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3363)
        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2831)
        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:10311)
        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1063)
        at android.view.Choreographer.doCallbacks(Choreographer.java:845)
        at android.view.Choreographer.doFrame(Choreographer.java:780)
        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1048)
        at android.os.Handler.handleCallback(Handler.java:938)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loopOnce(Looper.java:226)
        at android.os.Looper.loop(Looper.java:313)
        at android.app.ActivityThread.main(ActivityThread.java:8641)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1133)

Let me know if you need something else and thanks in advance for the help!

@diegodelvalle

Copy link
Copy Markdown

Hi @prithivraj

I'm facing the following issue when compiling the app in release mode using 3.0.3. This appears to be happening because Intercom is triggering a Survey. Not having this issue on development.

RN: 0.66.4 Android: 12 intercom-react-native: 3.0.3

    java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/compose/ui/node/TreeSet;
        at androidx.compose.ui.node.DepthSortedSet.<init>(DepthSortedSet.kt:47)
        at androidx.compose.ui.node.MeasureAndLayoutDelegate.<init>(MeasureAndLayoutDelegate.kt:42)
        at androidx.compose.ui.platform.AndroidComposeView.<init>(AndroidComposeView.android.kt:299)
        at androidx.compose.ui.platform.Wrapper_androidKt.setContent(Wrapper.android.kt:80)
        at androidx.compose.ui.platform.AbstractComposeView.ensureCompositionCreated(ComposeView.android.kt:251)
        at androidx.compose.ui.platform.AbstractComposeView.onAttachedToWindow(ComposeView.android.kt:283)
        at android.view.View.dispatchAttachedToWindow(View.java:21971)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:4293)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:4302)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:4302)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:4302)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:4302)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:4302)
        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3363)
        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2831)
        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:10311)
        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1063)
        at android.view.Choreographer.doCallbacks(Choreographer.java:845)
        at android.view.Choreographer.doFrame(Choreographer.java:780)
        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1048)
        at android.os.Handler.handleCallback(Handler.java:938)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loopOnce(Looper.java:226)
        at android.os.Looper.loop(Looper.java:313)
        at android.app.ActivityThread.main(ActivityThread.java:8641)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1133)

Let me know if you need something else and thanks in advance for the help!

Just found the solution to this.

Adding implementation 'androidx.compose.ui:ui:1.0.0-beta06' to app/build.gradle fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants