Skip to content

Running into issues compiling for Android with React-Native 0.73.4 #250

@kgunderman

Description

@kgunderman

The app builds fine with React-Native 0.71, and for 0.73.4 when apptentive-react-native is not a dependency. However whenever I add apptentive-react-native as a dependency to my 0.73.4 project the build fails:
Screenshot 2024-04-23 at 12 09 06 PM
Screenshot 2024-04-23 at 12 09 20 PM
Screenshot 2024-04-23 at 12 09 33 PM

My android/build.grade:

buildscript {
    ext {
        buildToolsVersion = "34.0.0"
        RNNKotlinVersion = "1.8.0"
        RNNKotlinStdlib = "kotlin-stdlib-jdk8"
        minSdkVersion = 21
        compileSdkVersion = 34
        targetSdkVersion = 34
        supportVersion = "29.0.2"
        facebookSdkVersion = "11.3.0"

        ndkVersion = "25.1.8937393"
    }
    repositories {
        google()
        mavenLocal()
        mavenCentral()
        gradlePluginPortal()
    }
    dependencies {
        classpath "com.facebook.react:react-native-gradle-plugin"
        classpath "de.undercouch:gradle-download-task:4.1.2"
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$RNNKotlinVersion"
        classpath("com.android.tools.build:gradle")
        classpath 'com.google.gms:google-services:4.3.14'
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.2'
        classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
    }
    def credentialsProps = new Properties()
    if (file("$rootDir/app/credentials.properties").exists()) {
        file("$rootDir/app/credentials.properties").withInputStream { credentialsProps.load(it) }
    }
    ext.credentialsProps = credentialsProps
}

apply plugin: "com.facebook.react.rootproject"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions