Skip to content

Android build error: org.jlleitschuh.gradle.ktlint not found #224

@christophby

Description

@christophby

Describe the bug
When building the Android app, the following error occurs

Build file '.../node_modules/react-native-enriched-markdown/android/build.gradle' line: 19

Plugin [id: 'org.jlleitschuh.gradle.ktlint', version: '14.0.1'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Included Builds (No included builds contain this plugin)
- Plugin Repositories (could not resolve plugin artifact 'org.jlleitschuh.gradle.ktlint:org.jlleitschuh.gradle.ktlint.gradle.plugin:14.0.1')
  Searched in the following repositories:
    Gradle Central Plugin Repository

Device (please complete the following information):

  • Device: Android Emulator, Pixel 9 Pro
  • OS: API 36.1

Additional context

  • bare React Native project 0.83.4
  • react-native-enriched-markdown 0.4.1

How to fix
Removing

plugins {
  id "org.jlleitschuh.gradle.ktlint" version "14.0.1"
}

from react-native-enriched-markdown/android/build.gradle fixes that issue

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