Skip to content

Android - MainApplication.kt Unresolved reference: IterableApi #793

@miarevalo10

Description

@miarevalo10

Issue

We have updated from 2.02 to 2.1.0 while also enabling the new architecture on our app and we are facing an error when building android

> Task :app:compileDebugKotlin FAILED
MainApplication.kt:23:12 Unresolved reference: iterable
MainApplication.kt:55:5 Unresolved reference: IterableApi
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

These lines (IterableApi.setContext(this) were added following Iterable's docs guidance, and it was working until we made this upgrade to 2.1.0

What I've tried so far

  • I tried to remove those lines as I did not see them in the example project, and although that made the build pass, when the app was opened I am now seeing this
Image

What is the current guidance for installing this sdk for react native + android?
We are currently using:

"react-native": "0.76.9",
"@iterable/react-native-sdk": "~2.1.0",
"expo": "52.0.19",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions