Skip to content

Configuration Error: "Something went wrong setting up your configuration" when building the app. #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Abhaykumarbhumihar opened this issue Oct 11, 2024 · 1 comment

Comments

@Abhaykumarbhumihar
Copy link

Abhaykumarbhumihar commented Oct 11, 2024

Screen_recording_20241011_171946.webm

I am getting a configuration error message. The error message states:

Something went wrong setting up your configuration.

Steps to Reproduce

List down steps to help the maintainers reproduce the issue:

  1. Clone the repository (https://github.com/ticketmaster/Android-TicketsDemoApp.git, branch name :- master).
  2. Open the project in Android Studio.
  3. Sync the Gradle build file (build. gradle).
  4. Attempt to build the project.
  5. Expected Behavior
  6. Change keys in build.gradel

key get from here

Screenshot 2024-10-11 at 5 17 15 PM

Explain what you expect to happen:

The project should be run successfully without configuration error message.

Actual Behavior
Describe what actually happens:

Something went wrong setting up your configuration.

here is complete app build.gradel

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-parcelize'

android {
  compileSdk 34
  defaultConfig {
    applicationId "com.ticketmaster.sampleintegration.demo"
    namespace "com.ticketmaster.sampleintegration.demo"
    minSdk 26
    targetSdk 34
    versionCode 1
    versionName "1.0"


    // Tickets SDK Setup
    buildConfigField("String", "CONSUMER_KEY", "\"qa49XlOrAPbQVOLN7eAdDx1WZAUGXY9W\"")
    buildConfigField("String", "TEAM_NAME", "\"abhayrai-App\"")
    buildConfigField("String", "BRANDING_COLOR", "\"#C11B16\"")  // Color wrapped in double quotes

  }

  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'
  }
  dataBinding {
    enabled = true
  }
  buildFeatures {
    buildConfig = true
  }
}

//Resolution strategy that force the use of the corresponding libraries that causes duplicity
configurations.all {
  resolutionStrategy.force 'androidx.legacy:legacy-support-v4:1.0.0'
  resolutionStrategy.force 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.10'
}

dependencies {
  implementation 'androidx.core:core-ktx:1.13.1'
  implementation 'androidx.appcompat:appcompat:1.7.0'
  implementation 'com.google.android.material:material:1.12.0'
  implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  //Dependencies libraries needed for tickets and authentication sdks.
  implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
  implementation 'androidx.compose.material:material:1.6.8'
  implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1'
  //Tickets SDK
  implementation 'com.ticketmaster.tickets:secure-entry:1.2.10'
  implementation 'com.ticketmaster.tickets:tickets:3.7.5'
  //Accounts SDK
  implementation 'com.ticketmaster.accounts:authentication:3.7.0'
  // Retail SDK
  implementation "com.ticketmaster.retail:purchase:1.1.3"
  implementation "com.ticketmaster.retail:prepurchase:1.0.8"
  implementation "com.ticketmaster.retail:discoveryapi:1.0.4"
  implementation "com.ticketmaster.retail:foundation:1.0.1"
  implementation "com.ticketmaster.purchase:ticketmaster-purchase:0.0.7"
}
```
`
@Abhaykumarbhumihar
Copy link
Author

Abhaykumarbhumihar commented Oct 14, 2024

@sps @Atalanta @hynd @karlwhite @piclemx @jbackertm @luism-burgos Could you please assist with this issue? I would really appreciate your help!

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant