microsoft / clarity-apps

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

Build Failure #35

Closed iyadhuk closed 8 months ago

iyadhuk commented 8 months ago

Getting build failures with below log

Could not determine the dependencies of task ':react-native-clarity:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':react-native-clarity:debugCompileClasspath'.
   > Could not find com.microsoft.clarity:clarity:2.2.0-manual20240317193429.
     Required by:
         project :react-native-clarity

I have added the below code in index file.

import { LogLevel, initialize } from 'react-native-clarity';

const clarityConfig = { logLevel: LogLevel.Verbose, allowMeteredNetworkUsage: true };

initialize("**",clarityConfig); //removed project id

Not sure what to do here, any suggestions or responses would be great.

yusuf-yldrm commented 8 months ago

Hello @iyadhuk,

Thanks for pointing out the issue with the Clarity package version 2.2.0 for react-native-clarity project. To address this, you might try using a stable version temporarily in your build.gradle in

Path: /node_modules/react-native-clarity/android/build.gradle file

implementation "com.microsoft.clarity:clarity:<stable-version>"

Replace <stable-version> with a known stable version.

ibradwan commented 8 months ago

Sorry for this issue, please upgrade to 2.2.1.