Skip to content

example/android/build.gradle references undefined credentialsPropertiesFile variable #32

@nnoromiv

Description

@nnoromiv

Build Failure Root Cause

The root build.gradle in the example app references:

credentialsPropertiesFile["cardinal.user"]
credentialsPropertiesFile["cardinal.key"]

inside the Maven credentials block, but credentialsPropertiesFile is never defined. This causes the build to fail on Gradle 8+.

The app/build.gradle file in the same example already uses the correct approach via project.findProperty(...), so the root file should follow the same pattern for consistency and compatibility.

Fix

Replace:

credentialsPropertiesFile["cardinal.user"]
credentialsPropertiesFile["cardinal.key"]

with:

project.findProperty("cardinal.user")
project.findProperty("cardinal.key")

in:

example/android/build.gradle

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions