mrousavy / react-native-blurhash

🖼️ A library to show colorful blurry placeholders while your content loads.
https://blurha.sh
MIT License
1.98k stars 70 forks source link

> Task :react-native-blurhash:compileDebugKotlin FAILED #190

Open Space6188 opened 7 months ago

Space6188 commented 7 months ago

yarn run v1.22.21 $ react-native run-android info JS server already running. info Installing the app...

Configure project :notifee_react-native :notifee_react-native @notifee/react-native found at /Users/space/Desktop/Bat/node_modules/@notifee/react-native :notifee_react-native package.json found at /Users/space/Desktop/Bat/node_modules/@notifee/react-native/package.json :notifee_react-native:version set from package.json: 7.8.2 (7,8,2 - 7008002) :notifee_react-native:android.compileSdk using custom value: 34 :notifee_react-native:android.targetSdk using custom value: 34 :notifee_react-native:android.minSdk using custom value: 24 :notifee_react-native:reactNativeAndroidDir /Users/space/Desktop/Bat/node_modules/react-native/android

Configure project :react-native-firebase_app :react-native-firebase_app package.json found at /Users/space/Desktop/Bat/node_modules/@react-native-firebase/app/package.json :react-native-firebase_app:firebase.bom using default value: 32.8.1 :react-native-firebase_app:play.play-services-auth using default value: 21.0.0 :react-native-firebase_app package.json found at /Users/space/Desktop/Bat/node_modules/@react-native-firebase/app/package.json :react-native-firebase_app:version set from package.json: 19.2.2 (19,2,2 - 19002002) :react-native-firebase_app:android.compileSdk using custom value: 34 :react-native-firebase_app:android.targetSdk using custom value: 34 :react-native-firebase_app:android.minSdk using custom value: 24 :react-native-firebase_app:reactNativeAndroidDir /Users/space/Desktop/Bat/node_modules/react-native/android

Configure project :react-native-firebase_messaging :react-native-firebase_messaging package.json found at /Users/space/Desktop/Bat/node_modules/@react-native-firebase/messaging/package.json :react-native-firebase_app package.json found at /Users/space/Desktop/Bat/node_modules/@react-native-firebase/app/package.json :react-native-firebase_messaging:firebase.bom using default value: 32.8.1 :react-native-firebase_messaging package.json found at /Users/space/Desktop/Bat/node_modules/@react-native-firebase/messaging/package.json :react-native-firebase_messaging:version set from package.json: 19.2.2 (19,2,2 - 19002002) :react-native-firebase_messaging:android.compileSdk using custom value: 34 :react-native-firebase_messaging:android.targetSdk using custom value: 34 :react-native-firebase_messaging:android.minSdk using custom value: 24 :react-native-firebase_messaging:reactNativeAndroidDir /Users/space/Desktop/Bat/node_modules/react-native/android

Configure project :react-native-reanimated Android gradle plugin: 7.4.2 Gradle: 8.2 WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties file or use the new publishing DSL.

Configure project :react-native-vision-camera [VisionCamera] Thank you for using VisionCamera ❤️ [VisionCamera] node_modules found at /Users/space/Desktop/Bat/node_modules [VisionCamera] VisionCamera_enableFrameProcessors is set to true! [VisionCamera] react-native-worklets-core found, Frame Processors are enabled! [VisionCamera] VisionCamera_enableCodeScanner is set to false!

Configure project :shopify_react-native-skia react-native-skia: node_modules/ found at: /Users/space/Desktop/Bat/node_modules react-native-skia: RN Version: 72 / 0.72.12 react-native-skia: isSourceBuild: false react-native-skia: PrebuiltDir: /Users/space/Desktop/Bat/node_modules/@shopify/react-native-skia/android/build/react-native-0*/jni react-native-skia: buildType: debug react-native-skia: buildDir: /Users/space/Desktop/Bat/node_modules/@shopify/react-native-skia/android/build react-native-skia: node_modules: /Users/space/Desktop/Bat/node_modules react-native-skia: Enable Prefab: true react-native-skia: aar state post 70, do nothing WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 34

This Android Gradle plugin (7.4.2) was tested up to compileSdk = 33

This warning can be suppressed by adding android.suppressUnsupportedCompileSdk=34 to this project's gradle.properties

The build will continue, but you are strongly encouraged to update your project to use a newer Android Gradle Plugin that has been tested with compileSdk = 34 WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 34

This Android Gradle plugin (7.4.2) was tested up to compileSdk = 33

This warning can be suppressed by adding android.suppressUnsupportedCompileSdk=34 to this project's gradle.properties

The build will continue, but you are strongly encouraged to update your project to use a newer Android Gradle Plugin that has been tested with compileSdk = 34 WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 34

This Android Gradle plugin (7.4.2) was tested up to compileSdk = 33

This warning can be suppressed by adding android.suppressUnsupportedCompileSdk=34 to this project's gradle.properties

The build will continue, but you are strongly encouraged to update your project to use a newer Android Gradle Plugin that has been tested with compileSdk = 34

Task :react-native-firebase_app:compileDebugJavaWithJavac

Task :react-native-blurhash:compileDebugKotlin FAILED 'compileDebugJavaWithJavac' task (current target is 11) and 'compileDebugKotlin' task (current target is 1.8) jvm target compatibility should be set to the same Java version.

Task :react-native-firebase_messaging:compileDebugJavaWithJavac

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

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. 291 actionable tasks: 13 executed, 278 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. e: /Users/space/Desktop/Bat/node_modules/react-native-blurhash/android/src/main/java/com/mrousavy/blurhash/BlurhashImageView.kt: (5, 8): Unresolved reference: kotlinx e: /Users/space/Desktop/Bat/node_modules/react-native-blurhash/android/src/main/java/com/mrousavy/blurhash/BlurhashImageView.kt: (6, 8): Unresolved reference: kotlinx e: /Users/space/Desktop/Bat/node_modules/react-native-blurhash/android/src/main/java/com/mrousavy/blurhash/BlurhashImageView.kt: (78, 17): Unresolved reference: GlobalScope Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

BUILD FAILED in 8s error Failed to install the app. info Run CLI with --verbose flag for more details. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

package.json dependencies:"dependencies": { "@gorhom/bottom-sheet": "^4", "@notifee/react-native": "^7.8.2", "@react-native-camera-roll/camera-roll": "^5.7.2", "@react-native-firebase/app": "^19.0.1", "@react-native-firebase/messaging": "^19.0.1", "@react-native-masked-view/masked-view": "^0.3.1", "@react-navigation/drawer": "^6.6.3", "@react-navigation/material-top-tabs": "^6.6.10", "@react-navigation/native": "^6.1.7", "@react-navigation/native-stack": "^6.9.13", "@reduxjs/toolkit": "^1.9.5", "@shopify/react-native-skia": "1.2.2", "axios": "^1.6.7", "dayjs": "^1.11.9", "ffmpeg-kit-react-native": "^6.0.2", "react": "18.2.0", "react-hook-form": "^7.51.1", "react-native": "0.72.12", "react-native-audio-recorder-player": "^3.6.7", "react-native-blurhash": "^2.0.2", "react-native-callkeep": "^4.3.12", "react-native-compressor": "^1.8.24", "react-native-device-info": "^10.13.1", "react-native-document-picker": "^9.1.1", "react-native-fs": "^2.20.0", "react-native-gesture-handler": "^2.12.1", "react-native-maps": "^1.10.3", "react-native-mmkv": "^2.12.2", "react-native-pager-view": "^6.2.0", "react-native-reanimated": "^3.5.4", "react-native-safe-area-context": "^4.7.1", "react-native-screens": "^3.23.0", "react-native-svg": "^13.10.0", "react-native-tab-view": "^3.5.2", "react-native-track-player": "^4.0.1", "react-native-uuid": "^2.0.1", "react-native-video": "5.2.1", "react-native-view-shot": "^3.8.0", "react-native-vision-camera": "4.0.0", "react-native-webrtc": "^118.0.2", "react-native-worklets-core": "^1.1.1", "react-redux": "^8.1.2" },

Platform - android

thinhtt264 commented 6 months ago

same issue

gigadeplex commented 6 months ago

same, why is there no response? how did you guys solve it

iM-GeeKy commented 6 months ago
Screenshot 2024-05-12 at 8 34 20 AM

@Space6188 I think the solution for now is to use "react-native-blurhash": "~1.1.11" in your package.json. I have been unsuccessful getting anything above version 2+ to build.

spyshower commented 3 months ago

same issue