react-native-community / upgrade-support

A central community-backed place to request and give help when upgrading your app.
MIT License
261 stars 2 forks source link

RN upgrade 0.71.14 -> 0.73.7 - org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction #268

Open smithmallick149 opened 7 months ago

smithmallick149 commented 7 months ago

Environment

Things I’ve done to figure out my issue

Upgrading version

from 0.71.14 to 0.73.7

Description

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileStageDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 3m 43s
error Failed to install the app. Command failed with exit code 1: ./gradlew app:installStageDebug -PreactNativeDevServerPort=8081

Reproducible demo

my settings

gradle-wrapper.properties

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

### android/build.gradle

`buildscript {
    ext {
        buildToolsVersion = "34.0.0"
        minSdkVersion = 23
        compileSdkVersion = 34
        targetSdkVersion = 34
        ndkVersion = "25.1.8937393"
        kotlinVersion= "1.8.0"
        playServicesLocationVersion = "21.0.1"
    }
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath("com.android.tools.build:gradle")
        classpath 'com.google.gms:google-services:4.3.5'
        classpath("com.facebook.react:react-native-gradle-plugin")
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files

        classpath ("org.jetbrains.kotlin:kotlin-gradle-plugin")
    }
}

subprojects {
    if(project['name'] == 'react-native-secure-storage'){
        project.configurations { compile { } }
    }
}
apply plugin: "com.facebook.react.rootproject"
`

package.json

