Open mharrison-nzme opened 1 year ago
@mharrison-nzme hi! Sorry for long reply...I'll take a look but I haven't tested on react-native 0.60x series. It was developed and tested on new and major version 0.70.x -0.71.x so it could be a problem on a native layer as your logs demonstrates. Gradle setting was updated somewhere in the 0.68.x RN series so it could be a reason
UPD If you found any possible solution you can provide a PR
@mharrison-nzme I'm working on upgrade my project to newest version from N 0.68.5 So I do this by steps, from 0.68.5 to 0.69.0 and have the same issue have you managed to resolve it with RN 0.6X or you just upgraded to 0.7X?
Project setup
RN: 0.63.3 Node 12.22.3 npm: 6.14.13
android/build.gradle contents
` // Top-level build file where you can add configuration options common to all sub-projects/modules.
import groovy.json.JsonSlurper
def getNpmVersion() { def inputFile = new File(project.projectDir.toString() + "/../package.json") def packageJson = new JsonSlurper().parseText(inputFile.text) return packageJson["version"] }
def getNpmVersionArray() { // major [0], minor [1], patch [2] def (major, minor, patch) = getNpmVersion().tokenize('.') return [Integer.parseInt(major), Integer.parseInt(minor), Integer.parseInt(patch)] as int[] }
project.ext { excludeAppGlideModule = true glideVersion = "4.9.0" }
buildscript { ext { buildToolsVersion = "29.0.3" ndkVersion = "21.4.7075529" minSdkVersion = 23 compileSdkVersion = 31 targetSdkVersion = 31 supportLibVersion = "29.0.3" ext.kotlinVersion = "1.7.10" } repositories { google() mavenCentral() } dependencies { classpath('com.android.tools.build:gradle:4.0.2') classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" classpath 'com.google.gms:google-services:4.3.3' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0' classpath 'com.google.firebase:perf-plugin:1.4.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }
allprojects { repositories { exclusiveContent { // We get React Native's Android binaries exclusively through npm, // from a local Maven repo inside node_modules/react-native/. // (The use of exclusiveContent prevents looking elsewhere like Maven Central // and potentially getting a wrong version.) filter { includeGroup "com.facebook.react" } forRepository { maven { url "$rootDir/../node_modules/react-native/android" } } }
google() mavenLocal() jcenter() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url "$rootDir/../node_modules/react-native/android" } maven { // Android JSC is installed from npm url("$rootDir/../node_modules/jsc-android/dist") } maven { url 'http://repo.brightcove.com/releases' } maven { url "https://appboy.github.io/appboy-android-sdk/sdk" } maven { url 'https://raw.githubusercontent.com/NielsenDigitalSDK/nielsenappsdk-android/master/' } maven { url "https://jitpack.io" credentials { username project.property("landmarkid_username") } } } }
subprojects { ext { def npmVersion = getNpmVersionArray() versionMajor = npmVersion[0] versionMinor = npmVersion[1] versionPatch = npmVersion[2] } } `
Steps
1) Installed package with
npm install react-native-recaptcha-enterprise
2) ran gradlew clean and cleanBuildCache. 3) npm start -- --reset-cache and npx react-native run-androidResult
Fails during build: ` FAILURE: Build failed with an exception.
What went wrong: Could not determine the dependencies of task ':react-native-recaptcha-enterprise:compileDebugAidl'.
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 19s `