Question

In React Native Android app has issue with gradle 8.2.1

  • 16 May 2024
  • 0 replies
  • 101 views

Hi 

I am using amplitude react native latest sdk @amplitude/analytics-react-native in react native. It is working fine with iOS, but when i try to build with Android, it is return error like as below:

A problem occurred configuring project ':amplitude_analytics-react-native'.
> defaultConfig contains custom BuildConfig fields, but the feature is disabled.
  To enable the feature, add the following to your module-level build.gradle:
  `android.buildFeatures.buildConfig true`

 


Can you guys suggest how we can resolve that issue?

Here, I tried to add this buildConfig flag but the issue is still there.

Thanks

 


0 replies

Be the first to reply!

Reply