mouselangelo / react-native-actions-shortcuts

iOS Home screen Quick Actions & Android App Shortcuts for react-native
MIT License
131 stars 22 forks source link

The Android Gradle plugin supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher #49

Open srymarz opened 1 year ago

srymarz commented 1 year ago

During build I got this error.

react-native info: System: OS: macOS 12.6 CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz Memory: 87.76 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.13.0 - /var/folders/vt/9hn07s4rdc0y4931b2xm8w0000gq/T/yarn--1674664284331-0.638874913997588/node Yarn: 1.22.17 - /var/folders/vt/9hn07s4rdc0y4931b2xm8w0000gq/T/yarn--1674664284331-0.638874913997588/yarn npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm Watchman: 2023.01.09.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1 Android SDK: API Levels: 23, 25, 27, 28, 29, 30, 31 Build Tools: 27.0.3, 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0 System Images: android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-31 | Google APIs Intel x86 Atom_64 Android NDK: Not Found IDEs: Android Studio: 2021.2 AI-212.5712.43.2112.8815526 Xcode: 14.1/14B47b - /usr/bin/xcodebuild Languages: Java: 11.0.11 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.6 => 0.70.6

bisiAlessandroDocPlanner commented 1 year ago

We had the same issue in our project while updating react-native to version 0.71.6, we could solve the problem adding a kotlinVersion variable to our build.gradle file.

This is how the build.gradle of this library is taking the kotlinVersion: def kotlin_version = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : project.properties['Shortcuts_kotlinVersion']

this is how it looks like our build.gradle:

buildscript {
    ext {
        minSdkVersion = 21
        compileSdkVersion = 33
        targetSdkVersion = 33
        buildToolsVersion = "33.0.0"
        supportLibVersion = "31.0.2"
        ndkVersion = "23.1.7779620"
        kotlinVersion = '1.5.20'
    }..
}

I hope it can help you solve the issue! 🤞

myselfuser1 commented 8 months ago

Try this