"dependencies": { "@react-native-async-storage/async-storage": "^1.23.1", "@react-native-clipboard/clipboard": "1.14.1", "@react-native-community/datetimepicker": "^3.4.3", "@react-native-community/netinfo": "^6.0.0", "@react-native-firebase/app": "^13.0.1", "@react-native-firebase/dynamic-links": "^13.0.1", "@react-native-firebase/messaging": "^13.0.1", "@react-native-masked-view/masked-view": "^0.2.9", "@react-native-picker/picker": "^2.4.8", "@react-native/gradle-plugin": "0.73.4", "@react-navigation/bottom-tabs": "^6.3.2", "@react-navigation/native": "^6.0.11", "@react-navigation/native-stack": "^6.7.0", "@react-navigation/stack": "^6.2.2", "@rudderstack/rudder-integration-appcenter-react-native": "^1.0.6", "@rudderstack/rudder-integration-clevertap-react-native": "^1.0.11", "@rudderstack/rudder-integration-firebase-react-native": "^1.0.13", "@rudderstack/rudder-sdk-react-native": "^1.0.12", "@sentry/react-native": "^5.1.0", "@storybook/addon-storyshots": "^6.5.16", "@turf/turf": "^6.5.0", "@types/react-native-calendars": "^1.1264.3", "@yaradigitallabs/ahua-react-native": "1.16.0", "@yaradigitallabs/sh-user-management-native": "3.22.0", "apisauce": "2.1.5", "appcenter-cli": "2.13.2", "axios": "^0.26.1", "clevertap-react-native": "2.2.1", "date-fns": "^2.19.0", "expo": "50.0.17", "expo-image-loader": "^4.6.0", "expo-localization": "^14.8.4", "geolib": "^3.3.1", "i18n-js": "3.8.0", "mobx": "6.0.4", "mobx-logger": "^0.7.1", "mobx-react-lite": "3.1.6", "mobx-state-tree": "4.0.2", "moment": "^2.29.4", "mst-persist": "^0.1.3", "ramda": "0.27.1", "react": "18.2.0", "react-native": "0.73.7", "react-native-android-location-enabler": "2.0.1", "react-native-animatable": "^1.3.3", "react-native-appsflyer": "^6.14.3", "react-native-auth0": "^2.17.1", "react-native-bootsplash": "^4.7.5", "react-native-calendar-picker": "^7.1.2", "react-native-calendars": "^1.1294.0", "react-native-camera": "^3.44.1", "react-native-code-push": "^7.1.0", "react-native-collapsible": "^1.6.0", "react-native-detector": "^0.2.3", "react-native-device-country": "^1.0.3", "react-native-device-info": "^8.1.3", "react-native-fast-image": "^8.3.4", "react-native-fbsdk": "2.0.0", "react-native-geolocation-service": "^5.0.0", "react-native-gesture-handler": "^2.16.0", "react-native-image-pan-zoom": "^2.1.12", "react-native-keychain": "8.2.0", "react-native-linear-gradient": "^2.5.6", "react-native-localize": "^2.2.6", "react-native-logs": "^3.0.3", "react-native-maps": "1.9.0", "react-native-markdown-display": "^7.0.0-alpha.2", "react-native-pager-view": "^6.1.4", "react-native-permissions": "^3.8.0", "react-native-progress-circle": "^2.1.0", "react-native-push-notification": "^8.1.1", "react-native-qrcode-svg": "^6.1.1", "react-native-raw-bottom-sheet": "^2.2.0", "react-native-reanimated": "^3.8.1", "react-native-render-html": "5.1.1", "react-native-safe-area-context": "4.5.0", "react-native-screens": "^3.20.0", "react-native-secure-storage": "^0.1.2", "react-native-secure-window": "^0.3.0", "react-native-skeleton-placeholder": "^5.2.4", "react-native-sms-retriever": "^1.1.1", "react-native-snap-carousel": "^3.9.1", "react-native-splash-screen": "^3.3.0", "react-native-svg": "13.4.0", "react-native-tab-view": "3.3.4", "react-native-webview": "^11.23.0", "reactotron-mst": "3.1.3", "reactotron-react-native": "5.0.0", "rn-secure-storage": "^3.0.1", "slugify": "^1.6.6", "underscore": "^1.13.1", "url-parse": "1.5.9", "use-async-effect": "^2.2.3", "validate.js": "0.13.1", "victory-native": "^36.5.3", "yarn": "^1.22.22" }, "devDependencies": { "@babel/core": "^7.22.10", "@babel/plugin-proposal-decorators": "7.12.1", "@babel/plugin-proposal-optional-catch-binding": "7.12.1", "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@babel/preset-env": "^7.22.10", "@babel/preset-typescript": "^7.22.5", "@babel/runtime": "^7.20.0", "@babel/types": "^7.22.10", "@jest/globals": "^29.6.2", "@react-native/babel-preset": "0.73.21", "@react-native/eslint-config": "0.73.2", "@react-native/metro-config": "0.73.5", "@react-native/typescript-config": "0.73.1", "@storybook/react-native": "5.3.25", "@storybook/react-native-server": "5.3.23", "@testing-library/react-native": "^7.2.0", "@types/i18n-js": "3.0.3", "@types/ramda": "0.27.32", "@types/react": "^18.2.6", "@types/react-test-renderer": "^18.0.0", "@typescript-eslint/eslint-plugin": "^5.55.0", "@typescript-eslint/parser": "5.55.0", "babel-jest": "^29.6.3", "babel-loader": "8.2.2", "bufferutil": "4.0.2", "enzyme": "^3.11.0", "enzyme-adapter-react-16": "^1.15.6", "enzyme-to-json": "^3.6.2", "eslint": "^8.19.0", "eslint-config-prettier": "7.0.0", "eslint-config-standard": "16.0.2", "eslint-plugin-import": "2.27.5", "eslint-plugin-node": "11.1.0", "eslint-plugin-promise": "4.2.1", "eslint-plugin-react": "7.21.5", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-native": "4.0.0", "eslint-plugin-unused-imports": "^3.0.0", "fbjs-scripts": "^3.0.1", "husky": "^7.0.0", "import-sort-style-module": "^6.0.0", "jest": "^29.6.3", "jest-circus": "^28.1.2", "jest-expo": "50.0.4", "jetifier": "1.6.6", "lint-staged": "^11.2.6", "npm-run-all": "4.1.5", "patch-package": "^6.5.1", "postinstall-prepare": "1.0.1", "prettier": "^2.8.8", "prettier-plugin-import-sort": "^0.0.6", "react-dom": "16.14.0", "react-native-svg-transformer": "^1.0.0", "react-native-web": "0.18.2", "react-powerplug": "1.0.0", "react-test-renderer": "18.2.0", "rimraf": "3.0.2", "solidarity": "3.0.4", "ts-jest": "^29.1.1", "typescript": "^5.0.4", "utf-8-validate": "5.0.3" },

android/gradle.properties

`# Project-wide Gradle settings.

# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.

# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
# org.gradle.jvmargs=-Xmx3200m -XX:MaxMetaspaceSize=2048m

RELEASE_STORE_DIR=../app/keystores/
RELEASE_KEY_ALIAS=farmcare
RELEASE_STORE_PASSWORD=Farmers@heart1
RELEASE_KEY_PASSWORD=Farmers@heart1

CODE_PUSH_DEPLOYMENT_KEY_STAGE=qvuHr9FB2IihgetYL0kSbbyiE4ejNzDCCMtLx
CODE_PUSH_DEPLOYMENT_KEY_PREPROD=PYBUgizFuS_GPq8eexhO5z-Ei2VX_VSduMFzq
CODE_PUSH_DEPLOYMENT_KEY_PROD=TTffql7t_K4Xdk9M9Q-Zi-U5teKu4YeakUMUJ

org.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=4096m -XX:+HeapDumpOnOutOfMemoryError -Dorg.gradle.caching=true -Dorg.gradle.configureondemand=true -Dkotlin.compiler.execution.strategy=in-process -Dkotlin.incremental=false
org.gradle.daemon=true
org.gradle.parallel=true

AsyncStorage_db_size_in_MB=15
AsyncStorage_kotlinVersion=1.8.0
AsyncStorage_useNextStorage=true
AsyncStorage_next_roomVersion=2.4.2

# Use this property to specify which architecture you want to build.
# You can also override it from the CLI using
# ./gradlew <task> -PreactNativeArchitectures=x86_64
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64

# Use this property to enable support to the new architecture.
# This will allow you to use TurboModules and the Fabric render in
# your application. You should enable this flag either if you want
# to write custom TurboModules/Fabric components OR use libraries that
# are providing them.
newArchEnabled=false

# Use this property to enable or disable the Hermes JS engine.
# If set to false, you will be using JSC instead.
hermesEnabled=true
`
luca-tomasetti commented 6 months ago

+1

aleksamrakovic commented 4 months ago

+1

aleksamrakovic commented 4 months ago

any suggestion how to bypass this?