Skip to content

React Native Android Build Fails: Kotlin Compilation Error #336

Closed
@hermantrym

Description

@hermantrym

Current behavior

The build fails with Kotlin compilation errors, indicating issues with unresolved references, deprecated APIs, or other Kotlin-related problems.

Image
Image

Expected behavior

  • The build process should complete successfully without any Kotlin compilation errors.

Platform

  • Android
  • iOS

React Native Version

"react": "19.0.0",
"react-native": "0.78.0",
System:
  OS: Windows 11 10.0.26100
  CPU: "(16) x64 AMD Ryzen 7 5800HS with Radeon Graphics        "
  Memory: 3.11 GB / 15.40 GB
Binaries:
  Node:
    version: 22.13.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn: Not Found
  npm:
    version: 10.9.2
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK:
    API Levels:
      - "33"
      - "33"
      - "33"
      - "34"
      - "34"
      - "34"
      - "35"
      - "35"
    Build Tools:
      - 33.0.0
      - 33.0.1
      - 33.0.2
      - 33.0.3
      - 34.0.0
      - 35.0.0
      - 35.0.1
      - 36.0.0
    System Images:
      - android-34 | Google Play Intel x86_64 Atom
      - android-35 | Google Play Intel x86_64 Atom
      - android-Baklava | Google Play Intel x86_64 Atom
    Android NDK: Not Found
  Windows SDK:
    AllowAllTrustedApps: Disabled
IDEs:
  Android Studio: Not Found
  Visual Studio: Not Found
Languages:
  Java: 17.0.13
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 19.0.0
    wanted: 19.0.0
  react-native:
    installed: 0.78.0
    wanted: 0.78.0
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

React Native Compressor Version

"react-native-compressor": "^1.10.4",

Reproducible Steps And Demo

npx react-native run-android

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions