Skip to content

No value for sessionId #147

@RAISERALEX21

Description

@RAISERALEX21

Before creating a new issue, please confirm:

Which UI component?

Liveness

Gradle script dependencies

plugins {
    id 'com.android.application'
    id 'org.jetbrains.kotlin.android'
    id 'org.jetbrains.kotlin.plugin.serialization'
}

android {
    namespace 'com.amplifyframework.ui.sample.liveness'
    compileSdk 34

    buildFeatures {
        buildConfig true
    }

    defaultConfig {
        applicationId "com.amplifyframework.ui.sample.liveness"
        minSdk 24
        targetSdk 34
        versionCode 1
        versionName "1"
        buildConfigField "boolean", "SHOW_DEBUG_UI", "false"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = '1.8'
    }
    buildFeatures {
        compose true
    }
    composeOptions {
        kotlinCompilerExtensionVersion '1.4.3'
    }
    packaging {
        resources {
            excludes += '/META-INF/{AL2.0,LGPL2.1}'
            excludes += 'META-INF/versions/9/previous-compilation-data.bin'
        }
    }
}

dependencies {
    // Use this to pull in local module of Amplify UI
    // Must also uncomment liveness sample project settings.gradle includeBuild
    //implementation 'com.amplifyframework.ui:liveness'

    // or

    // Use this to use published version of Amplify UI
    implementation "com.amplifyframework.ui:liveness:$amplifyUIVersion"

    implementation "com.amplifyframework:core-kotlin:$amplifyVersion"
    implementation "com.amplifyframework:aws-api:$amplifyVersion"
    implementation "com.amplifyframework:aws-auth-cognito:$amplifyVersion"
    implementation "com.amplifyframework:aws-predictions:$amplifyVersion"

    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4'
    implementation "com.google.accompanist:accompanist-permissions:0.28.0"
    implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3'
    implementation 'androidx.core:core-ktx:1.9.0'
    implementation 'androidx.navigation:navigation-compose:2.5.3'
    implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
    implementation 'androidx.activity:activity-compose:1.6.1'
    implementation "androidx.compose.ui:ui:$compose_version"
    implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
    implementation 'androidx.compose.material3:material3:1.1.0'
    implementation 'androidx.appcompat:appcompat:1.6.1'
    debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
    debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
}

Environment information

------------------------------------------------------------
Gradle 8.2.1
------------------------------------------------------------
 
Build time:   2023-07-10 12:12:35 UTC
Revision:     a38ec64d3c4612da9083cc506a1ccb212afeecaa
 
Kotlin:       1.8.20
Groovy:       3.0.17
Ant:          Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM:          1.8.0_311 (Oracle Corporation 25.311-b11)
OS:           Mac OS X 10.16 x86_64

Please include any relevant guides or documentation you're referencing

No response

Describe the bug

At the end of the guide steps ->
Delete the generated API files located at app/src/main/java/[YOUR_API_NAME].

If you encounter an error "SDK location not found," you may need to go to File -> Sync Project with Gradle Files.

Finally, build and run the project on an Android device using Android Studio.

I encounter the following error when installing the application.
Captura de Pantalla 2024-04-29 a la(s) 9 20 19 (1)

Reproduction steps (if applicable)

At the end of the guide steps ->
Delete the generated API files located at app/src/main/java/[YOUR_API_NAME].

If you encounter an error "SDK location not found," you may need to go to File -> Sync Project with Gradle Files.

Finally, build and run the project on an Android device using Android Studio.

I encounter the following error when installing the application.
Captura de Pantalla 2024-04-29 a la(s) 9 20 19 (1)

Code Snippet

// Put your code below this line.

Log output

// Put your logs below this line
<img width="956" alt="Captura de Pantalla 2024-04-29 a la(s) 9 20 19 (1)" src="https://github.com/aws-amplify/amplify-ui-android/assets/3058806/e61b3554-f5e8-4772-b859-f318e48600e5">


amplifyconfiguration.json

JSON:::
{
    "UserAgent": "aws-amplify-cli/2.0",
    "Version": "1.0",
    "api": {
        "plugins": {
            "awsAPIPlugin": {
                "livenessBackendAPI": {
                    "endpointType": "REST",
                    "endpoint": "https://5qtou6p436.execute-api.us-east-1.amazonaws.com/dev",
                    "region": "us-east-1",
                    "authorizationType": "AWS_IAM"
                }
            }
        }
    },
    "auth": {
        "plugins": {
            "awsCognitoAuthPlugin": {
                "UserAgent": "aws-amplify-cli/0.1.0",
                "Version": "0.1.0",
                "IdentityManager": {
                    "Default": {}
                },
                "CredentialsProvider": {
                    "CognitoIdentity": {
                        "Default": {
                            "PoolId": "us-east-1:9923229d-e322-4d23-bbf8-b22c8ed3a2c7",
                            "Region": "us-east-1"
                        }
                    }
                },
                "CognitoUserPool": {
                    "Default": {
                        "PoolId": "us-east-1_k4H5NZqDH",
                        "AppClientId": "5nhoomrfgc2visru2stud45bct",
                        "Region": "us-east-1"
                    }
                },
                "Auth": {
                    "Default": {
                        "OAuth": {
                            "WebDomain": "liveness70a2b540-70a2b540-dev.auth.us-east-1.amazoncognito.com",
                            "AppClientId": "5nhoomrfgc2visru2stud45bct",
                            "SignInRedirectURI": "myapp://callback/",
                            "SignOutRedirectURI": "myapp://signout/",
                            "Scopes": [
                                "phone",
                                "email",
                                "openid",
                                "profile",
                                "aws.cognito.signin.user.admin"
                            ]
                        },
                        "authenticationFlowType": "USER_SRP_AUTH",
                        "socialProviders": [],
                        "usernameAttributes": [],
                        "signupAttributes": [
                            "EMAIL"
                        ],
                        "passwordProtectionSettings": {
                            "passwordPolicyMinLength": 8,
                            "passwordPolicyCharacters": []
                        },
                        "mfaConfiguration": "OFF",
                        "mfaTypes": [
                            "SMS"
                        ],
                        "verificationMechanisms": [
                            "EMAIL"
                        ]
                    }
                }
            }
        }
    }
} ```

### Additional information and screenshots

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    livenessThis issue relates to the Liveness componentpending-maintainer-responseIssue is pending response from an Amplify team memberquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions