Skip to content

Adapty is causing issues with latest MMKV (v4) #209

@XChikuX

Description

@XChikuX

Description

[RUN_GRADLEW] > Task :app:processDebugMainManifest FAILED
[RUN_GRADLEW] 	is also present at [io.adapty:android-sdk:3.11.1] AndroidManifest.xml:9:18-70 value=(@xml/adapty_backup_rules).
[RUN_GRADLEW] [io.github.zhongwuzw:mmkv:2.2.4] /home/runner/.gradle/caches/8.14.3/transforms/02818c6dd0f1044e7f3e7c0c3065f8e1/transformed/mmkv-2.2.4/AndroidManifest.xml Warning:
[RUN_GRADLEW] 	Suggestion: add 'tools:replace="android:fullBackupContent"' to <application> element at AndroidManifest.xml:6:5-162 to override.
[RUN_GRADLEW] 	Namespace 'com.tencent.mmkv' is used in multiple modules and/or libraries: io.github.zhongwuzw:mmkv:2.2.4, io.github.zhongwuzw:annotation:2.2.4. Please ensure that all modules and libraries have a unique namespace. For more information, See https://developer.android.com/studio/build/configure-app-module#set-namespace
[RUN_GRADLEW] See https://developer.android.com/r/studio-ui/build/manifest-merger for more information about the manifest merger.

The only difference between a working build was adding or removing adapty.

I'm on the latest version available on npmjs.com

Version

v2.3.11

What platforms are you seeing the problem on?

Android

System info

expo-env-info 2.0.7 environment info:
    System:
      OS: Windows 11 10.0.26220
    Binaries:
      Node: 24.7.0 - C:\Program Files\nodejs\node.EXE
      Yarn: 4.10.3 - C:\Program Files\nodejs\yarn.CMD
      npm: 11.6.2 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      babel-preset-expo: ^54.0.4 => 54.0.6
      expo: ~54.0.21 => 54.0.21
      react: 19.1.0 => 19.1.0
      react-dom: 19.1.0 => 19.1.0
      react-native: ~0.81.5 => 0.81.5
      react-native-web: ^0.21.1 => 0.21.2
    Expo Workflow: bare



DOCTOR:

14/17 checks passed. 3 checks failed. Possible issues detected:
Use the --verbose flag to see more details about passed checks.

✖ Check that no duplicate dependencies are installed
Your project contains duplicate native module dependencies, which should be de-duplicated.
Native builds may only contain one version of any given native module, and having multiple versions of a single Native module installed may lead to unexpected build errors.
Found duplicates for react-native-quick-base64:
  ├─ react-native-quick-base64@2.2.2 (at: node_modules\react-native-quick-base64)
  ├─ react-native-quick-base64@2.2.0 (at: node_modules\react-native-quick-crypto\node_modules\react-native-quick-base64)
  └─ react-native-quick-base64@2.2.2 (at: node_modules\react-native-quick-crypto\node_modules\@craftzdog\react-native-buffer\node_modules\react-native-quick-base64)
Found duplicates for react-native-web:
  ├─ react-native-web@0.21.2 (at: node_modules\react-native-web)
  └─ react-native-web@0.20.0 (at: node_modules\@tamagui\static\node_modules\react-native-web)
Advice:
Resolve your dependency issues and deduplicate your dependencies. Learn more: https://expo.fyi/resolving-dependency-issues

✖ Validate packages against React Native Directory package metadata
The following issues were found when validating your dependencies against React Native Directory:
  Unsupported on New Architecture: react-native-device-country
  Untested on New Architecture: react-native-nfc-manager, react-native-webrtc
  No metadata available: @adrianso/react-native-device-brightness, expo-check-installed-apps, expo-random, react-native-radar, react-native-vision-camera-face-detector
Advice:
Use libraries that are actively maintained and support the New Architecture. Find alternative libraries with https://reactnative.directory.
Add packages to expo.doctor.reactNativeDirectoryCheck.exclude in package.json to selectively skip validations, if the warning is not relevant.
Update React Native Directory to include metadata for unknown packages. Alternatively, set expo.doctor.reactNativeDirectoryCheck.listUnknownPackages in package.json to false to skip warnings about packages with no metadata, if the warning is not relevant.

✖ Check that packages match versions required by installed Expo SDK

⚠️ Minor version mismatches
package                                 expected  found
@react-native-community/datetimepicker  8.4.4     8.5.0
@shopify/flash-list                     2.0.2     2.2.0
@shopify/react-native-skia              2.2.12    2.3.9
react-native-screens                    ~4.16.0   4.18.0
react-native-svg                        15.12.1   15.14.0
react-native-webview                    13.15.0   13.16.0
react-native-worklets                   0.5.1     0.6.1



7 packages out of date.
Advice:
Use 'npx expo install --check' to review and upgrade your dependencies.
To ignore specific packages, add them to "expo.install.exclude" in package.json. Learn more: https://expo.fyi/dependency-validation

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions