Closed milobob closed 1 year ago
OS version: API 34
I have not yet released api 34 support.
This is still happening with this api version:
buildToolsVersion = "33.0.0" minSdkVersion = 21 compileSdkVersion = 33 targetSdkVersion = 33
Is there something that I could do?, I am using react native 0.72.5
Create for me a simple HelloWorld app that reproduces this. Push to a public GitHub repository and share the url here.
Hi, I did create the repo: https://github.com/Jorge-Luis-Rangel-Peralta/example-background-geolocation-rn-0.72.5/commits/main but it works and I found a typo in my config, the repo has the steps I followed to config, thanks!
So you solved your problem?
It is still compiling on the server but probably it is solved, I will confirm you both when the server reports back
What was your mistake?
All solved, the mistake was:
https://github.com/transistorsoft/react-native-background-geolocation/blob/HEAD/help/INSTALL-ANDROID-AUTO.md#open_file_folder-androidappbuildgradle // background-geolocation Project background_geolocation = project(':react-native-background-geolocation') apply from: "${background_geolocation.projectDir}/app.gradle"
Forgot the // before https and the error was almost in the same place as the report above that is why I thought was the same
Could not get unknown property 'background_geolocation'
I am able to get the react-native-background-geolocation working on iOS, but I'm trying to compile for Android and having issues. I think it has to do with gradle settings, which are somewhat of a black box
My Environment
react-native -v
): 0.72.3/**
By default you don't need to apply any configuration, just uncomment the lines you need. / react { / Folders */ // The root of your project, i.e. where "package.json" lives. Default is '..' // root = file("../") // The folder where the react-native NPM package is. Default is ../node_modules/react-native // reactNativeDir = file("../node_modules/react-native") // The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen // codegenDir = file("../node_modules/@react-native/codegen") // The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js // cliFile = file("../node_modules/react-native/cli.js")
/ Variants / // The list of variants to that are debuggable. For those we're going to // skip the bundling of the JS bundle and the assets. By default is just 'debug'. // If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants. // debuggableVariants = ["liteDebug", "prodDebug"]
/ Bundling / // A list containing the node command and its flags. Default is just 'node'. // nodeExecutableAndArgs = ["node"] // // The command to run when bundling. By default is 'bundle' // bundleCommand = "ram-bundle" // // The path to the CLI configuration file. Default is empty. // bundleConfig = file(../rn-cli.config.js) // // The name of the generated asset file containing your JS bundle // bundleAssetName = "MyApplication.android.bundle" // // The entry file for bundle generation. Default is 'index.android.js' or 'index.js' // entryFile = file("../js/MyApplication.android.js") // // A list of extra flags to pass to the 'bundle' commands. // See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle // extraPackagerArgs = []
/ Hermes Commands / // The hermes compiler command to run. By default it is 'hermesc' // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc" // // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map" // hermesFlags = ["-O", "-output-source-map"] }
/**
/**
def jscFlavor = 'org.webkit:android-jsc-intl:+'
Date.toLocaleString
andString.localeCompare
thatandroid { ndkVersion rootProject.ext.ndkVersion
}
dependencies { // The version of react-native is set by the React Native Gradle Plugin implementation("com.facebook.react:react-android")
}
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
Project background_geolocation = project(':react-native-background-geolocation') apply from: "${background_geolocation.projectDir}/app.gradle"
error Failed to install the app. Command failed with exit code 1: gradlew.bat tasks FAILURE: Build failed with an exception. Where: Build file 'C:\Users\REMOVEDFORPRIVACY\Documents\REMOVEDFORPRIVACY\REMOVEDFORPRIVACY\android\app\build.gradle' line: 103 What went wrong: A problem occurred evaluating project ':app'. > Could not get unknown property 'background_geolocation' for BuildType$AgpDecorated_Decorated{name=release, debuggable=false, testCoverageEnabled=false, jniDebuggable=false, pseudoLocalesEnabled=false, renderscriptDebuggable=false, renderscriptOptimLevel=3, minifyEnabled=false, zipAlignEnabled=true, signingConfig=SigningConfig$AgpDecorated_Decorated{name=debug, storeFile=C:\Users\REMOVEDFORPRIVACY\Documents\REMOVEDFORPRIVACY\REMOVEDFORPRIVACY\android\app\debug.keystore, storePassword=android, keyAlias=androiddebugkey, keyPassword=android, storeType=pkcs12, v1SigningEnabled=true, v2SigningEnabled=true, enableV1Signing=null, enableV2Signing=null, enableV3Signin g=null, enableV4Signing=null}, embedMicroApp=true, mBuildConfigFields={}, mResValues={}, mProguardFiles=[C:\Users\REMOVEDFORPRIVACY\Documents\REMOVEDFORPRIVACY\REMOVEDFORPRIVACY\android\app\build\intermediates\default_proguard_files\global\proguard-android.txt-7 .4.2, C:\Users\REMOVEDFORPRIVACY\Documents\REMOVEDFORPRIVACY\REMOVEDFORPRIVACY\android\app\proguard-rules.pro], mConsumerProguardFiles=[], mManifestPlaceholders={}} of type com.android.build.gradle.internal.dsl.BuildType$AgpDecorated. 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 35s