microsoft / clarity-apps

Repo for distributing Clarity Apps packages
MIT License
37 stars 2 forks source link

build failing on React native android #30

Closed mubashiralisiddiqui closed 3 months ago

mubashiralisiddiqui commented 5 months ago

I am trying with following versions

React native version "react-native": "0.63.5",
"react-native-clarity": "^2.1.0",
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_292-b10)
  buildToolsVersion = "30.0.2"
  minSdkVersion = 23
 compileSdkVersion = 33
 targetSdkVersion = 33

getting error when I try to run on android react-native-clarity/android/src/main/java/com/microsoft/clarity/reactnative/ClarityModule.kt: (80, 21): Type mismatch: inferred type is String? but String was expected

FAILURE: Build failed with an exception.

maryamshal commented 5 months ago

@mubashiralisiddiqui Sorry to hear that you're facing issues with integration. Could you please share you initialization code with us to be of better assistance?

mubashiralisiddiqui commented 5 months ago
image

@maryamshal this is how i am initializing on root index.js

maryamshal commented 5 months ago

Hello @mubashiralisiddiqui, We're investigating the error. However, please note that we officially support react-native versions > 0.64 as per this documentation. So kindly upgrade if possible. Regards, Maryam