Skip to content
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

Can build the demo project #8

Open
eul opened this issue Aug 8, 2024 · 5 comments
Open

Can build the demo project #8

eul opened this issue Aug 8, 2024 · 5 comments

Comments

@eul
Copy link

eul commented Aug 8, 2024

Execution failed for task ':app:mergeDebugNativeLibs'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.romandanylyk:pageindicatorview:1.0.3.

Could not find com.romandanylyk:pageindicatorview:1.0.3.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/romandanylyk/pageindicatorview/1.0.3/pageindicatorview-1.0.3.pom
- https://dl.google.com/dl/android/maven2/com/romandanylyk/pageindicatorview/1.0.3/pageindicatorview-1.0.3.pom
- https://jcenter.bintray.com/com/romandanylyk/pageindicatorview/1.0.3/pageindicatorview-1.0.3.pom
Required by:
project :app > com.ticketmaster.tickets:tickets:3.5.2

@samsiuatpurple
Copy link

We are facing the same issue. We think this is due to https://jfrog.com/blog/jcenter-sunset/
Maven Central doesn't have com.romandanylyk:pageindicatorview:1.0.3 at the moment.
Ticketmaster team will need to review this dependency and advise a solution.

@ohsnapitscolin
Copy link

ohsnapitscolin commented Aug 21, 2024

We're also running into this, from what I can tell doesn't seem like com.romandanylyk:pageindicatorview:1.0.3 is hosted anywhere right now, so ideally Ticketmaster can up the underlying dependency.

Based on the comment here, it seems like a small change would allow Ticketmaster to pull the dependency from Jitpack.

@samsiuatpurple
Copy link

We are able to resolve this issue by doing the following

  1. Update the tickets sdk to 3.7.4 in build.gradle
    implementation 'com.ticketmaster.tickets:tickets:3.7.4'
  2. You may also need to do the following in settings.gradle
dependencyResolutionManagement {
...
    repositories {
    ...       
        maven { url 'https://jitpack.io' }
   }
}

@Abhaykumarbhumihar
Copy link

Abhaykumarbhumihar commented Oct 11, 2024

Here is my app build.gradel

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlinx-serialization'

//repositories {
//    Properties properties = new Properties()
//    properties.load(project.rootProject.file('local.properties').newDataInputStream())
//    //def venuenext_username = properties.getProperty('psdk.config.venuenext_username')
//    //def venuenext_pass = properties.getProperty('psdk.config.venuenext_pass')
//    maven {
//        url "https://venuenext.jfrog.io/venuenext/android-sdk"
//        credentials {
//        //    username = venuenext_username
//        //    password = venuenext_pass
//        }
//    }
//}

android {
    compileSdkVersion 33
    defaultConfig {
        applicationId "com.ticketmaster.presence.demo"
        minSdkVersion 21
        targetSdkVersion 33
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

        Properties properties = new Properties()
        properties.load(project.rootProject.file('local.properties').newDataInputStream())

        // Presence SDK Setup
        def consumerKey = properties.getProperty('psdk.config.consumer_key')
        def teamName = properties.getProperty('psdk.config.team_name')
        def useNam = properties.getProperty('psdk.config.use_nam')
        def brandingColor = properties.getProperty('psdk.config.branding_color')
        buildConfigField("String", "CONSUMER_KEY", "$consumerKey")
        buildConfigField("String", "TEAM_NAME", "$teamName")
        buildConfigField("boolean", "USE_NAM", "$useNam")
        buildConfigField("String", "BRANDING_COLOR", "$brandingColor")

    }

    buildTypes {
        debug {
            debuggable true
        }
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.2.0'
    implementation 'com.google.android.material:material:1.2.1'
    implementation 'com.ticketmaster.presence:secure-entry:1.2.9'
    implementation 'com.ticketmaster.presence:presence:2.22.6'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31"
    implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
  
    /* VN Libraries, only add these if you want to integrate with Venue Next
    implementation "com.venuenext:vnwebsdk:2.0.10"
    api "io.jsonwebtoken:jjwt-api:0.11.2"
    runtimeOnly "io.jsonwebtoken:jjwt-impl:0.11.2"
    runtimeOnly("io.jsonwebtoken:jjwt-orgjson:0.11.2") {
        exclude group: 'org.json', module: 'json' //provided by Android natively
    }*/


    testImplementation 'junit:junit:4.13'
    androidTestImplementation 'androidx.test:runner:1.3.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}

```
`

getting error

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.romandanylyk:pageindicatorview:1.0.3.

Could not find com.romandanylyk:pageindicatorview:1.0.3.

@saminmel
Copy link

Here is my app build.gradel

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlinx-serialization'

//repositories {
//    Properties properties = new Properties()
//    properties.load(project.rootProject.file('local.properties').newDataInputStream())
//    //def venuenext_username = properties.getProperty('psdk.config.venuenext_username')
//    //def venuenext_pass = properties.getProperty('psdk.config.venuenext_pass')
//    maven {
//        url "https://venuenext.jfrog.io/venuenext/android-sdk"
//        credentials {
//        //    username = venuenext_username
//        //    password = venuenext_pass
//        }
//    }
//}

android {
    compileSdkVersion 33
    defaultConfig {
        applicationId "com.ticketmaster.presence.demo"
        minSdkVersion 21
        targetSdkVersion 33
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

        Properties properties = new Properties()
        properties.load(project.rootProject.file('local.properties').newDataInputStream())

        // Presence SDK Setup
        def consumerKey = properties.getProperty('psdk.config.consumer_key')
        def teamName = properties.getProperty('psdk.config.team_name')
        def useNam = properties.getProperty('psdk.config.use_nam')
        def brandingColor = properties.getProperty('psdk.config.branding_color')
        buildConfigField("String", "CONSUMER_KEY", "$consumerKey")
        buildConfigField("String", "TEAM_NAME", "$teamName")
        buildConfigField("boolean", "USE_NAM", "$useNam")
        buildConfigField("String", "BRANDING_COLOR", "$brandingColor")

    }

    buildTypes {
        debug {
            debuggable true
        }
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.2.0'
    implementation 'com.google.android.material:material:1.2.1'
    implementation 'com.ticketmaster.presence:secure-entry:1.2.9'
    implementation 'com.ticketmaster.presence:presence:2.22.6'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31"
    implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
  
    /* VN Libraries, only add these if you want to integrate with Venue Next
    implementation "com.venuenext:vnwebsdk:2.0.10"
    api "io.jsonwebtoken:jjwt-api:0.11.2"
    runtimeOnly "io.jsonwebtoken:jjwt-impl:0.11.2"
    runtimeOnly("io.jsonwebtoken:jjwt-orgjson:0.11.2") {
        exclude group: 'org.json', module: 'json' //provided by Android natively
    }*/


    testImplementation 'junit:junit:4.13'
    androidTestImplementation 'androidx.test:runner:1.3.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}

`

getting error

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.romandanylyk:pageindicatorview:1.0.3.

Could not find com.romandanylyk:pageindicatorview:1.0.3.

Please find the comment from samsiuatpurple above regarding the solution
link
#8 (comment)

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

5 participants