Skip to content

build fails with using deprecated gradle features #262

@laggu

Description

@laggu

Description

I attempted to build a React Native Android app that includes the New Relic Gradle plugin, but the build fails during Gradle evaluation. The error indicates that the plugin is attempting to use the removed Transform API (android.registerTransform), which is not available in Android Gradle Plugin (AGP) 8.6.0.

Steps to Reproduce

start android app with below package version

"react-native": "0.76.3",
"newrelic-react-native-agent": "^1.5.11",

Expected Behavior

shold success to build an app

Relevant Logs / Console output

The New Relic plugin may not be compatible with Android Gradle plugin version 8.6.0.
AGP versions 4.0.1 - 7.4.4 are officially supported.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

~~~~~~~

> Failed to apply plugin 'newrelic'.
   > API 'android.registerTransform' is removed.

Your Environment

System:
  OS: macOS 26.0.1
  CPU: (10) arm64 Apple M1 Max
  Memory: 273.25 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.19.4
    path: ~/.nvm/versions/node/v20.19.4/bin/node
  Yarn: Not Found
  npm:
    version: 10.8.2
    path: ~/.nvm/versions/node/v20.19.4/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.16.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.0
      - iOS 26.0
      - macOS 26.0
      - tvOS 26.0
      - visionOS 26.0
      - watchOS 26.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23339.11.2421.12550806
  Xcode:
    version: 26.0.1/17A400
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 23.0.1
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.3
    wanted: 0.76.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

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