tzutalin / dlib-android-app

:dragon: Android app to demo dlib-android(https://github.com/tzutalin/dlib-android). Use the prebuilt shared-lib built from dlib-android
Apache License 2.0
683 stars 246 forks source link

Could not find com.tzutalin.dlib-android-app:dlib:1.0.4 #69

Open bgragavendiran opened 3 years ago

bgragavendiran commented 3 years ago

Error

Execution failed for task ':app:checkDebugAarMetadata'.
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
 Could not find com.tzutalin.dlib-android-app:dlib:1.0.4.
Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/tzutalin/dlib-android-app/dlib/1.0.4/dlib-1.0.4.pom
       - https://jcenter.bintray.com/com/tzutalin/dlib-android-app/dlib/1.0.4/dlib-1.0.4.pom
     Required by:
         project :app

Build.gradle app

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
    sourceSets { main{ assets.srcDirs = ['src/main/res/raw'] } }
    compileSdkVersion 28
    buildToolsVersion "29.0.2"
    defaultConfig {
        applicationId "xxx.xxx.xxx"
        minSdkVersion 24
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        ndk {
            abiFilters "armeabi-v7a" //using abi filter to reduce apk size
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'com.commit451:PhotoView:1.2.4'

    implementation 'com.squareup.picasso:picasso:2.71828'
    implementation "android.arch.lifecycle:extensions:1.1.1"

    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:support-v4:28.0.0'
    implementation "com.android.support:support-v13:28.0.0"

    implementation 'com.tzutalin.dlib-android-app:dlib:1.0.4'

    implementation('com.journeyapps:zxing-android-embedded:4.1.0') { transitive = false }
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'com.google.zxing:core:3.3.0'

    // Recommended: Add the Firebase SDK for Google Analytics.
    implementation 'com.google.firebase:firebase-analytics:17.4.3'
//     Add the Firebase Crashlytics SDK.
    implementation 'com.google.firebase:firebase-crashlytics:17.0.1'

    implementation 'com.google.firebase:firebase-storage:19.1.1'
    implementation 'com.google.firebase:firebase-auth:19.3.1'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    implementation project(path: ':openCVLibrary343')
}
// Apply the Crashlytics Gradle plugin
apply plugin: 'com.google.firebase.crashlytics'

Build.gradle project


buildscript {
    repositories {

        maven {
            url 'https://dl.bintray.com/tzutalin/maven'
        }
        google()
        jcenter()

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.2.1'

        classpath 'com.google.gms:google-services:4.3.3'

        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.1.1'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

ext {
    groupName = 'com.tzutalin.dlib'
    artifactName = 'dlib'
    artifactDescription = 'An Android library to wrap dlib library to use face and landmark detection'
    artifactLabels = ['dlib', 'android']
    releaseVersionCode = 1
    releaseVersionName = '1.0.4'

    androidBuildToolsVersion = '28.0.3'
    androidSupportSdkVersion = '28.0.0'
}

This source code was written a one year back and now it says its unable to find is there a solution for this issue?

ahmadbajwa8282 commented 2 years ago

did you find the solution?