Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution failed for task ':react-native-navigation:compileReactNative71DebugKotlin'. #7819

Open
1 task done
HaNguyenRN opened this issue Dec 8, 2023 · 23 comments
Open
1 task done

Comments

@HaNguyenRN
Copy link

HaNguyenRN commented Dec 8, 2023

What happened?

Execution failed for task ':react-native-navigation:compileReactNative71DebugKotlin'.

'compileReactNative71DebugJavaWithJavac' task (current target is 17) and 'compileReactNative71DebugKotlin' task (current target is 1.8) jvm target compatibility should be set to the same Java version.
Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain

  • 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.
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.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 1m 11s
619 actionable tasks: 619 executed

What was the expected behaviour?

...

Was it tested on latest react-native-navigation?

  • I have tested this issue on the latest react-native-navigation release and it still reproduces.

Help us reproduce this issue!

...

In what environment did this happen?

React Native Navigation version: 7.37.2
React Native version: 0.73.0
Node version: v20.3.0
Device model: Pixel
Android version: 14

Tasks

Preview Give feedback
No tasks being tracked yet.
@HaNguyenRN
Copy link
Author

Java version: OpenJDK 64-Bit Server VM Zulu17.46+19-CA (build 17.0.9+8-LTS, mixed mode, sharing)

@joakimwennergren
Copy link

joakimwennergren commented Dec 8, 2023

I'm having the same issue, tried installing openjdk 11 and setting targetsdk.

java { targetCompatibility = JavaVersion.VERSION_11 }

kotlin { jvmToolchain(11) }

tasks.withType<KotlinCompile>().configureEach {
  kotlinOptions {
    apiVersion = "1.6"
    // See comment above on JDK 11 support
    jvmTarget = "11"
    allWarningsAsErrors = true
  }
}

@hachther
Copy link

hachther commented Dec 8, 2023

You can manually update update theses files for now

  • lib/android/app/build.gradle[64-70]
compileOptions {
    sourceCompatibility JavaVersion.VERSION_17
    targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
    jvmTarget = JavaVersion.VERSION_17
}
  • lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/topbar/button/ButtonPresenter.kt[197-200]
override fun onInitializeAccessibilityNodeInfo(
    host: View,
    info: AccessibilityNodeInfoCompat
) {

@predescu
Copy link

predescu commented Dec 8, 2023

@hachther , could you please share your MainApplication.kt? I did the updates you suggested (thanks for it) but I have a definite error.
The build works, but the app crashes at the start: java.lang.RuntimeException: Unable to instantiate application

@ertugruldogan
Copy link

ertugruldogan commented Dec 8, 2023

@hachther
Copy link

hachther commented Dec 8, 2023

@hachther , could you please share your MainApplication.kt? I did the updates you suggested (thanks for it) but I have a definite error. The build works, but the app crashes at the start: java.lang.RuntimeException: Unable to instantiate application

package com.graphicssystem.fujisat

import com.facebook.react.PackageList
import com.facebook.react.ReactNativeHost
import com.facebook.react.ReactPackage
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
import com.facebook.soloader.SoLoader
import com.reactnativenavigation.NavigationApplication
import com.reactnativenavigation.react.NavigationReactNativeHost

class MainApplication : NavigationApplication() {
    private val mReactNativeHost: NavigationReactNativeHost =
        object : NavigationReactNativeHost(this) {
            override fun getUseDeveloperSupport(): Boolean {
                return BuildConfig.DEBUG
            }

            override fun getPackages(): List<ReactPackage> {
                val packages: MutableList<ReactPackage> = PackageList(this).packages
                // Packages that cannot be autolinked yet can be added manually here, for example:
                return packages
            }

            override fun getJSMainModuleName(): String {
                return "index"
            }
        }
    override val reactNativeHost: ReactNativeHost
        get() = mReactNativeHost

    override fun onCreate() {
        super.onCreate()
        // If you opted-in for the New Architecture, we enable the TurboModule system
        SoLoader.init(this,  /* native exopackage */false)
        if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
            // If you opted-in for the New Architecture, we load the native entry point for this app.
            load()
        }
    }
}

@predescu
Copy link

predescu commented Dec 8, 2023

@hachther

Thank You. It worked perfectly. I did the conversion of the class wrongly.

@OskarEichler
Copy link

You can manually update update theses files for now

  • lib/android/app/build.gradle[64-70]
compileOptions {
    sourceCompatibility JavaVersion.VERSION_17
    targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
    jvmTarget = JavaVersion.VERSION_17
}
  • lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/topbar/button/ButtonPresenter.kt[197-200]
override fun onInitializeAccessibilityNodeInfo(
    host: View,
    info: AccessibilityNodeInfoCompat
) {

@hachther Made these changes but still running into the same error:

Execution failed for task ':react-native-navigation:compileReactNative71DebugKotlin'.
> Inconsistent JVM-target compatibility detected for tasks 'compileReactNative71DebugJavaWithJavac' (17) and 'compileReactNative71DebugKotlin' (1.8).

@lyswhut
Copy link

lyswhut commented Dec 12, 2023

Before the official supports RN v0.73, try the steps, it works for me:

  1. Add dependencies-patch.js:
const fs = require('node:fs')
const path = require('node:path')

const rootPath = path.join(__dirname, './')

const patchs = [
  [
    path.join(rootPath, './node_modules/react-native-navigation/lib/android/app/build.gradle'),
    `
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = JavaVersion.VERSION_1_8
    }`,
    '',
  ],
  [
    path.join(rootPath, './node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/topbar/button/ButtonPresenter.kt'),
    `override fun onInitializeAccessibilityNodeInfo(
                        host: View?,
                        info: AccessibilityNodeInfoCompat?
                    ) {
                        super.onInitializeAccessibilityNodeInfo(host, info)

                        // Expose the testID prop as the resource-id name of the view. Black-box E2E/UI testing
                        // frameworks, which interact with the UI through the accessibility framework, do not have
                        // access to view tags. This allows developers/testers to avoid polluting the
                        // content-description with test identifiers.
                        val testId = host?.tag as String?
                        if(testId != null){
                            info!!.viewIdResourceName = testId
                        }
                    }`,
    `override fun onInitializeAccessibilityNodeInfo(
                      host: View,
                      info: AccessibilityNodeInfoCompat
                    ) {
                        super.onInitializeAccessibilityNodeInfo(host, info)

                        // Expose the testID prop as the resource-id name of the view. Black-box E2E/UI testing
                        // frameworks, which interact with the UI through the accessibility framework, do not have
                        // access to view tags. This allows developers/testers to avoid polluting the
                        // content-description with test identifiers.
                        val testId = host.tag as String?
                        if(testId != null){
                            info.viewIdResourceName = testId
                        }
                    }`,
  ],
]

;(async() => {
  for (const [filePath, fromStr, toStr] of patchs) {
    console.log(`Patching ${filePath.replace(rootPath, '')}`)
    try {
      const file = (await fs.promises.readFile(filePath)).toString()
      await fs.promises.writeFile(filePath, file.replace(fromStr, toStr))
    } catch (err) {
      console.error(`Patch ${filePath.replace(rootPath, '')} failed: ${err.message}`)
    }
  }
  console.log('\nDependencies patch finished.\n')
})()
  1. Edit package.json and add scripts: "postinstall": "node ./dependencies-patch.js"
  2. Edit android/app/proguard-rules.pro and add rule -keep class com.reactnativenavigation.views.element.animators.** { *; } (It fixed shared element transitions)
  3. Remove node_modules and then run npm install

@HaNguyenRN
Copy link
Author

You can manually update update theses files for now

  • lib/android/app/build.gradle[64-70]
compileOptions {
    sourceCompatibility JavaVersion.VERSION_17
    targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
    jvmTarget = JavaVersion.VERSION_17
}
  • lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/topbar/button/ButtonPresenter.kt[197-200]
override fun onInitializeAccessibilityNodeInfo(
    host: View,
    info: AccessibilityNodeInfoCompat
) {

Hi @OskarEichler could you show me the file MainApplication.kt & MainActivity.kt?

@OskarEichler
Copy link

Hey @HaNguyenRN

Please find both files attached (had to change the file extension to .txt in order to upload them here, so please change back to .kt). Thanks for looking into this!

MainApplication.txt
MainActivity.txt

@elmalakomar
Copy link

I'm the only one that didn't understand where to copy the dependencies in the gradle file?
I have 3 main objects:

  1. react
  2. android
  3. dependencies

In every way I copy the code I receive and error.
This is a new error also:

Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * Where:
Build file '/android/app/build.gradle' line: 120 * What went wrong:
A problem occurred evaluating project ':app'.
> Could not find method compileOptions() for arguments [build_as7kgs715znh3750q73r32jel$_run_closure3$_closure10@419c928e] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

@OskarEichler can you help me please?

@kauly
Copy link

kauly commented Dec 28, 2023

@elmalakomar its inside of the android {} section, like this:

android {
    ndkVersion rootProject.ext.ndkVersion
    buildToolsVersion rootProject.ext.buildToolsVersion
    compileSdk rootProject.ext.compileSdkVersion

    namespace "com.boatapp"
    defaultConfig {
        applicationId "com.boatapp"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 1
        versionName "1.0"
    }
    signingConfigs {
        debug {
            storeFile file('debug.keystore')
            storePassword 'android'
            keyAlias 'androiddebugkey'
            keyPassword 'android'
        }
    }
    buildTypes {
        debug {
            signingConfig signingConfigs.debug
        }
        release {
            // Caution! In production, you need to generate your own keystore file.
            // see https://reactnative.dev/docs/signed-apk-android.
            signingConfig signingConfigs.debug
            minifyEnabled enableProguardInReleaseBuilds
            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
    }
    kotlinOptions {
        jvmTarget = JavaVersion.VERSION_17
    }
}

@elmalakomar
Copy link

Ok, I tried as you suggested but I'm still getting the same error. I need to do something else? run some script? @kauly

'compileReactNative71DebugJavaWithJavac' task (current target is 17) and 'compileReactNative71DebugKotlin' task (current target is 1.8) jvm target compatibility should be set to the same Java version

@kauly
Copy link

kauly commented Dec 28, 2023

Try to do the same thing but in the build.gradle of the rnn library

@elmalakomar
Copy link

I fixed running the script suggested a few comments above

@Halilibrahimakyz
Copy link

Try to do the same thing but in the build.gradle of the rnn library

this worked for me thanks @kauly

@Anand14001
Copy link

im getting this error if anyone knows how to fix it please help me

main error:
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-navigation:compileReactNative71ReleaseJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:

Run with --info option to get more log output.

Run with --scan to get full insights.
BUILD FAILED in 6m 49s
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.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
312 actionable tasks: 312 executed
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

complete expo.dev run geadlew log:
Running 'gradlew :app:bundleRelease' in /home/expo/workingdir/build/android
Downloading https://services.gradle.org/distributions/gradle-8.6-all.zip
10%.
20%.
30%.
40%
50%.
60%.
70%.
80%.
90%.
100%
Welcome to Gradle 8.6!
Here are the highlights of this release:

Task :gradle-plugin:checkKotlinGradlePluginConfigurationErrors
Task :gradle-plugin:pluginDescriptors
Task :gradle-plugin:processResources
Task :gradle-plugin:compileKotlin
Task :gradle-plugin:compileJava NO-SOURCE
Task :gradle-plugin:classes
Task :gradle-plugin:jar
Configure project :expo-modules-core
Checking the license for package NDK (Side by side) 26.1.10909125 in /home/expo/Android/Sdk/licenses
License for package NDK (Side by side) 26.1.10909125 accepted.
Preparing "Install NDK (Side by side) 26.1.10909125 v.26.1.10909125".
"Install NDK (Side by side) 26.1.10909125 v.26.1.10909125" ready.
Installing NDK (Side by side) 26.1.10909125 in /home/expo/Android/Sdk/ndk/26.1.10909125
"Install NDK (Side by side) 26.1.10909125 v.26.1.10909125" complete.
"Install NDK (Side by side) 26.1.10909125 v.26.1.10909125" finished.
Configure project :expo
Using expo modules

  • �[32mexpo-asset�[0m (10.0.8)
  • �[32mexpo-constants�[0m (16.0.2)
  • �[32mexpo-file-system�[0m (17.0.1)
  • �[32mexpo-font�[0m (12.0.7)
  • �[32mexpo-image-loader�[0m (4.7.0)
  • �[32mexpo-image-picker�[0m (15.0.5)
  • �[32mexpo-keep-awake�[0m (13.0.2)
  • �[32mexpo-local-authentication�[0m (14.0.1)
  • �[32mexpo-modules-core�[0m (1.12.14)
  • �[32mexpo-navigation-bar�[0m (3.0.6)

Configure project :react-native-firebase_app
:react-native-firebase_app package.json found at /home/expo/workingdir/build/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 /home/expo/workingdir/build/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_app:version set from package.json: 19.3.0 (19,3,0 - 19003000)
: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: 23
:react-native-firebase_app:reactNativeAndroidDir /home/expo/workingdir/build/node_modules/react-native/android
Configure project :react-native-firebase_auth
:react-native-firebase_auth package.json found at /home/expo/workingdir/build/node_modules/@react-native-firebase/auth/package.json
:react-native-firebase_app package.json found at /home/expo/workingdir/build/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_auth:firebase.bom using default value: 32.8.1
:react-native-firebase_auth package.json found at /home/expo/workingdir/build/node_modules/@react-native-firebase/auth/package.json
:react-native-firebase_auth:version set from package.json: 19.3.0 (19,3,0 - 19003000)
:react-native-firebase_auth:android.compileSdk using custom value: 34
:react-native-firebase_auth:android.targetSdk using custom value: 34
:react-native-firebase_auth:android.minSdk using custom value: 23
:react-native-firebase_auth:reactNativeAndroidDir /home/expo/workingdir/build/node_modules/react-native/android
Checking the license for package Android SDK Build-Tools 34 in /home/expo/Android/Sdk/licenses
License for package Android SDK Build-Tools 34 accepted.
Preparing "Install Android SDK Build-Tools 34 v.34.0.0".
"Install Android SDK Build-Tools 34 v.34.0.0" ready.
Installing Android SDK Build-Tools 34 in /home/expo/Android/Sdk/build-tools/34.0.0
"Install Android SDK Build-Tools 34 v.34.0.0" complete.
"Install Android SDK Build-Tools 34 v.34.0.0" finished.
Checking the license for package Android SDK Platform 34 in /home/expo/Android/Sdk/licenses
License for package Android SDK Platform 34 accepted.
Preparing "Install Android SDK Platform 34 (revision 3)".
"Install Android SDK Platform 34 (revision 3)" ready.
Installing Android SDK Platform 34 in /home/expo/Android/Sdk/platforms/android-34
"Install Android SDK Platform 34 (revision 3)" complete.
"Install Android SDK Platform 34 (revision 3)" finished.
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable
Task :expo-asset:preBuild UP-TO-DATE
Task :expo-asset:preReleaseBuild UP-TO-DATE
Task :expo-asset:generateReleaseResValues
Task :expo-asset:generateReleaseResources
Task :expo-constants:createExpoConfig
Task :expo-constants:preBuild
Task :expo-constants:preReleaseBuild
Task :expo-constants:generateReleaseResValues
Task :expo-constants:generateReleaseResources
Task :expo-asset:packageReleaseResources
Task :expo-file-system:preBuild UP-TO-DATE
Task :expo-file-system:preReleaseBuild UP-TO-DATE
Task :expo-file-system:generateReleaseResValues
Task :expo-file-system:generateReleaseResources
Task :expo-constants:packageReleaseResources
Task :expo-font:preBuild UP-TO-DATE
Task :expo-font:preReleaseBuild UP-TO-DATE
Task :expo-font:generateReleaseResValues
Task :expo-font:generateReleaseResources
The NODE_ENV environment variable is required but was not specified. Ensure the project is bundled with Expo CLI or NODE_ENV is set.
Proceeding without mode-specific .env
Task :expo-font:packageReleaseResources
Task :expo-image-loader:preBuild UP-TO-DATE
Task :expo-image-loader:preReleaseBuild UP-TO-DATE
Task :expo-image-loader:generateReleaseResValues
Task :expo-image-loader:generateReleaseResources
Task :expo-file-system:packageReleaseResources
Task :expo-image-picker:preBuild UP-TO-DATE
Task :expo-image-picker:preReleaseBuild UP-TO-DATE
Task :expo-image-picker:generateReleaseResValues
Task :expo-image-picker:generateReleaseResources
Task :expo-image-loader:packageReleaseResources
Task :expo-keep-awake:preBuild UP-TO-DATE
Task :expo-keep-awake:preReleaseBuild UP-TO-DATE
Task :expo-keep-awake:generateReleaseResValues
Task :expo-keep-awake:generateReleaseResources
Task :expo-keep-awake:packageReleaseResources
Task :expo-local-authentication:preBuild UP-TO-DATE
Task :expo-local-authentication:preReleaseBuild UP-TO-DATE
Task :expo-local-authentication:generateReleaseResValues
Task :expo-local-authentication:generateReleaseResources
Task :expo-image-picker:packageReleaseResources
Task :expo-modules-core:preBuild UP-TO-DATE
Task :expo-modules-core:preReleaseBuild UP-TO-DATE
Task :expo-modules-core:generateReleaseResValues
Task :expo-modules-core:generateReleaseResources
Task :expo-local-authentication:packageReleaseResources
Task :expo-navigation-bar:preBuild UP-TO-DATE
Task :expo-navigation-bar:preReleaseBuild UP-TO-DATE
Task :expo-modules-core:packageReleaseResources
Task :lottie-react-native:preBuild UP-TO-DATE
Task :lottie-react-native:preReleaseBuild UP-TO-DATE
Task :expo-navigation-bar:generateReleaseResValues
Task :expo-navigation-bar:generateReleaseResources
Task :lottie-react-native:generateReleaseResValues
Task :lottie-react-native:generateReleaseResources
Task :lottie-react-native:packageReleaseResources
Task :react-native-async-storage_async-storage:preBuild UP-TO-DATE
Task :react-native-async-storage_async-storage:preReleaseBuild UP-TO-DATE
Task :react-native-async-storage_async-storage:generateReleaseResValues
Task :react-native-async-storage_async-storage:generateReleaseResources
Task :expo-navigation-bar:packageReleaseResources
Task :react-native-firebase_app:preBuild UP-TO-DATE
Task :react-native-firebase_app:preReleaseBuild UP-TO-DATE
Task :react-native-async-storage_async-storage:packageReleaseResources
Task :react-native-firebase_auth:preBuild UP-TO-DATE
Task :react-native-firebase_auth:preReleaseBuild UP-TO-DATE
Task :react-native-firebase_app:generateReleaseResValues
Task :react-native-firebase_app:generateReleaseResources
Task :react-native-firebase_auth:generateReleaseResValues
Task :react-native-firebase_auth:generateReleaseResources
Task :react-native-firebase_auth:packageReleaseResources
Task :react-native-firebase_app:packageReleaseResources
Task :react-native-gesture-handler:preBuild UP-TO-DATE
Task :react-native-masked-view_masked-view:preBuild UP-TO-DATE
Task :react-native-gesture-handler:preReleaseBuild UP-TO-DATE
Task :react-native-masked-view_masked-view:preReleaseBuild UP-TO-DATE
Task :react-native-gesture-handler:generateReleaseResValues
Task :react-native-masked-view_masked-view:generateReleaseResValues
Task :react-native-gesture-handler:generateReleaseResources
Task :react-native-masked-view_masked-view:generateReleaseResources
Task :react-native-gesture-handler:packageReleaseResources
Task :react-native-navigation:preBuild UP-TO-DATE
Task :react-native-navigation:preReactNative71ReleaseBuild UP-TO-DATE
Task :react-native-navigation:generateReactNative71ReleaseResValues
Task :react-native-navigation:generateReactNative71ReleaseResources
Task :react-native-masked-view_masked-view:packageReleaseResources
Task :react-native-navigation-bar-color:preBuild UP-TO-DATE
Task :react-native-navigation-bar-color:preReleaseBuild UP-TO-DATE
Task :react-native-navigation-bar-color:generateReleaseResValues
Task :react-native-navigation-bar-color:generateReleaseResources
Task :react-native-navigation-bar-color:packageReleaseResources
Task :react-native-vector-icons:preBuild UP-TO-DATE
Task :react-native-vector-icons:preReleaseBuild UP-TO-DATE
Task :react-native-vector-icons:generateReleaseResValues
Task :react-native-vector-icons:generateReleaseResources
Task :react-native-navigation:packageReactNative71ReleaseResources
Task :expo-asset:extractDeepLinksRelease
Task :react-native-vector-icons:packageReleaseResources
Task :expo-constants:extractDeepLinksRelease
Task :expo:generateExpoModulesPackageListTask
Task :expo:preBuild
Task :expo:preReleaseBuild
Task :expo:generateReleaseResValues
Task :expo:generateReleaseResources
Task :expo:packageReleaseResources
Task :expo:extractDeepLinksRelease
Task :expo:processReleaseManifest
Task :expo-asset:processReleaseManifest
Task :expo-file-system:extractDeepLinksRelease
Task :expo-font:extractDeepLinksRelease
Task :expo-constants:processReleaseManifest
Task :expo-image-loader:extractDeepLinksRelease
Task :expo-font:processReleaseManifest
Task :expo-image-picker:extractDeepLinksRelease
Task :expo-file-system:processReleaseManifest
/home/expo/workingdir/build/node_modules/expo-file-system/android/src/main/AndroidManifest.xml:6:9-8:20 Warning:
provider#expo.modules.filesystem.FileSystemFileProvider@android:authorities was tagged at AndroidManifest.xml:6 to replace other declarations but no other declaration present
Task :expo-keep-awake:extractDeepLinksRelease
Task :expo-keep-awake:processReleaseManifest
Task :expo-local-authentication:extractDeepLinksRelease
Task :expo-local-authentication:processReleaseManifest
Task :expo-modules-core:extractDeepLinksRelease
Task :expo-modules-core:processReleaseManifest
/home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/AndroidManifest.xml:8:9-11:45 Warning:
meta-data#com.facebook.soloader.enabled@android:value was tagged at AndroidManifest.xml:8 to replace other declarations but no other declaration present
Task :expo-navigation-bar:extractDeepLinksRelease
Task :expo-image-loader:processReleaseManifest
Task :lottie-react-native:extractDeepLinksRelease
Task :expo-image-picker:processReleaseManifest
Task :react-native-async-storage_async-storage:extractDeepLinksRelease
Task :react-native-async-storage_async-storage:processReleaseManifest
package="com.reactnativecommunity.asyncstorage" found in source AndroidManifest.xml: /home/expo/workingdir/build/node_modules/@react-native-async-storage/async-storage/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.reactnativecommunity.asyncstorage" from the source AndroidManifest.xml: /home/expo/workingdir/build/node_modules/@react-native-async-storage/async-storage/android/src/main/AndroidManifest.xml.
Task :react-native-firebase_app:extractDeepLinksRelease
Task :expo-navigation-bar:processReleaseManifest
Task :react-native-firebase_auth:extractDeepLinksRelease
Task :lottie-react-native:processReleaseManifest
package="com.airbnb.android.react.lottie" found in source AndroidManifest.xml: /home/expo/workingdir/build/node_modules/lottie-react-native/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.airbnb.android.react.lottie" from the source AndroidManifest.xml: /home/expo/workingdir/build/node_modules/lottie-react-native/android/src/main/AndroidManifest.xml.
Task :react-native-gesture-handler:extractDeepLinksRelease
Task :react-native-firebase_app:processReleaseManifest
package="io.invertase.firebase" found in source AndroidManifest.xml: /home/expo/workingdir/build/node_modules/@react-native-firebase/app/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="io.invertase.firebase" from the source AndroidManifest.xml: /home/expo/workingdir/build/node_modules/@react-native-firebase/app/android/src/main/AndroidManifest.xml.
Task :react-native-masked-view_masked-view:extractDeepLinksRelease
Task :react-native-firebase_auth:processReleaseManifest
package="io.invertase.firebase.auth" found in source AndroidManifest.xml: /home/expo/workingdir/build/node_modules/@react-native-firebase/auth/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="io.invertase.firebase.auth" from the source AndroidManifest.xml: /home/expo/workingdir/build/node_modules/@react-native-firebase/auth/android/src/main/AndroidManifest.xml.
Task :react-native-navigation:extractDeepLinksReactNative71Release
Task :react-native-masked-view_masked-view:processReleaseManifest
Task :react-native-navigation-bar-color:extractDeepLinksRelease
Task :react-native-navigation:processReactNative71ReleaseManifest
package="com.reactnativenavigation" found in source AndroidManifest.xml: /home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.reactnativenavigation" from the source AndroidManifest.xml: /home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/AndroidManifest.xml.
Task :react-native-vector-icons:extractDeepLinksRelease
Task :react-native-gesture-handler:processReleaseManifest
package="com.swmansion.gesturehandler" found in source AndroidManifest.xml: /home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.swmansion.gesturehandler" from the source AndroidManifest.xml: /home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/AndroidManifest.xml.
Task :react-native-navigation-bar-color:processReleaseManifest
package="com.thebylito.navigationbarcolor" found in source AndroidManifest.xml: /home/expo/workingdir/build/node_modules/react-native-navigation-bar-color/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.thebylito.navigationbarcolor" from the source AndroidManifest.xml: /home/expo/workingdir/build/node_modules/react-native-navigation-bar-color/android/src/main/AndroidManifest.xml.
Task :expo-asset:writeReleaseAarMetadata
Task :expo:writeReleaseAarMetadata
Task :react-native-vector-icons:processReleaseManifest
package="com.oblador.vectoricons" found in source AndroidManifest.xml: /home/expo/workingdir/build/node_modules/react-native-vector-icons/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.oblador.vectoricons" from the source AndroidManifest.xml: /home/expo/workingdir/build/node_modules/react-native-vector-icons/android/src/main/AndroidManifest.xml.
Task :expo-constants:writeReleaseAarMetadata
Task :expo-file-system:writeReleaseAarMetadata
Task :expo-font:writeReleaseAarMetadata
Task :expo-image-loader:writeReleaseAarMetadata
Task :expo-local-authentication:writeReleaseAarMetadata
Task :expo-image-picker:writeReleaseAarMetadata
Task :expo-modules-core:writeReleaseAarMetadata
Task :expo-keep-awake:writeReleaseAarMetadata
Task :lottie-react-native:writeReleaseAarMetadata
Task :expo-navigation-bar:writeReleaseAarMetadata
Task :react-native-async-storage_async-storage:writeReleaseAarMetadata
Task :react-native-firebase_app:writeReleaseAarMetadata
Task :react-native-gesture-handler:writeReleaseAarMetadata
Task :react-native-masked-view_masked-view:writeReleaseAarMetadata
Task :react-native-firebase_auth:writeReleaseAarMetadata
Task :react-native-navigation:writeReactNative71ReleaseAarMetadata
Task :react-native-navigation-bar-color:writeReleaseAarMetadata
Task :react-native-vector-icons:writeReleaseAarMetadata
Task :expo-constants:compileReleaseLibraryResources
Task :expo-asset:compileReleaseLibraryResources
Task :expo:compileReleaseLibraryResources
Task :expo-constants:parseReleaseLocalResources
Task :expo-asset:parseReleaseLocalResources
Task :expo:parseReleaseLocalResources
Task :expo-constants:generateReleaseRFile
Task :expo:generateReleaseRFile
Task :expo-file-system:compileReleaseLibraryResources
Task :expo-font:compileReleaseLibraryResources
Task :expo-asset:generateReleaseRFile
Task :expo-file-system:parseReleaseLocalResources
Task :expo-file-system:generateReleaseRFile
Task :expo-font:parseReleaseLocalResources
Task :expo-image-loader:compileReleaseLibraryResources
Task :expo-image-loader:parseReleaseLocalResources
Task :expo-image-picker:compileReleaseLibraryResources
Task :expo-font:generateReleaseRFile
Task :expo-image-loader:generateReleaseRFile
Task :expo-image-picker:parseReleaseLocalResources
Task :expo-image-picker:generateReleaseRFile
Task :expo-keep-awake:compileReleaseLibraryResources
Task :expo-keep-awake:parseReleaseLocalResources
Task :expo-keep-awake:generateReleaseRFile
Task :expo-local-authentication:parseReleaseLocalResources
Task :expo-modules-core:compileReleaseLibraryResources
Task :expo-local-authentication:generateReleaseRFile
Task :expo-modules-core:parseReleaseLocalResources
Task :expo-navigation-bar:compileReleaseLibraryResources
Task :expo-navigation-bar:parseReleaseLocalResources
Task :expo-local-authentication:compileReleaseLibraryResources
Task :expo-modules-core:generateReleaseRFile
Task :lottie-react-native:compileReleaseLibraryResources
Task :expo-navigation-bar:generateReleaseRFile
Task :lottie-react-native:parseReleaseLocalResources
Task :react-native-async-storage_async-storage:compileReleaseLibraryResources
Task :lottie-react-native:generateReleaseRFile
Task :react-native-async-storage_async-storage:parseReleaseLocalResources
Task :react-native-firebase_app:compileReleaseLibraryResources
Task :react-native-async-storage_async-storage:generateReleaseRFile
Task :react-native-firebase_app:parseReleaseLocalResources
Task :react-native-firebase_auth:compileReleaseLibraryResources
Task :react-native-firebase_app:generateReleaseRFile
Task :react-native-gesture-handler:compileReleaseLibraryResources
Task :react-native-firebase_auth:parseReleaseLocalResources
Task :react-native-firebase_auth:generateReleaseRFile
Task :react-native-gesture-handler:parseReleaseLocalResources
Task :react-native-masked-view_masked-view:compileReleaseLibraryResources
Task :react-native-gesture-handler:generateReleaseRFile
Task :react-native-navigation:compileReactNative71ReleaseLibraryResources
Task :react-native-masked-view_masked-view:parseReleaseLocalResources
Task :react-native-navigation:parseReactNative71ReleaseLocalResources
Task :react-native-masked-view_masked-view:generateReleaseRFile
Task :react-native-navigation-bar-color:compileReleaseLibraryResources
Task :react-native-navigation:generateReactNative71ReleaseRFile
Task :react-native-navigation-bar-color:parseReleaseLocalResources
Task :react-native-navigation-bar-color:generateReleaseRFile
Task :react-native-vector-icons:compileReleaseLibraryResources
Task :react-native-async-storage_async-storage:generateReleaseBuildConfig
Task :react-native-async-storage_async-storage:javaPreCompileRelease
Task :react-native-vector-icons:parseReleaseLocalResources
Task :react-native-vector-icons:generateReleaseRFile
Task :react-native-firebase_app:generateReleaseBuildConfig
Task :react-native-firebase_app:javaPreCompileRelease
Task :react-native-firebase_auth:generateReleaseBuildConfig
Task :react-native-firebase_auth:javaPreCompileRelease
Task :react-native-masked-view_masked-view:generateReleaseBuildConfig
Task :react-native-masked-view_masked-view:javaPreCompileRelease
Task :react-native-async-storage_async-storage:compileReleaseJavaWithJavac
/home/expo/workingdir/build/node_modules/@react-native-async-storage/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:84: warning: [removal] onCatalystInstanceDestroy() in NativeModule has been deprecated and marked for removal
public void onCatalystInstanceDestroy() {
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/expo/workingdir/build/node_modules/@react-native-async-storage/async-storage/android/src/javaPackage/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
Task :react-native-masked-view_masked-view:compileReleaseJavaWithJavac
Task :react-native-firebase_app:compileReleaseJavaWithJavac
/home/expo/workingdir/build/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseModule.java:97: warning: [removal] onCatalystInstanceDestroy() in NativeModule has been deprecated and marked for removal
public void onCatalystInstanceDestroy() {
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 warning
Task :react-native-async-storage_async-storage:bundleLibRuntimeToJarRelease
Task :react-native-masked-view_masked-view:bundleLibRuntimeToJarRelease
Task :react-native-firebase_app:bundleLibCompileToJarRelease
Task :react-native-firebase_auth:compileReleaseJavaWithJavac
Note: /home/expo/workingdir/build/node_modules/@react-native-firebase/auth/android/src/main/java/io/invertase/firebase/auth/ReactNativeFirebaseAuthModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/expo/workingdir/build/node_modules/@react-native-firebase/auth/android/src/main/java/io/invertase/firebase/auth/ReactNativeFirebaseAuthModule.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Task :react-native-firebase_auth:bundleLibRuntimeToJarRelease
Task :react-native-firebase_app:bundleLibRuntimeToJarRelease
Task :app:createBundleReleaseJsAndAssets
Starting Metro Bundler
warning: Bundler cache is empty, rebuilding (this may take a minute)
Task :expo:checkKotlinGradlePluginConfigurationErrors
Task :expo:generateReleaseBuildConfig
Task :expo-asset:checkKotlinGradlePluginConfigurationErrors
Task :expo-asset:generateReleaseBuildConfig
Task :expo-modules-core:checkKotlinGradlePluginConfigurationErrors
Task :expo-modules-core:generateReleaseBuildConfig
Task :expo-constants:checkKotlinGradlePluginConfigurationErrors
Task :expo-constants:generateReleaseBuildConfig
Task :expo-asset:javaPreCompileRelease
Task :expo-file-system:checkKotlinGradlePluginConfigurationErrors
Task :expo-file-system:generateReleaseBuildConfig
Task :expo-constants:javaPreCompileRelease
Task :expo-font:checkKotlinGradlePluginConfigurationErrors
Task :expo-font:generateReleaseBuildConfig
Task :expo-file-system:javaPreCompileRelease
Task :expo-image-loader:checkKotlinGradlePluginConfigurationErrors
Task :expo-image-loader:generateReleaseBuildConfig
Task :expo-font:javaPreCompileRelease
Task :expo-image-picker:checkKotlinGradlePluginConfigurationErrors
Task :expo-image-picker:generateReleaseBuildConfig
Task :expo-image-picker:javaPreCompileRelease
Task :expo-keep-awake:checkKotlinGradlePluginConfigurationErrors
Task :expo-keep-awake:generateReleaseBuildConfig
Task :expo-image-loader:javaPreCompileRelease
Task :expo-local-authentication:checkKotlinGradlePluginConfigurationErrors
Task :expo-local-authentication:generateReleaseBuildConfig
Task :expo-keep-awake:javaPreCompileRelease
Task :expo-navigation-bar:checkKotlinGradlePluginConfigurationErrors
Task :expo-navigation-bar:generateReleaseBuildConfig
Task :expo-local-authentication:javaPreCompileRelease
Task :expo:javaPreCompileRelease
Task :lottie-react-native:checkKotlinGradlePluginConfigurationErrors
Task :lottie-react-native:generateReleaseBuildConfig
Task :expo-navigation-bar:javaPreCompileRelease
Task :react-native-gesture-handler:checkKotlinGradlePluginConfigurationErrors
Task :react-native-gesture-handler:generateReleaseBuildConfig
Task :lottie-react-native:compileReleaseKotlin
w: file:///home/expo/workingdir/build/node_modules/lottie-react-native/android/src/main/java/com/airbnb/android/react/lottie/LottieAnimationViewPropertyManager.kt:20:38 'ReactFontManager' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/lottie-react-native/android/src/main/java/com/airbnb/android/react/lottie/LottieAnimationViewPropertyManager.kt:71:24 'ReactFontManager' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/lottie-react-native/android/src/main/java/com/airbnb/android/react/lottie/LottieAnimationViewPropertyManager.kt:85:24 'ReactFontManager' is deprecated. Deprecated in Java
Task :expo-modules-core:javaPreCompileRelease
Task :lottie-react-native:javaPreCompileRelease
Task :lottie-react-native:compileReleaseJavaWithJavac
Task :lottie-react-native:bundleLibRuntimeToJarRelease
Task :react-native-gesture-handler:javaPreCompileRelease
Task :react-native-navigation:checkKotlinGradlePluginConfigurationErrors
Task :react-native-navigation:generateReactNative71ReleaseBuildConfig
Task :expo-modules-core:compileReleaseKotlin
Task :react-native-gesture-handler:compileReleaseKotlin
Task :react-native-navigation:compileReactNative71ReleaseKotlin
Task :react-native-gesture-handler:compileReleaseKotlin
w: file:///home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/RNGestureHandlerPackage.kt:69:42 'constructor ReactModuleInfo(String!, String!, Boolean, Boolean, Boolean, Boolean, Boolean)' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/core/FlingGestureHandler.kt:25:26 Parameter 'event' is never used
Task :react-native-gesture-handler:compileReleaseJavaWithJavac
Task :react-native-gesture-handler:bundleLibRuntimeToJarRelease
Task :react-native-navigation:javaPreCompileReactNative71Release
Task :react-native-navigation-bar-color:generateReleaseBuildConfig
Task :react-native-navigation-bar-color:javaPreCompileRelease
Task :react-native-navigation-bar-color:compileReleaseJavaWithJavac
Task :react-native-navigation-bar-color:bundleLibRuntimeToJarRelease
Note: /home/expo/workingdir/build/node_modules/react-native-navigation-bar-color/android/src/main/java/com/thebylito/navigationbarcolor/NavigationBarColorModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Task :react-native-vector-icons:generateReleaseBuildConfig
Task :react-native-vector-icons:javaPreCompileRelease
Task :react-native-vector-icons:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Task :react-native-vector-icons:bundleLibRuntimeToJarRelease
Task :lottie-react-native:bundleLibCompileToJarRelease
Task :react-native-async-storage_async-storage:bundleLibCompileToJarRelease
Task :react-native-firebase_auth:bundleLibCompileToJarRelease
Task :react-native-gesture-handler:bundleLibCompileToJarRelease
Task :react-native-masked-view_masked-view:bundleLibCompileToJarRelease
Task :react-native-navigation-bar-color:bundleLibCompileToJarRelease
Task :react-native-vector-icons:bundleLibCompileToJarRelease
Task :expo:mergeReleaseShaders
Task :expo:compileReleaseShaders NO-SOURCE
Task :expo:generateReleaseAssets UP-TO-DATE
Task :expo:packageReleaseAssets
Task :expo-asset:mergeReleaseShaders
Task :expo-asset:compileReleaseShaders NO-SOURCE
Task :expo-asset:generateReleaseAssets UP-TO-DATE
Task :expo-asset:packageReleaseAssets
Task :expo-constants:mergeReleaseShaders
Task :expo-constants:compileReleaseShaders NO-SOURCE
Task :expo-constants:generateReleaseAssets UP-TO-DATE
Task :expo-constants:packageReleaseAssets
Task :expo-file-system:mergeReleaseShaders
Task :expo-file-system:compileReleaseShaders NO-SOURCE
Task :expo-file-system:generateReleaseAssets UP-TO-DATE
Task :expo-file-system:packageReleaseAssets
Task :expo-font:mergeReleaseShaders
Task :expo-font:compileReleaseShaders NO-SOURCE
Task :expo-font:generateReleaseAssets UP-TO-DATE
Task :expo-font:packageReleaseAssets
Task :expo-image-loader:mergeReleaseShaders
Task :expo-image-loader:compileReleaseShaders NO-SOURCE
Task :expo-image-loader:generateReleaseAssets UP-TO-DATE
Task :expo-image-loader:packageReleaseAssets
Task :expo-image-picker:mergeReleaseShaders
Task :expo-image-picker:compileReleaseShaders NO-SOURCE
Task :expo-image-picker:generateReleaseAssets UP-TO-DATE
Task :expo-image-picker:packageReleaseAssets
Task :expo-keep-awake:mergeReleaseShaders
Task :expo-keep-awake:compileReleaseShaders NO-SOURCE
Task :expo-keep-awake:generateReleaseAssets UP-TO-DATE
Task :expo-keep-awake:packageReleaseAssets
Task :expo-local-authentication:mergeReleaseShaders
Task :expo-local-authentication:compileReleaseShaders NO-SOURCE
Task :expo-local-authentication:generateReleaseAssets UP-TO-DATE
Task :expo-local-authentication:packageReleaseAssets
Task :expo-modules-core:mergeReleaseShaders
Task :expo-modules-core:compileReleaseShaders NO-SOURCE
Task :expo-modules-core:generateReleaseAssets UP-TO-DATE
Task :expo-modules-core:packageReleaseAssets
Task :expo-navigation-bar:mergeReleaseShaders
Task :expo-navigation-bar:compileReleaseShaders NO-SOURCE
Task :expo-navigation-bar:generateReleaseAssets UP-TO-DATE
Task :expo-navigation-bar:packageReleaseAssets
Task :lottie-react-native:mergeReleaseShaders
Task :lottie-react-native:compileReleaseShaders NO-SOURCE
Task :lottie-react-native:generateReleaseAssets UP-TO-DATE
Task :lottie-react-native:packageReleaseAssets
Task :react-native-async-storage_async-storage:mergeReleaseShaders
Task :react-native-async-storage_async-storage:compileReleaseShaders NO-SOURCE
Task :react-native-async-storage_async-storage:generateReleaseAssets UP-TO-DATE
Task :react-native-async-storage_async-storage:packageReleaseAssets
Task :react-native-firebase_app:mergeReleaseShaders
Task :react-native-firebase_app:compileReleaseShaders NO-SOURCE
Task :react-native-firebase_app:generateReleaseAssets UP-TO-DATE
Task :react-native-firebase_app:packageReleaseAssets
Task :react-native-firebase_auth:mergeReleaseShaders
Task :react-native-firebase_auth:compileReleaseShaders NO-SOURCE
Task :react-native-firebase_auth:generateReleaseAssets UP-TO-DATE
Task :react-native-firebase_auth:packageReleaseAssets
Task :react-native-gesture-handler:mergeReleaseShaders
Task :react-native-gesture-handler:compileReleaseShaders NO-SOURCE
Task :react-native-gesture-handler:generateReleaseAssets UP-TO-DATE
Task :react-native-gesture-handler:packageReleaseAssets
Task :react-native-masked-view_masked-view:mergeReleaseShaders
Task :react-native-masked-view_masked-view:compileReleaseShaders NO-SOURCE
Task :react-native-masked-view_masked-view:generateReleaseAssets UP-TO-DATE
Task :react-native-masked-view_masked-view:packageReleaseAssets
Task :react-native-navigation:mergeReactNative71ReleaseShaders
Task :react-native-navigation:compileReactNative71ReleaseShaders NO-SOURCE
Task :react-native-navigation:generateReactNative71ReleaseAssets UP-TO-DATE
Task :react-native-navigation:packageReactNative71ReleaseAssets
Task :react-native-navigation-bar-color:mergeReleaseShaders
Task :react-native-navigation-bar-color:compileReleaseShaders NO-SOURCE
Task :react-native-navigation-bar-color:generateReleaseAssets UP-TO-DATE
Task :react-native-navigation-bar-color:packageReleaseAssets
Task :react-native-vector-icons:mergeReleaseShaders
Task :react-native-vector-icons:compileReleaseShaders NO-SOURCE
Task :react-native-vector-icons:generateReleaseAssets UP-TO-DATE
Task :react-native-vector-icons:packageReleaseAssets
Task :lottie-react-native:processReleaseJavaRes
Task :react-native-async-storage_async-storage:processReleaseJavaRes NO-SOURCE
Task :react-native-firebase_app:processReleaseJavaRes NO-SOURCE
Task :react-native-firebase_auth:processReleaseJavaRes NO-SOURCE
Task :react-native-gesture-handler:processReleaseJavaRes
Task :react-native-masked-view_masked-view:processReleaseJavaRes NO-SOURCE
Task :react-native-navigation-bar-color:processReleaseJavaRes NO-SOURCE
Task :react-native-vector-icons:processReleaseJavaRes NO-SOURCE
Task :expo:mergeReleaseJniLibFolders
Task :expo:mergeReleaseNativeLibs NO-SOURCE
Task :expo:copyReleaseJniLibsProjectOnly
Task :expo-asset:mergeReleaseJniLibFolders
Task :expo-asset:mergeReleaseNativeLibs NO-SOURCE
Task :expo-asset:copyReleaseJniLibsProjectOnly
Task :expo-constants:mergeReleaseJniLibFolders
Task :expo-constants:mergeReleaseNativeLibs NO-SOURCE
Task :expo-constants:copyReleaseJniLibsProjectOnly
Task :expo-file-system:mergeReleaseJniLibFolders
Task :expo-file-system:mergeReleaseNativeLibs NO-SOURCE
Task :expo-file-system:copyReleaseJniLibsProjectOnly
Task :expo-font:mergeReleaseJniLibFolders
Task :expo-font:mergeReleaseNativeLibs NO-SOURCE
Task :expo-font:copyReleaseJniLibsProjectOnly
Task :expo-image-loader:mergeReleaseJniLibFolders
Task :expo-image-loader:mergeReleaseNativeLibs NO-SOURCE
Task :expo-image-loader:copyReleaseJniLibsProjectOnly
Task :expo-image-picker:mergeReleaseJniLibFolders
Task :expo-image-picker:mergeReleaseNativeLibs NO-SOURCE
Task :expo-image-picker:copyReleaseJniLibsProjectOnly
Task :expo-keep-awake:mergeReleaseJniLibFolders
Task :expo-keep-awake:mergeReleaseNativeLibs NO-SOURCE
Task :expo-keep-awake:copyReleaseJniLibsProjectOnly
Task :expo-local-authentication:mergeReleaseJniLibFolders
Task :expo-local-authentication:mergeReleaseNativeLibs NO-SOURCE
Task :expo-local-authentication:copyReleaseJniLibsProjectOnly
Task :expo-modules-core:configureCMakeRelWithDebInfo[arm64-v8a]
Checking the license for package CMake 3.22.1 in /home/expo/Android/Sdk/licenses
License for package CMake 3.22.1 accepted.
Preparing "Install CMake 3.22.1 v.3.22.1".
"Install CMake 3.22.1 v.3.22.1" ready.
Installing CMake 3.22.1 in /home/expo/Android/Sdk/cmake/3.22.1
"Install CMake 3.22.1 v.3.22.1" complete.
"Install CMake 3.22.1 v.3.22.1" finished.
Task :react-native-navigation:compileReactNative71ReleaseKotlin
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/react/modal/Events.kt:5:44 'RCTEventEmitter' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/react/modal/Events.kt:7:51 'constructor Event<T : Event<(raw) Event<>>!>(Int)' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/react/modal/Events.kt:17:44 'RCTEventEmitter' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/react/modal/Events.kt:18:25 'receiveEvent(Int, String!, WritableMap?): Unit' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/react/modal/Events.kt:22:43 'constructor Event<T : Event<(raw) Event<
>>!>(Int)' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/react/modal/Events.kt:32:44 'RCTEventEmitter' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/react/modal/Events.kt:33:25 'receiveEvent(Int, String!, WritableMap?): Unit' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/react/modal/ModalViewManager.kt:116:48 'getter for defaultDisplay: Display!' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/react/modal/ModalViewManager.kt:120:13 'getSize(Point!): Unit' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/utils/SystemUiUtils.kt:86:30 'getter for systemUiVisibility: Int' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/utils/SystemUiUtils.kt:88:31 'SYSTEM_UI_FLAG_LIGHT_STATUS_BAR: Int' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/utils/SystemUiUtils.kt:90:32 'SYSTEM_UI_FLAG_LIGHT_STATUS_BAR: Int' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/utils/SystemUiUtils.kt:93:18 'setter for systemUiVisibility: Int' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/modal/ModalAnimator.kt:51:9 This is a delicate API and its use requires care. Make sure you fully read and understand documentation of the declaration that is marked as a delicate API.
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/modal/ModalAnimator.kt:65:9 This is a delicate API and its use requires care. Make sure you fully read and understand documentation of the declaration that is marked as a delicate API.
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/modal/ModalAnimator.kt:80:9 This is a delicate API and its use requires care. Make sure you fully read and understand documentation of the declaration that is marked as a delicate API.
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/StackAnimator.kt:116:9 This is a delicate API and its use requires care. Make sure you fully read and understand documentation of the declaration that is marked as a delicate API.
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/StackAnimator.kt:223:9 This is a delicate API and its use requires care. Make sure you fully read and understand documentation of the declaration that is marked as a delicate API.
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/topbar/button/ButtonPresenter.kt:74:30 Parameter 'toolbar' is never used
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/topbar/button/ButtonPresenter.kt:206:42 Unnecessary safe call on a non-null receiver of type View
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/topbar/button/ButtonPresenter.kt:208:33 Unnecessary non-null assertion (!!) on a non-null receiver of type AccessibilityNodeInfoCompat
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/views/stack/topbar/titlebar/IconBackgroundDrawable.kt:72:13 Condition 'bounds != null' is always 'true'
w: file:///home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/viewcontrollers/viewcontroller/YellowBoxDelegate.kt:36:16 No cast needed
Task :react-native-navigation:compileReactNative71ReleaseJavaWithJavac
/home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/react/NavigationModule.java:237: warning: [removal] onCatalystInstanceDestroy() in NativeModule has been deprecated and marked for removal
public void onCatalystInstanceDestroy() {
^
/home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/react/NavigationModule.java:242: warning: [removal] onCatalystInstanceDestroy() in NativeModule has been deprecated and marked for removal
super.onCatalystInstanceDestroy();
^
/home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/utils/ReactTypefaceUtils.java:99: error: cannot find symbol
|| ((oldStyle & Typeface.BOLD) != 0 && weight == ReactTextShadowNode.UNSET)) {
^
symbol: variable UNSET
location: class ReactTextShadowNode
/home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/utils/ReactTypefaceUtils.java:104: error: cannot find symbol
|| ((oldStyle & Typeface.ITALIC) != 0 && style == ReactTextShadowNode.UNSET)) {
^
symbol: variable UNSET
location: class ReactTextShadowNode
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
2 warnings
Task :react-native-navigation:compileReactNative71ReleaseJavaWithJavac FAILED
Task :expo-modules-core:compileReleaseKotlin
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/permissions/PermissionsService.kt:20:26 'Promise' is deprecated. AsyncFunction will crash when called. Use expo.modules.kotlin.Promise instead
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/permissions/PermissionsService.kt:63:51 'Promise' is deprecated. AsyncFunction will crash when called. Use expo.modules.kotlin.Promise instead
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/permissions/PermissionsService.kt:90:54 'Promise' is deprecated. AsyncFunction will crash when called. Use expo.modules.kotlin.Promise instead
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/defaultmodules/CoreModule.kt:6:34 'ReactFeatureFlags' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/defaultmodules/CoreModule.kt:71:12 'ReactFeatureFlags' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/events/KModuleEventEmitterWrapper.kt:97:7 'constructor Event<T : Event<(raw) Event<>>!>(Int)' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/types/JSTypeConverterHelper.kt:44:17 'get(String!): Any?' is deprecated. Deprecated in Java
Task :app:createBundleReleaseJsAndAssets
Failed to link source maps because the source map URL "index.android.bundle.packager.map" is corrupt: TypeError: Invalid URL
at new NodeError (node:internal/errors:405:5)
at new URL (node:internal/url:637:13)
at Chunk.getAdjustedSourceMapUrl (/home/expo/workingdir/build/node_modules/@expo/metro-config/src/serializer/serializeChunks.ts:335:22)
at Chunk.serializeToCode (/home/expo/workingdir/build/node_modules/@expo/metro-config/src/serializer/serializeChunks.ts:357:26)
at Chunk.serializeToAssetsAsync (/home/expo/workingdir/build/node_modules/@expo/metro-config/src/serializer/serializeChunks.ts:386:25)
at /home/expo/workingdir/build/node_modules/@expo/metro-config/src/serializer/serializeChunks.ts:615:25
at Array.map ()
at serializeChunksAsync (/home/expo/workingdir/build/node_modules/@expo/metro-config/src/serializer/serializeChunks.ts:613:17)
at graphToSerialAssetsAsync (/home/expo/workingdir/build/node_modules/@expo/metro-config/src/serializer/serializeChunks.ts:150:26)
at /home/expo/workingdir/build/node_modules/@expo/metro-config/src/serializer/withExpoSerializers.ts:245:50 {
input: '/_expo/static/js/android/AppEntry-4903271ab4a2314d58009500241bc59b.js.map',
code: 'ERR_INVALID_URL'
}
Android Bundled 120166ms node_modules/expo/AppEntry.js (12158 modules)
Writing bundle output to: /home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle
Writing sourcemap output to: /home/expo/workingdir/build/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map
Copying 54 asset files
Done writing bundle output
Done writing sourcemap output
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:763:63: warning: Direct call to eval(), but lexical scope is not supported.
...typeof expo === "undefined" ? eval("require") : function (moduleId) {
^~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:3361:16: warning: the variable "SharedArrayBuffer" was not declared in function "from"
if (typeof SharedArrayBuffer !== 'undefined' && (isInstance(value, Shared...
^~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:7353:18: warning: the variable "DebuggerInternal" was not declared in function "__shouldPauseOnThrow"
typeof DebuggerInternal !== 'undefined' &&
^~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:19573:7: warning: the variable "setTimeout" was not declared in function "logCapturedError"
setTimeout(function () {
^~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:17683:31: warning: the variable "nativeFabricUIManager" was not declared in anonymous function " 374#"
var _nativeFabricUIManage = nativeFabricUIManager,
^~~~~~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:17711:21: warning: the variable "clearTimeout" was not declared in anonymous function " 374#"
cancelTimeout = clearTimeout;
^~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:22341:30: warning: the variable "REACT_DEVTOOLS_GLOBAL_HOOK" was not declared in anonymous function " 374#"
if ("undefined" !== typeof REACT_DEVTOOLS_GLOBAL_HOOK) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:23890:5: warning: the variable "setImmediate" was not declared in function "handleResolved"
setImmediate(function () {
^~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:27928:5: warning: the variable "fetch" was not declared in anonymous function " 585#"
fetch,
^~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:27929:5: warning: the variable "Headers" was not declared in anonymous function " 585#"
Headers,
^~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:27930:5: warning: the variable "Request" was not declared in anonymous function " 585#"
Request,
^~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:27931:5: warning: the variable "Response" was not declared in anonymous function " 585#"
Response
^~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:28088:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer"
var reader = new FileReader();
^~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:28139:36: warning: the variable "Blob" was not declared in anonymous function " 596#"
} else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
^~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:28141:40: warning: the variable "FormData" was not declared in anonymous function " 596#"
} else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
^~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:28143:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 596#"
...e if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body...
^~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:28262:26: warning: the variable "AbortController" was not declared in anonymous function " 602#"
var ctrl = new AbortController();
^~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:28396:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 606#"
var xhr = new XMLHttpRequest();
^~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:27941:71: warning: the variable "self" was not declared in anonymous function " 588#"
...undefined' && globalThis || typeof self !== 'undefined' && self ||
^~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:31958:27: warning: the variable "performance" was not declared in anonymous function " 763#"
if ("object" === typeof performance && "function" === typeof performance.no...
^~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:31981:26: warning: the variable "navigator" was not declared in anonymous function " 763#"
"undefined" !== typeof navigator && undefined !== navigator.scheduling && u...
^~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:32091:37: warning: the variable "MessageChannel" was not declared in anonymous function " 763#"
};else if ("undefined" !== typeof MessageChannel) {
^~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:32106:34: warning: the variable "nativeRuntimeScheduler" was not declared in anonymous function " 763#"
... = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler....
^~~~~~~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:43885:34: warning: the variable "requestAnimationFrame" was not declared in function "start 9#"
... this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
^~~~~~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:69799:29: warning: the variable "IDBDatabase" was not declared in function "getMethod"
if (!(target instanceof IDBDatabase && !(prop in target) && typeof prop =...
^~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:69808:37: warning: the variable "IDBIndex" was not declared in function "getMethod"
!(targetFuncName in (useIndex ? IDBIndex : IDBObjectStore).prototype) || ...
^~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:69808:48: warning: the variable "IDBObjectStore" was not declared in function "getMethod"
...ame in (useIndex ? IDBIndex : IDBObjectStore).prototype) || !(isWrite || r...
^~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:69862:94: warning: the variable "IDBCursor" was not declared in function "getIdbProxyableTypes"
...abase, IDBObjectStore, IDBIndex, IDBCursor, IDBTransaction]);
^~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:69862:105: warning: the variable "IDBTransaction" was not declared in function "getIdbProxyableTypes"
...ctStore, IDBIndex, IDBCursor, IDBTransaction]);
^~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:69917:32: warning: the variable "DOMException" was not declared in function "error 3#"
reject(tx.error || new DOMException('AbortError', 'AbortError'));
^~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:70009:26: warning: the variable "IDBRequest" was not declared in function "wrap 1#"
if (value instanceof IDBRequest) return promisifyRequest(value);
^~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:83555:76: warning: the variable "Buffer" was not declared in function "convertValue"
... 'function' ? new Blob([value]) : Buffer.from(value);
^~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:211094:10: warning: the variable "HTMLElement" was not declared in anonymous function " 3588#"
typeof HTMLElement !== 'undefined' ? /
#PURE */createCache__default["d...
^~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:401891:5: warning: the property "title" was set multiple times in the object definition.
title: {
^~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:401836:5: note: The first definition was here.
title: {
^~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:402901:15: warning: the property "backgroundColor" was set multiple times in the object definition.
backgroundColor: 'white',
^~~~~~~~~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:402899:15: note: The first definition was here.
backgroundColor: 'white',
^~~~~~~~~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:404759:42: warning: the variable "invariant" was not declared in function "uncontrollable"
!(canAcceptRef || !methods.length) ? invariant(false) : undefined;
^~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:406551:37: warning: the variable "MSApp" was not declared in anonymous function " 15059#"
return "undefined" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? ...
^~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:408313:32: warning: the variable "queueMicrotask" was not declared in anonymous function " 15026#"
Jf = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" ...
^~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:412862:34: warning: the variable "reportError" was not declared in anonymous function " 15026#"
var ll = "function" === typeof reportError ? reportError : function (a) {
^~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:414858:7: warning: the variable "cancelAnimationFrame" was not declared in function "loop 2#"
cancelAnimationFrame(handle);
^~~~~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:416627:24: warning: the variable "getComputedStyle" was not declared in function "isVisible 1#"
var elementStyle = getComputedStyle(element);
^~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:418589:58: warning: the variable "Element" was not declared in function "isElement"
return node instanceof OwnElement || node instanceof Element;
^~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:418597:16: warning: the variable "ShadowRoot" was not declared in function "isShadowRoot"
if (typeof ShadowRoot === 'undefined') {
^~~~~~~~~~
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-navigation:compileReactNative71ReleaseJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:

Run with --info option to get more log output.

Run with --scan to get full insights.
BUILD FAILED in 6m 49s
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.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
312 actionable tasks: 312 executed
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

@Anand14001
Copy link

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-navigation:compileReactNative71ReleaseJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:

Run with --info option to get more log output.

Run with --scan to get full insights.
BUILD FAILED in 6m 49s
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.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
312 actionable tasks: 312 executed
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

@ertugruldogan
Copy link

If you set the configuration this way, it will not give an error.

React Native 0.74.2
React Native Navigation: : 0.74.0
Gradle 8.6
Java 17
openjdk 17
2024-06-12_11-45-51

node_modules\react-native-navigation\lib\android\app\src\main\java\com\reactnativenavigation\utils\ReactTypefaceUtils.java

if ((weight == Typeface.BOLD) || ((oldStyle & Typeface.BOLD) != 0 && weight == ReactTextShadowNode.UNSET)) {
replace
if ((weight == Typeface.BOLD) || ((oldStyle & Typeface.BOLD) != 0)) {

if ((style == Typeface.ITALIC) || ((oldStyle & Typeface.ITALIC) != 0 && style == ReactTextShadowNode.UNSET)) {
replace
if ((style == Typeface.ITALIC) || ((oldStyle & Typeface.ITALIC) != 0)) {

@ertugruldogan
Copy link

ertugruldogan commented Jun 12, 2024

Whether you have jdk 1.8 and 11 installed on your computer, you do not need to make any changes below.

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
if (reactNativeMinorVersion() >= 73) {
jvmTarget = JavaVersion.VERSION_17
} else {
jvmTarget = JavaVersion.VERSION_11
}
}

2024-06-12_11-54-10

2024-06-12_11-54-32

2024-06-12_11-45-51

@Anand14001
Copy link

Anand14001 commented Jun 12, 2024

@ertugruldogan so what should i do now?

react native version: 10.7.2
java : 17.0.2
gradle: 8.6
react navigation: 6.1.17

build.gradle:
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'maven-publish'

group = 'host.exp.exponent'
version = '5.1.1'

buildscript {
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
if (expoModulesCorePlugin.exists()) {
apply from: expoModulesCorePlugin
applyKotlinExpoModulesCorePlugin()
}

// Simple helper that allows the root project to override versions declared by this library.
ext.safeExtGet = { prop, fallback ->
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

// Ensures backward compatibility
ext.getKotlinVersion = {
if (ext.has("kotlinVersion")) {
ext.kotlinVersion()
} else {
ext.safeExtGet("kotlinVersion", "1.8.10")
}
}

repositories {
mavenCentral()
}

dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${getKotlinVersion()}")
}
}

// Creating sources with comments
task androidSourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
// Add additional sourcesJar to artifacts
artifact(androidSourcesJar)
}
}
repositories {
maven {
url = mavenLocal().url
}
}
}
}

android {
compileSdkVersion safeExtGet("compileSdkVersion", 33)

compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.majorVersion
}

defaultConfig {
minSdkVersion safeExtGet("minSdkVersion", 21)
targetSdkVersion safeExtGet("targetSdkVersion", 33)
versionCode 12
versionName '5.1.1'
}
lintOptions {
abortOnError false
}
}

dependencies {
implementation project(':expo-modules-core')

implementation 'com.android.installreferrer:installreferrer:1.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"

if (project.findProject(':expo-modules-test-core')) {
testImplementation project(':expo-modules-test-core')
}
testImplementation "org.robolectric:robolectric:4.5.1"
testImplementation 'junit:junit:4.12'
}

package.json:
{
"name": "login-app",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web"
},
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@expo/metro-runtime": "~3.2.1",
"@fontsource/roboto": "^5.0.13",
"@mui/icons-material": "^5.15.19",
"@mui/material": "^5.15.19",
"@mui/styled-engine-sc": "^6.0.0-alpha.18",
"@react-native-async-storage/async-storage": "1.23.1",
"@react-native-firebase/app": "^19.2.2",
"@react-native-firebase/auth": "^19.2.2",
"@react-native-masked-view/masked-view": "0.3.1",
"@react-navigation/native": "^6.1.17",
"@react-navigation/native-stack": "^6.9.26",
"@react-navigation/stack": "^6.3.29",
"axios": "^1.7.2",
"expo": "~51.0.13",
"expo-image-picker": "~15.0.5",
"expo-local-authentication": "~14.0.1",
"expo-navigation-bar": "~3.0.6",
"expo-status-bar": "~1.12.1",
"firebase": "^10.11.0",
"lottie-react-native": "6.7.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.74.2",
"react-native-fieldset": "^1.0.3",
"react-native-gesture-handler": "~2.16.1",
"react-native-navigation": "^7.39.2",
"react-native-navigation-bar-color": "^2.0.2",
"react-native-paper": "^5.12.3",
"react-native-swiper": "^1.6.0",
"react-native-vector-icons": "^10.0.3",
"react-native-web": "~0.19.10",
"styled-components": "^6.1.11"
},
"devDependencies": {
"@babel/core": "^7.24.0",
"react-bootstrap": "^2.10.2"
},
"private": true
}

ReactTypeFaceUtils : /*

  • Copyright (c) Facebook, Inc. and its affiliates.
  • This source code is licensed under the MIT license found in the
  • LICENSE file in the root directory of this source tree.
    */

// This file was copied over from react-native
// to provide backwards compatibility < rn 0.62
//
// TODO: Remove me and use com.facebook.react.views.text.ReactTypefaceUtils
// once we drop support for rn < 0.62

package com.reactnativenavigation.utils;

import android.content.res.AssetManager;
import android.graphics.Typeface;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.views.text.ReactFontManager;
import com.facebook.react.views.text.ReactTextShadowNode;
import java.util.ArrayList;
import java.util.List;

public class ReactTypefaceUtils {
public static final int UNSET = -1;

public static int parseFontWeight(@nullable String fontWeightString) {
int fontWeightNumeric =
fontWeightString != null ? parseNumericFontWeight(fontWeightString) : UNSET;
int fontWeight = fontWeightNumeric != UNSET ? fontWeightNumeric : Typeface.NORMAL;

if (fontWeight == 700 || "bold".equals(fontWeightString)) fontWeight = Typeface.BOLD;
else if (fontWeight == 400 || "normal".equals(fontWeightString)) fontWeight = Typeface.NORMAL;

return fontWeight;

}

public static int parseFontStyle(@nullable String fontStyleString) {
int fontStyle = UNSET;
if ("italic".equals(fontStyleString)) {
fontStyle = Typeface.ITALIC;
} else if ("normal".equals(fontStyleString)) {
fontStyle = Typeface.NORMAL;
}

return fontStyle;

}

public static @nullable String parseFontVariant(@nullable ReadableArray fontVariantArray) {
if (fontVariantArray == null || fontVariantArray.size() == 0) {
return null;
}

List<String> features = new ArrayList<>();
for (int i = 0; i < fontVariantArray.size(); i++) {
  // see https://docs.microsoft.com/en-us/typography/opentype/spec/featurelist
  String fontVariant = fontVariantArray.getString(i);
  if (fontVariant != null) {
    switch (fontVariant) {
      case "small-caps":
        features.add("'smcp'");
        break;
      case "oldstyle-nums":
        features.add("'onum'");
        break;
      case "lining-nums":
        features.add("'lnum'");
        break;
      case "tabular-nums":
        features.add("'tnum'");
        break;
      case "proportional-nums":
        features.add("'pnum'");
        break;
    }
  }
}

return TextUtils.join(", ", features);

}

public static Typeface applyStyles(
@nullable Typeface typeface,
int style,
int weight,
@nullable String family,
AssetManager assetManager) {
int oldStyle;
if (typeface == null) {
oldStyle = 0;
} else {
oldStyle = typeface.getStyle();
}

int want = 0;
if ((weight == Typeface.BOLD)
    || ((oldStyle & Typeface.BOLD) != 0 && weight == ReactTextShadowNode.UNSET)) {
  want |= Typeface.BOLD;
}

if ((style == Typeface.ITALIC)
    || ((oldStyle & Typeface.ITALIC) != 0 && style == ReactTextShadowNode.UNSET)) {
  want |= Typeface.ITALIC;
}

if (family != null) {
  typeface = ReactFontManager.getInstance().getTypeface(family, want, weight, assetManager);
} else if (typeface != null) {
  // TODO(t9055065): Fix custom fonts getting applied to text children with different style
  typeface = Typeface.create(typeface, want);
}

if (typeface != null) {
  return typeface;
} else {
  return Typeface.defaultFromStyle(want);
}

}

/**

  • Return -1 if the input string is not a valid numeric fontWeight (100, 200, ..., 900), otherwise
  • return the weight.
    */
    private static int parseNumericFontWeight(String fontWeightString) {
    // This should be much faster than using regex to verify input and Integer.parseInt
    return fontWeightString.length() == 3
    && fontWeightString.endsWith("00")
    && fontWeightString.charAt(0) <= '9'
    && fontWeightString.charAt(0) >= '1'
    ? 100 * (fontWeightString.charAt(0) - '0')
    : UNSET;
    }
    }

@jathnamas
Copy link

I was able to fix the issue in 2 parts by first upgrading react-native-nagivation to 7.40.0 and then following these instructions to patch the package.

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

Successfully merging a pull request may close this issue.