Skip to content

The 'kotlin-android-extensions' Gradle plugin is no longer supported. #353

Description

@raahimkhan

I am getting the following error when I use the library for Android React Native:

Error: The 'kotlin-android-extensions' Gradle plugin is no longer supported. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin.

Here is my package.json file:

{
  "name": "geotag",
  "main": "index.tsx",
  "version": "1.3.4",
  "scripts": {
    "checkDependencies": "npx expo install --check",
    "doctor": "npx expo-doctor",
    "prebuild": "npx expo prebuild",
    "prebuildClean": "npx expo prebuild --clean",
    "test": "echo \"No tests specified\" && exit 0",
    "updateVersionCodeAndVersionName": "chmod +x updateVersionCodeAndName.sh && ./updateVersionCodeAndName.sh",
    "np": "np --no-publish",
    "postversion": "react-native-version",
    "android": "npx xpo run:android",
    "ios": "npx expo run:ios"
  },
  "dependencies": {
    "@bam.tech/react-native-image-resizer": "^3.0.10",
    "@expo/vector-icons": "^14.0.2",
    "@react-navigation/native": "^6.0.2",
    "crypto-js": "^4.2.0",
    "expo": "~51.0.31",
    "expo-build-properties": "^0.12.5",
    "expo-constants": "~16.0.2",
    "expo-dev-client": "~4.0.25",
    "expo-document-picker": "^12.0.2",
    "expo-font": "~12.0.9",
    "expo-image-picker": "^15.0.7",
    "expo-linking": "~6.3.1",
    "expo-router": "~3.5.23",
    "expo-splash-screen": "~0.27.5",
    "expo-status-bar": "~1.12.1",
    "expo-system-ui": "~3.0.7",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-native": "0.74.5",
    "react-native-background-upload": "^6.6.0",
    "react-native-fs": "^2.20.0",
    "react-native-gesture-handler": "~2.16.1",
    "react-native-image-crop-picker": "^0.41.2",
    "react-native-reanimated": "~3.10.1",
    "react-native-responsive-screen": "^1.4.2",
    "react-native-safe-area-context": "4.10.5",
    "react-native-screens": "3.31.1",
    "react-native-webview": "^13.12.2"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@types/crypto-js": "^4.2.2",
    "@types/react": "~18.2.45",
    "np": "^10.0.7",
    "react-native-version": "^4.0.0",
    "typescript": "~5.3.3"
  },
  "private": true
}

It is working fine for iOS. Causing issue on Android only. Can anyone please tell how to fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions